Debian Codegraph @

src/dr/evomodel/treedatalikelihood/continuous/cdi/ResourceDetails.java

raw symbols SCIP
1 /*
2 * ResourceDetail.java
3 *
4 * Copyright (c) 2002-2016 Alexei Drummond, Andrew Rambaut and Marc Suchard
5 *
6 * This file is part of BEAST.
7 * See the NOTICE file distributed with this work for additional
8 * information regarding copyright ownership and licensing.
9 *
10 * BEAST is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as
12 * published by the Free Software Foundation; either version 2
13 * of the License, or (at your option) any later version.
14 *
15 * BEAST is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with BEAST; if not, write to the
22 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
23 * Boston, MA 02110-1301 USA
24 */
25
26 package dr.evomodel.treedatalikelihood.continuous.cdi;
27
28 public class ResourceDetails {
29 private final int number;
30 private String name;
31 private String description;
32 private long flags;
33
34 public ResourceDetails(int var1) {
35 this.number = var1;
36 }
37
38 public int getNumber() {
39 return this.number;
40 }
41
42 public String getName() {
43 return this.name;
44 }
45
46 public void setName(String var1) {
47 this.name = var1;
48 }
49
50 public String getDescription() {
51 return this.description;
52 }
53
54 public void setDescription(String var1) {
55 this.description = var1;
56 }
57
58 public long getFlags() {
59 return this.flags;
60 }
61
62 public void setFlags(long var1) {
63 this.flags = var1;
64 }
65
66 public String toString() {
67 StringBuilder var1 = new StringBuilder();
68 var1.append("").append(this.getNumber()).append(" : ").append(this.getName()).append("\n");
69 if(this.getDescription() != null) {
70 String[] var2 = this.getDescription().split("\\|");
71 int var4 = var2.length;
72
73 for(int var5 = 0; var5 < var4; ++var5) {
74 String var6 = var2[var5];
75 if(var6.trim().length() > 0) {
76 var1.append(" ").append(var6.trim()).append("\n");
77 }
78 }
79 }
80
81 var1.append(" Flags:");
82 var1.append(CDIFlag.toString(this.getFlags()));
83 var1.append("\n");
84 return var1.toString();
85 }
86 }