public interface PropertyAtomLong extends PropertyAtom, Property.PropertyLong
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()
Get the current long value as double of this property.
|
double |
getDouble(long time)
Get the long value as double of this property for a given time.
|
long |
getLong()
Gets the current value of this property.
|
long |
getLong(long time)
Gets the value that property had at the given time.
|
long |
getLongAtIdx(int idx)
Gets the value of this property at the given history index.
|
boolean |
setLong(long value)
Sets the current value of this property.
|
boolean |
setLong(long value,
long time)
Sets the value of this property with a given time.
|
getHistoryTimeInterval, getString, getString, getStringAtIdx, getTimeAtIdx, howCurrent, howMany, howOld, isSet, setValue, setValue
getHistoryPolicy, getHistorySize, getName, getParent
long getLong()
long getLong(long time) throws PropertyException
time
- a time expressed in number of milliseconds since the epoch.long
value.PropertyException
- if the value at the given time is unknown.long getLongAtIdx(int idx) throws PropertyException
idx
- index in the history of this property.PropertyException
- if the index is invalid.Property.getHistoryPolicy()
,
Property.getHistorySize()
boolean setLong(long value)
value
- the value to setProperty.getHistoryPolicy()
boolean setLong(long value, long time)
value
- the value to set.time
- the time to associate with the value.Property.getHistoryPolicy()