public class QuantityImpl extends ValueImpl implements Quantity
The following features are implemented:
Modifier and Type | Field and Description |
---|---|
protected static int |
SCALING_FACTOR_EDEFAULT
The default value of the '
Scaling Factor ' attribute. |
protected int |
scalingFactor
The cached value of the '
Scaling Factor ' attribute. |
protected double |
value
The cached value of the '
Value ' attribute. |
protected static double |
VALUE_EDEFAULT
The default value of the '
Value ' attribute. |
synched, SYNCHED_EDEFAULT
Modifier | Constructor and Description |
---|---|
protected |
QuantityImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
void |
eSet(int featureID,
java.lang.Object newValue) |
protected EClass |
eStaticClass() |
void |
eUnset(int featureID) |
int |
getScalingFactor() |
double |
getValue() |
void |
setScalingFactor(int newScalingFactor) |
void |
setValue(double newValue) |
java.lang.String |
toString() |
isSynched, setSynched
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isSynched, setSynched
protected static final int SCALING_FACTOR_EDEFAULT
Scaling Factor
' attribute.
getScalingFactor()
,
Constant Field Valuesprotected int scalingFactor
Scaling Factor
' attribute.
getScalingFactor()
protected static final double VALUE_EDEFAULT
Value
' attribute.
getValue()
,
Constant Field Valuesprotected double value
Value
' attribute.
getValue()
protected EClass eStaticClass()
eStaticClass
in class ValueImpl
public int getScalingFactor()
getScalingFactor
in interface Quantity
Quantity.setScalingFactor(int)
,
ValuesPackage.getQuantity_ScalingFactor()
public void setScalingFactor(int newScalingFactor)
setScalingFactor
in interface Quantity
newScalingFactor
- the new value of the 'Scaling Factor' attribute.Quantity.getScalingFactor()
public double getValue()
getValue
in interface Quantity
Quantity.setValue(double)
,
ValuesPackage.getQuantity_Value()
public void setValue(double newValue)
setValue
in interface Quantity
newValue
- the new value of the 'Value' attribute.Quantity.getValue()
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)