diff options
author | 2019-03-25 15:56:37 +0100 | |
---|---|---|
committer | 2019-03-25 15:56:37 +0100 | |
commit | 478123d2febde02f39f6a673ffdbdf0c760aef3c (patch) | |
tree | 520b41e650bc666655016f2c5b5446e60bf1d3e4 /Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabiltiyProbabilityImpl.java | |
parent | Do not throw exception for empty package names in application configuration f... (diff) | |
download | VIATRA-Generator-478123d2febde02f39f6a673ffdbdf0c760aef3c.tar.gz VIATRA-Generator-478123d2febde02f39f6a673ffdbdf0c760aef3c.tar.zst VIATRA-Generator-478123d2febde02f39f6a673ffdbdf0c760aef3c.zip |
Add reliability probability and mtff objectives
Diffstat (limited to 'Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabiltiyProbabilityImpl.java')
-rw-r--r-- | Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabiltiyProbabilityImpl.java | 181 |
1 files changed, 181 insertions, 0 deletions
diff --git a/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabiltiyProbabilityImpl.java b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabiltiyProbabilityImpl.java new file mode 100644 index 00000000..b1940e3d --- /dev/null +++ b/Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/applicationConfiguration/impl/ReliabiltiyProbabilityImpl.java | |||
@@ -0,0 +1,181 @@ | |||
1 | /** | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl; | ||
5 | |||
6 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage; | ||
7 | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ReliabiltiyProbability; | ||
8 | |||
9 | import java.math.BigDecimal; | ||
10 | |||
11 | import org.eclipse.emf.common.notify.Notification; | ||
12 | |||
13 | import org.eclipse.emf.ecore.EClass; | ||
14 | |||
15 | import org.eclipse.emf.ecore.impl.ENotificationImpl; | ||
16 | |||
17 | /** | ||
18 | * <!-- begin-user-doc --> | ||
19 | * An implementation of the model object '<em><b>Reliabiltiy Probability</b></em>'. | ||
20 | * <!-- end-user-doc --> | ||
21 | * <p> | ||
22 | * The following features are implemented: | ||
23 | * </p> | ||
24 | * <ul> | ||
25 | * <li>{@link hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.impl.ReliabiltiyProbabilityImpl#getTime <em>Time</em>}</li> | ||
26 | * </ul> | ||
27 | * | ||
28 | * @generated | ||
29 | */ | ||
30 | public class ReliabiltiyProbabilityImpl extends ReliabilityObjectiveFunctionImpl implements ReliabiltiyProbability | ||
31 | { | ||
32 | /** | ||
33 | * The default value of the '{@link #getTime() <em>Time</em>}' attribute. | ||
34 | * <!-- begin-user-doc --> | ||
35 | * <!-- end-user-doc --> | ||
36 | * @see #getTime() | ||
37 | * @generated | ||
38 | * @ordered | ||
39 | */ | ||
40 | protected static final BigDecimal TIME_EDEFAULT = null; | ||
41 | |||
42 | /** | ||
43 | * The cached value of the '{@link #getTime() <em>Time</em>}' attribute. | ||
44 | * <!-- begin-user-doc --> | ||
45 | * <!-- end-user-doc --> | ||
46 | * @see #getTime() | ||
47 | * @generated | ||
48 | * @ordered | ||
49 | */ | ||
50 | protected BigDecimal time = TIME_EDEFAULT; | ||
51 | |||
52 | /** | ||
53 | * <!-- begin-user-doc --> | ||
54 | * <!-- end-user-doc --> | ||
55 | * @generated | ||
56 | */ | ||
57 | protected ReliabiltiyProbabilityImpl() | ||
58 | { | ||
59 | super(); | ||
60 | } | ||
61 | |||
62 | /** | ||
63 | * <!-- begin-user-doc --> | ||
64 | * <!-- end-user-doc --> | ||
65 | * @generated | ||
66 | */ | ||
67 | @Override | ||
68 | protected EClass eStaticClass() | ||
69 | { | ||
70 | return ApplicationConfigurationPackage.Literals.RELIABILTIY_PROBABILITY; | ||
71 | } | ||
72 | |||
73 | /** | ||
74 | * <!-- begin-user-doc --> | ||
75 | * <!-- end-user-doc --> | ||
76 | * @generated | ||
77 | */ | ||
78 | @Override | ||
79 | public BigDecimal getTime() | ||
80 | { | ||
81 | return time; | ||
82 | } | ||
83 | |||
84 | /** | ||
85 | * <!-- begin-user-doc --> | ||
86 | * <!-- end-user-doc --> | ||
87 | * @generated | ||
88 | */ | ||
89 | @Override | ||
90 | public void setTime(BigDecimal newTime) | ||
91 | { | ||
92 | BigDecimal oldTime = time; | ||
93 | time = newTime; | ||
94 | if (eNotificationRequired()) | ||
95 | eNotify(new ENotificationImpl(this, Notification.SET, ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY__TIME, oldTime, time)); | ||
96 | } | ||
97 | |||
98 | /** | ||
99 | * <!-- begin-user-doc --> | ||
100 | * <!-- end-user-doc --> | ||
101 | * @generated | ||
102 | */ | ||
103 | @Override | ||
104 | public Object eGet(int featureID, boolean resolve, boolean coreType) | ||
105 | { | ||
106 | switch (featureID) | ||
107 | { | ||
108 | case ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY__TIME: | ||
109 | return getTime(); | ||
110 | } | ||
111 | return super.eGet(featureID, resolve, coreType); | ||
112 | } | ||
113 | |||
114 | /** | ||
115 | * <!-- begin-user-doc --> | ||
116 | * <!-- end-user-doc --> | ||
117 | * @generated | ||
118 | */ | ||
119 | @Override | ||
120 | public void eSet(int featureID, Object newValue) | ||
121 | { | ||
122 | switch (featureID) | ||
123 | { | ||
124 | case ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY__TIME: | ||
125 | setTime((BigDecimal)newValue); | ||
126 | return; | ||
127 | } | ||
128 | super.eSet(featureID, newValue); | ||
129 | } | ||
130 | |||
131 | /** | ||
132 | * <!-- begin-user-doc --> | ||
133 | * <!-- end-user-doc --> | ||
134 | * @generated | ||
135 | */ | ||
136 | @Override | ||
137 | public void eUnset(int featureID) | ||
138 | { | ||
139 | switch (featureID) | ||
140 | { | ||
141 | case ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY__TIME: | ||
142 | setTime(TIME_EDEFAULT); | ||
143 | return; | ||
144 | } | ||
145 | super.eUnset(featureID); | ||
146 | } | ||
147 | |||
148 | /** | ||
149 | * <!-- begin-user-doc --> | ||
150 | * <!-- end-user-doc --> | ||
151 | * @generated | ||
152 | */ | ||
153 | @Override | ||
154 | public boolean eIsSet(int featureID) | ||
155 | { | ||
156 | switch (featureID) | ||
157 | { | ||
158 | case ApplicationConfigurationPackage.RELIABILTIY_PROBABILITY__TIME: | ||
159 | return TIME_EDEFAULT == null ? time != null : !TIME_EDEFAULT.equals(time); | ||
160 | } | ||
161 | return super.eIsSet(featureID); | ||
162 | } | ||
163 | |||
164 | /** | ||
165 | * <!-- begin-user-doc --> | ||
166 | * <!-- end-user-doc --> | ||
167 | * @generated | ||
168 | */ | ||
169 | @Override | ||
170 | public String toString() | ||
171 | { | ||
172 | if (eIsProxy()) return super.toString(); | ||
173 | |||
174 | StringBuilder result = new StringBuilder(super.toString()); | ||
175 | result.append(" (time: "); | ||
176 | result.append(time); | ||
177 | result.append(')'); | ||
178 | return result.toString(); | ||
179 | } | ||
180 | |||
181 | } //ReliabiltiyProbabilityImpl | ||