Download this file

Risk.java    165 lines (127 with data), 4.2 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
package risks;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Created by miguel on 24-06-2014.
*/
@XmlRootElement(name="risk")
@XmlAccessorType(XmlAccessType.FIELD)
public class Risk {
private String id;
private String name;
private String likelihood;
private String potentialLoss;
private String strategicImpact;
private String customerImpact;
private String legalImpact;
private double maxRecoveryTime;
private double minRecoveryTime;
private String occurInResource;
private String occurInBusinessActivity;
private String riskCategory;
private Resource occurInResourceInstance;
public Risk(String id, String name, String likelihood, String potentialLoss, String strategicImpact
, String customerImpact, String legalImpact, double maxRecoveryTime, double minRecoveryTime
, String occurInResource, String occurInBusinessActivity, String riskCategory) {
this.customerImpact = customerImpact;
this.id = id;
this.legalImpact = legalImpact;
this.likelihood = likelihood;
this.maxRecoveryTime = maxRecoveryTime;
this.minRecoveryTime = minRecoveryTime;
this.potentialLoss = potentialLoss;
this.occurInBusinessActivity = occurInBusinessActivity;
this.occurInResource = occurInResource;
this.name = name;
this.strategicImpact = strategicImpact;
this.riskCategory = riskCategory;
}
public Risk(String id) {
this.id = id;
}
public Risk() {
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getLikelihood() {
return likelihood;
}
public void setLikelihood(String likelihood) {
this.likelihood = likelihood;
}
public String getPotentialLoss() {
return potentialLoss;
}
public void setPotentialLoss(String potentialLoss) {
this.potentialLoss = potentialLoss;
}
public String getStrategicImpact() {
return strategicImpact;
}
public void setStrategicImpact(String strategicImpact) {
this.strategicImpact = strategicImpact;
}
public String getCustomerImpact() {
return customerImpact;
}
public void setCustomerImpact(String customerImpact) {
this.customerImpact = customerImpact;
}
public String getLegalImpact() {
return legalImpact;
}
public void setLegalImpact(String legalImpact) {
this.legalImpact = legalImpact;
}
public double getMaxRecoveryTime() {
return maxRecoveryTime;
}
public void setMaxRecoveryTime(double maxRecoveryTime) {
this.maxRecoveryTime = maxRecoveryTime;
}
public double getMinRecoveryTime() {
return minRecoveryTime;
}
public void setMinRecoveryTime(double minRecoveryTime) {
this.minRecoveryTime = minRecoveryTime;
}
public String getOccurInResource() {
return occurInResource;
}
public void setOccurInResource(String occurInResource) {
this.occurInResource = occurInResource;
}
public String getOccurInBusinessActivity() {
return occurInBusinessActivity;
}
public void setOccurInBusinessActivity(String occurInBusinessActivity) {
this.occurInBusinessActivity = occurInBusinessActivity;
}
public String getRiskCategory() {
return riskCategory;
}
public void setRiskCategory(String riskCategory) {
this.riskCategory = riskCategory;
}
public Resource getOccurInResourceInstance() {
return occurInResourceInstance;
}
public void setOccurInResourceInstance(Resource occurInResourceInstance) {
this.occurInResourceInstance = occurInResourceInstance;
}
@Override
public String toString() {
return super.toString();
}
}