Class RealValue
- java.lang.Object
-
- net.ssehub.easy.varModel.model.values.Value
-
- net.ssehub.easy.varModel.model.values.BasisDatatypeValue
-
- net.ssehub.easy.varModel.model.values.RealValue
-
public class RealValue extends BasisDatatypeValue
This class holds the value for the real.- Author:
- lueder, Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Doublevalue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IValueVisitor visitor)Abstract accept method.Valueclone()Clones the this value.booleanequals(java.lang.Object object)java.lang.DoublegetValue()Getter for the value.inthashCode()booleanisConfigured()Abstract Method to check whether a value is configured.voidsetValue(java.lang.Object value)Abstract setValue-method.-
Methods inherited from class net.ssehub.easy.varModel.model.values.BasisDatatypeValue
equalsPartially
-
Methods inherited from class net.ssehub.easy.varModel.model.values.Value
equals, equalsPartially, getContainedType, getType, getValueParent, setValueParent, stringValueOf, toString
-
-
-
-
Constructor Detail
-
RealValue
protected RealValue(java.lang.String value) throws ValueDoesNotMatchTypeExceptionConstructor.- Parameters:
value- Value of the datatype- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
RealValue
protected RealValue()
Argumentless constructor.
-
RealValue
protected RealValue(java.lang.Double value)
Creates a value object from the given value.- Parameters:
value- the value to set
-
-
Method Detail
-
getValue
public java.lang.Double getValue()
Getter for the value.- Overrides:
getValuein classBasisDatatypeValue- Returns:
- the saved float
-
setValue
public void setValue(java.lang.Object value) throws ValueDoesNotMatchTypeExceptionDescription copied from class:ValueAbstract setValue-method.- Specified by:
setValuein classValue- Parameters:
value- the value to set.- Throws:
ValueDoesNotMatchTypeException- if the given value does not match this type
-
accept
public void accept(IValueVisitor visitor)
Description copied from class:ValueAbstract accept method.
-
isConfigured
public boolean isConfigured()
Description copied from class:ValueAbstract Method to check whether a value is configured.- Specified by:
isConfiguredin classValue- Returns:
- true = it is configured / false = it is not
-
-