forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOccurrent.java
More file actions
215 lines (192 loc) · 7.94 KB
/
Occurrent.java
File metadata and controls
215 lines (192 loc) · 7.94 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
* Occurrent
* <p>
* A processual entity
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"enabled_by",
"has_input",
"has_output",
"has_participant",
"negatively_regulates_process_to_process",
"positively_regulates_process_to_process",
"precedes",
"regulates_process_to_process"
})
public class Occurrent {
/**
* holds between a process and a physical entity, where the physical entity executes the process
*
*/
@JsonProperty("enabled_by")
@JsonPropertyDescription("holds between a process and a physical entity, where the physical entity executes the process")
private List<String> enabledBy = new ArrayList<String>();
/**
* holds between a process and a continuant, where the continuant is an input into the process
*
*/
@JsonProperty("has_input")
@JsonPropertyDescription("holds between a process and a continuant, where the continuant is an input into the process")
private List<String> hasInput = new ArrayList<String>();
/**
* holds between a process and a continuant, where the continuant is an output of the process
*
*/
@JsonProperty("has_output")
@JsonPropertyDescription("holds between a process and a continuant, where the continuant is an output of the process")
private List<String> hasOutput = new ArrayList<String>();
/**
* holds between a process and a continuant, where the continuant is somehow involved in the process
*
*/
@JsonProperty("has_participant")
@JsonPropertyDescription("holds between a process and a continuant, where the continuant is somehow involved in the process")
private List<String> hasParticipant = new ArrayList<String>();
@JsonProperty("negatively_regulates_process_to_process")
private List<String> negativelyRegulatesProcessToProcess = new ArrayList<String>();
@JsonProperty("positively_regulates_process_to_process")
private List<String> positivelyRegulatesProcessToProcess = new ArrayList<String>();
/**
* holds between two processes, where one completes before the other begins
*
*/
@JsonProperty("precedes")
@JsonPropertyDescription("holds between two processes, where one completes before the other begins")
private List<String> precedes = new ArrayList<String>();
@JsonProperty("regulates_process_to_process")
private List<String> regulatesProcessToProcess = new ArrayList<String>();
/**
* holds between a process and a physical entity, where the physical entity executes the process
*
*/
@JsonProperty("enabled_by")
public List<String> getEnabledBy() {
return enabledBy;
}
/**
* holds between a process and a physical entity, where the physical entity executes the process
*
*/
@JsonProperty("enabled_by")
public void setEnabledBy(List<String> enabledBy) {
this.enabledBy = enabledBy;
}
/**
* holds between a process and a continuant, where the continuant is an input into the process
*
*/
@JsonProperty("has_input")
public List<String> getHasInput() {
return hasInput;
}
/**
* holds between a process and a continuant, where the continuant is an input into the process
*
*/
@JsonProperty("has_input")
public void setHasInput(List<String> hasInput) {
this.hasInput = hasInput;
}
/**
* holds between a process and a continuant, where the continuant is an output of the process
*
*/
@JsonProperty("has_output")
public List<String> getHasOutput() {
return hasOutput;
}
/**
* holds between a process and a continuant, where the continuant is an output of the process
*
*/
@JsonProperty("has_output")
public void setHasOutput(List<String> hasOutput) {
this.hasOutput = hasOutput;
}
/**
* holds between a process and a continuant, where the continuant is somehow involved in the process
*
*/
@JsonProperty("has_participant")
public List<String> getHasParticipant() {
return hasParticipant;
}
/**
* holds between a process and a continuant, where the continuant is somehow involved in the process
*
*/
@JsonProperty("has_participant")
public void setHasParticipant(List<String> hasParticipant) {
this.hasParticipant = hasParticipant;
}
@JsonProperty("negatively_regulates_process_to_process")
public List<String> getNegativelyRegulatesProcessToProcess() {
return negativelyRegulatesProcessToProcess;
}
@JsonProperty("negatively_regulates_process_to_process")
public void setNegativelyRegulatesProcessToProcess(List<String> negativelyRegulatesProcessToProcess) {
this.negativelyRegulatesProcessToProcess = negativelyRegulatesProcessToProcess;
}
@JsonProperty("positively_regulates_process_to_process")
public List<String> getPositivelyRegulatesProcessToProcess() {
return positivelyRegulatesProcessToProcess;
}
@JsonProperty("positively_regulates_process_to_process")
public void setPositivelyRegulatesProcessToProcess(List<String> positivelyRegulatesProcessToProcess) {
this.positivelyRegulatesProcessToProcess = positivelyRegulatesProcessToProcess;
}
/**
* holds between two processes, where one completes before the other begins
*
*/
@JsonProperty("precedes")
public List<String> getPrecedes() {
return precedes;
}
/**
* holds between two processes, where one completes before the other begins
*
*/
@JsonProperty("precedes")
public void setPrecedes(List<String> precedes) {
this.precedes = precedes;
}
@JsonProperty("regulates_process_to_process")
public List<String> getRegulatesProcessToProcess() {
return regulatesProcessToProcess;
}
@JsonProperty("regulates_process_to_process")
public void setRegulatesProcessToProcess(List<String> regulatesProcessToProcess) {
this.regulatesProcessToProcess = regulatesProcessToProcess;
}
@Override
public String toString() {
return new ToStringBuilder(this).append("enabledBy", enabledBy).append("hasInput", hasInput).append("hasOutput", hasOutput).append("hasParticipant", hasParticipant).append("negativelyRegulatesProcessToProcess", negativelyRegulatesProcessToProcess).append("positivelyRegulatesProcessToProcess", positivelyRegulatesProcessToProcess).append("precedes", precedes).append("regulatesProcessToProcess", regulatesProcessToProcess).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(enabledBy).append(precedes).append(positivelyRegulatesProcessToProcess).append(hasOutput).append(regulatesProcessToProcess).append(negativelyRegulatesProcessToProcess).append(hasInput).append(hasParticipant).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof Occurrent) == false) {
return false;
}
Occurrent rhs = ((Occurrent) other);
return new EqualsBuilder().append(enabledBy, rhs.enabledBy).append(precedes, rhs.precedes).append(positivelyRegulatesProcessToProcess, rhs.positivelyRegulatesProcessToProcess).append(hasOutput, rhs.hasOutput).append(regulatesProcessToProcess, rhs.regulatesProcessToProcess).append(negativelyRegulatesProcessToProcess, rhs.negativelyRegulatesProcessToProcess).append(hasInput, rhs.hasInput).append(hasParticipant, rhs.hasParticipant).isEquals();
}
}