diff options
Diffstat (limited to 'Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RealLiteralImpl.java')
-rw-r--r-- | Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RealLiteralImpl.java | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RealLiteralImpl.java b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RealLiteralImpl.java index ffb2b97f..08791e2a 100644 --- a/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RealLiteralImpl.java +++ b/Framework/hu.bme.mit.inf.dslreasoner.logic.model/ecore-gen/hu/bme/mit/inf/dslreasoner/logic/model/logiclanguage/impl/RealLiteralImpl.java | |||
@@ -4,9 +4,6 @@ package hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.impl; | |||
4 | 4 | ||
5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; | 5 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.LogiclanguagePackage; |
6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RealLiteral; | 6 | import hu.bme.mit.inf.dslreasoner.logic.model.logiclanguage.RealLiteral; |
7 | |||
8 | import java.math.BigDecimal; | ||
9 | |||
10 | import org.eclipse.emf.common.notify.Notification; | 7 | import org.eclipse.emf.common.notify.Notification; |
11 | 8 | ||
12 | import org.eclipse.emf.ecore.EClass; | 9 | import org.eclipse.emf.ecore.EClass; |
@@ -35,7 +32,7 @@ public class RealLiteralImpl extends AtomicTermImpl implements RealLiteral { | |||
35 | * @generated | 32 | * @generated |
36 | * @ordered | 33 | * @ordered |
37 | */ | 34 | */ |
38 | protected static final BigDecimal VALUE_EDEFAULT = null; | 35 | protected static final double VALUE_EDEFAULT = 0.0; |
39 | 36 | ||
40 | /** | 37 | /** |
41 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. | 38 | * The cached value of the '{@link #getValue() <em>Value</em>}' attribute. |
@@ -45,7 +42,7 @@ public class RealLiteralImpl extends AtomicTermImpl implements RealLiteral { | |||
45 | * @generated | 42 | * @generated |
46 | * @ordered | 43 | * @ordered |
47 | */ | 44 | */ |
48 | protected BigDecimal value = VALUE_EDEFAULT; | 45 | protected double value = VALUE_EDEFAULT; |
49 | 46 | ||
50 | /** | 47 | /** |
51 | * <!-- begin-user-doc --> | 48 | * <!-- begin-user-doc --> |
@@ -72,7 +69,7 @@ public class RealLiteralImpl extends AtomicTermImpl implements RealLiteral { | |||
72 | * @generated | 69 | * @generated |
73 | */ | 70 | */ |
74 | @Override | 71 | @Override |
75 | public BigDecimal getValue() { | 72 | public double getValue() { |
76 | return value; | 73 | return value; |
77 | } | 74 | } |
78 | 75 | ||
@@ -82,8 +79,8 @@ public class RealLiteralImpl extends AtomicTermImpl implements RealLiteral { | |||
82 | * @generated | 79 | * @generated |
83 | */ | 80 | */ |
84 | @Override | 81 | @Override |
85 | public void setValue(BigDecimal newValue) { | 82 | public void setValue(double newValue) { |
86 | BigDecimal oldValue = value; | 83 | double oldValue = value; |
87 | value = newValue; | 84 | value = newValue; |
88 | if (eNotificationRequired()) | 85 | if (eNotificationRequired()) |
89 | eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.REAL_LITERAL__VALUE, oldValue, value)); | 86 | eNotify(new ENotificationImpl(this, Notification.SET, LogiclanguagePackage.REAL_LITERAL__VALUE, oldValue, value)); |
@@ -112,7 +109,7 @@ public class RealLiteralImpl extends AtomicTermImpl implements RealLiteral { | |||
112 | public void eSet(int featureID, Object newValue) { | 109 | public void eSet(int featureID, Object newValue) { |
113 | switch (featureID) { | 110 | switch (featureID) { |
114 | case LogiclanguagePackage.REAL_LITERAL__VALUE: | 111 | case LogiclanguagePackage.REAL_LITERAL__VALUE: |
115 | setValue((BigDecimal)newValue); | 112 | setValue((Double)newValue); |
116 | return; | 113 | return; |
117 | } | 114 | } |
118 | super.eSet(featureID, newValue); | 115 | super.eSet(featureID, newValue); |
@@ -142,7 +139,7 @@ public class RealLiteralImpl extends AtomicTermImpl implements RealLiteral { | |||
142 | public boolean eIsSet(int featureID) { | 139 | public boolean eIsSet(int featureID) { |
143 | switch (featureID) { | 140 | switch (featureID) { |
144 | case LogiclanguagePackage.REAL_LITERAL__VALUE: | 141 | case LogiclanguagePackage.REAL_LITERAL__VALUE: |
145 | return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); | 142 | return value != VALUE_EDEFAULT; |
146 | } | 143 | } |
147 | return super.eIsSet(featureID); | 144 | return super.eIsSet(featureID); |
148 | } | 145 | } |