Data.Any, Data.Array, Data.Bool, Data.Byte, Data.Char, Data.Double, Data.Enum, Data.Float, Data.Int, Data.JSON, Data.Long, Data.MapData, Data.Nil, Data.Obj, Data.Short, Data.Str, Data.Structure, Data.Switch, Data.Union, Data.Url, Data.Void, Data.Xml
STATE_INVALID, STATE_MODIFIED, STATE_UNCHANGED
Constructor and Description |
---|
Double(ServiceDefinition.Data def)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
short |
copy(Data<?> data)
Copy the value of another Data.
|
java.lang.Double |
getValue()
Return the data value.
|
double |
getValueAsDouble()
Return the data value as a double.
|
boolean |
isEqualsTo(java.lang.Object o)
Return true if the current value of the data is equal to a current object value.
|
short |
setDoubleValue(double value)
Set the data double value.
|
short |
setValue(java.lang.Object value)
Set the data value.
|
clone, copy, copy, copyValue, getDataChangeBehavior, getDefinition, getDescription, getName, getTopic, getType, getValue, getValueAsArray, getValueAsBoolean, getValueAsByte, getValueAsChar, getValueAsData, getValueAsDouble, getValueAsFloat, getValueAsFloat, getValueAsInt, getValueAsJSON, getValueAsLong, getValueAsMap, getValueAsShort, getValueAsString, getValueAsStructure, getValueAsUnion, getValueAsURL, getValueAsXML, hasChanged, isContinuous, isNumeric, setBooleanValue, setByteValue, setChanged, setCharValue, setDoubleValue, setFloatValue, setFloatValue, setIntValue, setLongValue, setShortValue, setStringValue, setValueFromInstance, touch
public Double(ServiceDefinition.Data def)
def
- the ServiceDefinitionpublic short copy(Data<?> data)
copy
in class Data<SimpleType>
data
- the dataDataState
public boolean isEqualsTo(java.lang.Object o)
Data
isEqualsTo
in class Data<SimpleType>
o
- the specified object valuepublic short setDoubleValue(double value)
setDoubleValue
in class Data<SimpleType>
value
- the valueDataState
public short setValue(java.lang.Object value)
setValue
in class Data<SimpleType>
value
- the valueDataState
public java.lang.Double getValue()
getValue
in class Data<SimpleType>
public double getValueAsDouble()
getValueAsDouble
in class Data<SimpleType>
Copyright ©2017-2023 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v3 licence