forked from HuLiSyspharm/NetDecoder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNodeCategory.java
95 lines (82 loc) · 2 KB
/
NodeCategory.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package netdecoder;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Set;
/**
*
* @author edroaldo
*/
public class NodeCategory implements Serializable{
private String category;
private Set<String> proteins;
private List<EdgeCategory> edges;
private int numProteins;
public NodeCategory(String category){
this.category = category;
this.proteins = new LinkedHashSet<String>();
this.edges = new ArrayList<EdgeCategory>();
}
@Override
public boolean equals(Object o){
if(o instanceof Node){
NodeCategory toCompare = (NodeCategory)o;
return this.category.equals(toCompare.category);
}
return false;
}
/**
* @return the category
*/
public String getCategory() {
return category;
}
/**
* @param category the category to set
*/
public void setCategory(String category) {
this.category = category;
}
/**
* @return the proteins
*/
public Set<String> getProteins() {
return proteins;
}
/**
* @param proteins the proteins to set
*/
public void setProteins(Set<String> proteins) {
this.proteins = proteins;
}
/**
* @return the edges
*/
public List<EdgeCategory> getEdges() {
return edges;
}
/**
* @param edges the edges to set
*/
public void setEdges(List<EdgeCategory> edges) {
this.edges = edges;
}
/**
* @return the numProteins
*/
public int getNumProteins() {
return numProteins;
}
/**
* @param numProteins the numProteins to set
*/
public void setNumProteins(int numProteins) {
this.numProteins = numProteins;
}
}