public interface IAdjustableState extends ITimeBasedState
Modifier and Type | Method and Description |
---|---|
<T> void |
addStateElementMotion(String elementIdentification,
Motion1<T> motion)
Adds a Motion{T} element to this state.
|
<T> void |
addStateElementValue(String elementIdentification,
T value)
Adds an element to this state.
|
boolean |
removeStateElement(String elementIdentification)
Removes the specified element and its data from this state.
|
getAvailableElements, getCurrentDate, getMotion, getValue, modifyMotion, modifyValue, setCurrentDate
getIsThreadSafe
clone
<T> void addStateElementValue(String elementIdentification, T value)
value
is of a type that this state can store.T
- The type of the element being added to the state.elementIdentification
- The name of the new element.value
- The value of the new element.<T> void addStateElementMotion(String elementIdentification, @Nonnull Motion1<T> motion)
motion
is of a type that this state can store.T
- The type of the Motion being added to the state.elementIdentification
- The name of the new element.motion
- The Motion{T} of the new element.boolean removeStateElement(String elementIdentification)
elementIdentification
- The name of the element to be removed.true
if the element was removed successfully; otherwise false
.