public interface HasAuxState
Modifier and Type | Interface and Description |
---|---|
static class |
HasAuxState.StateContext |
Modifier and Type | Method and Description |
---|---|
void |
advanceAuxState(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 |
getAuxState(DataBuffer data)
Saves state information for this component by adding data to the
supplied DataBuffer.
|
void |
getInitialAuxState(DataBuffer newData,
DataBuffer oldData)
Saves initial state information data for this component by adding data
to the supplied data buffer.
|
void |
setAuxState(DataBuffer data)
Restores the state for this component by reading from the supplied
data buffer, starting at the current buffer offsets.
|
void |
skipAuxState(DataBuffer data)
Skips over the state information for this component contained
in the supplied data buffer, starting at the current buffer offsets.
|
void advanceAuxState(double t0, double t1)
t0
- beginning time associated with the time step advancet1
- end time associated with the time step advancevoid skipAuxState(DataBuffer data)
data
- buffer containing the state informationvoid getAuxState(DataBuffer data)
data
- buffer for storing the state values.void getInitialAuxState(DataBuffer newData, DataBuffer oldData)
If oldData
is non-null, then this contains
previously stored initial state information (starting at its current
buffer offsets), which should be stored into
newData
in place of the current component state data.
This may only be partially possible if the component's state structure
has changed since oldData
was written.
newData
- buffer for storing the state values.oldData
- if non-null, contains old state information that should be
written into newData
in place of the current state
information.void setAuxState(DataBuffer data)
data
- buffer containing the state information