public interface PropertyAtomDouble extends PropertyAtom, Property.PropertyDouble
double
.Property.PropertyBoolean, Property.PropertyConcept, Property.PropertyConceptReference, Property.PropertyContainedConcept, Property.PropertyDateTime, Property.PropertyDouble, Property.PropertyInt, Property.PropertyLong, Property.PropertyString
HISTORY_POLICY_ALL_VALUES, HISTORY_POLICY_CHANGES_ONLY
Modifier and Type | Method and Description |
---|---|
double |
getDouble()
Gets the current value of this property.
|
double |
getDouble(long time)
Gets the value that property had at the given time.
|
double |
getDoubleAtIdx(int idx)
Gets the value of this property at the given history index.
|
boolean |
setDouble(double value)
Sets the current value of this
PropertyAtom . |
boolean |
setDouble(double value,
long time)
Sets the value of this
PropertyAtom with a given time. |
getHistoryTimeInterval,getString, getString, getStringAtIdx, getTimeAtIdx, howCurrent, howMany, howOld, isSet, setValue, setValue
getHistoryPolicy, getHistorySize, getName, getParent
double getDouble()
double getDouble(long time) throws PropertyException
time
- a time expressed in number of milliseconds since the epoch.double
value.PropertyException
- if the value at the given time is unknown.boolean setDouble(double value)
PropertyAtom
.value
- the value to setProperty.getHistoryPolicy()
boolean setDouble(double value, long time)
PropertyAtom
with a given time.value
- the value to set.time
- the time to associate with the value.Property.getHistoryPolicy()
double getDoubleAtIdx(int idx) throws PropertyException
idx
- index in the history of this property.PropertyException
- if the index is invalid.Property.getHistoryPolicy()
,
Property.getHistorySize()