forked from biolink/biolink-model
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathEnvironmentalProcess.java
More file actions
163 lines (146 loc) · 5.39 KB
/
EnvironmentalProcess.java
File metadata and controls
163 lines (146 loc) · 5.39 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
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;
/**
* EnvironmentalProcess
* <p>
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"has_input",
"has_output",
"has_participant",
"precedes",
"regulates_process_to_process"
})
public class EnvironmentalProcess {
/**
* 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>();
/**
* 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 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;
}
/**
* 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("hasInput", hasInput).append("hasOutput", hasOutput).append("hasParticipant", hasParticipant).append("precedes", precedes).append("regulatesProcessToProcess", regulatesProcessToProcess).toString();
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(precedes).append(hasOutput).append(regulatesProcessToProcess).append(hasInput).append(hasParticipant).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof EnvironmentalProcess) == false) {
return false;
}
EnvironmentalProcess rhs = ((EnvironmentalProcess) other);
return new EqualsBuilder().append(precedes, rhs.precedes).append(hasOutput, rhs.hasOutput).append(regulatesProcessToProcess, rhs.regulatesProcessToProcess).append(hasInput, rhs.hasInput).append(hasParticipant, rhs.hasParticipant).isEquals();
}
}