public interface HasNumericState
DataBuffer
.Modifier and Type | Method and Description |
---|---|
default void |
advanceState(double t0,
double t1)
Called at the very beginning of the time step (in the system's
preadvance() method) to perform any required updating of the component's
state before the application in input probes or controllers.
|
void |
getState(DataBuffer data)
Saves state information for this component by adding data to the
supplied DataBuffer.
|
default int |
getStateVersion()
Returns a version number for this component's state.
|
boolean |
hasState()
Specifies whether this component currently hold state.
|
void |
setState(DataBuffer data)
Restores the state for this component by reading from the supplied
data buffer, starting at the current buffer offsets.
|
default void advanceState(double t0, double t1)
t0
- beginning time associated with the time step advancet1
- end time associated with the time step advancevoid getState(DataBuffer data)
data
- buffer for storing the state values.void setState(DataBuffer data)
data
- buffer containing the state informationboolean hasState()
default int getStateVersion()