public class MechSystemBase.ConstraintForceStateSaver extends java.lang.Object implements HasNumericState
Constructor and Description |
---|
ConstraintForceStateSaver() |
Modifier and Type | Method and Description |
---|---|
void |
getInitialState(NumericState nstate) |
void |
getState(DataBuffer data)
Saves state information for this component by adding data to the
supplied DataBuffer.
|
boolean |
hasState()
Returns
true if this component currently holds state. |
void |
setState(DataBuffer data)
Restores the state for this component by reading from the supplied
data buffer, starting at the current buffer offsets.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
advanceState, getAuxVarDerivative, getAuxVarState, getStateVersion, numAuxVars, requiresAdvance, setAuxVarState
public boolean hasState()
HasNumericState
true
if this component currently holds state. This
allows the presence of state to depend on the component's configuration.hasState
in interface HasNumericState
true
if this component holds statepublic void getInitialState(NumericState nstate)
public void getState(DataBuffer data)
HasNumericState
getState
in interface HasNumericState
data
- buffer for storing the state values.public void setState(DataBuffer data)
HasNumericState
setState
in interface HasNumericState
data
- buffer containing the state information