public final class QSS2Fd extends QSSBase
Fd: When handling a rate-event, select the time at which to estimate the second derivative for the internal, continuous state model using a standard finite-difference perturbation procedure.
_cStateModels, _currSimTime, _derivFcn, _dqs, _evtIndCt, _exactInputs, _ivCt, _ivModels, _qStateModels, _quantEvtTimeMax, _stateCt
Constructor and Description |
---|
QSS2Fd() |
Modifier and Type | Method and Description |
---|---|
void |
_initializeWorker()
Initialize object fields (QSS-specific).
|
protected Time |
_predictQuantizationEventTimeWorker(int stateIdx,
Time quantEvtTimeMax)
Get the predicted quantization-event time for a state (QSS-specific).
|
protected void |
_triggerQuantizationEventWorker(int stateIdx)
Form a new external, quantized state model (QSS-specific).
|
protected void |
_triggerRateEventWorker()
Form new internal, continuous state models (QSS-specific).
|
protected void |
_triggerRateEventWorkerEventDetection()
Form new internal, continuous state models (QSS-specific).
|
int |
getStateModelOrder()
Get the order of the external, quantized state models exposed by the integrator.
|
_predictQuantizationEventDeltaTimeQSS2General, _predictQuantizationEventDeltaTimeQSS2QFromC, _predictQuantizationEventDeltaTimeQSS3General, _predictQuantizationEventDeltaTimeQSS3QFromC, advanceToTime, evaluateStateModel, evaluateStateModelContinuous, findQuantum, getCurrentSimulationTime, getEventIndicatorCount, getExactInputs, getInputVariableCount, getInputVariableModel, getStateCount, getStateModel, initialize, initializeDerivativeFunction, initializeDerivativeFunction, initializeSimulationTime, minimumTime, needInputVariableModelIndex, needQuantizationEventIndex, needQuantizationEventIndexes, needRateEvent, predictQuantizationEventTime, predictQuantizationEventTimeEarliest, predictQuantizationEventTimeEarliest, setCurrentSimulationTime, setExactInputs, setInputVariableModel, setNumberOfEventIndicators, setQuantizationEventTimeMaximum, setQuantizationTolerance, setQuantizationTolerances, setStateValue, stepToTime, stepToTime, stringifyStateModel, stringifyStateModelContinuous, triggerQuantizationEvent, triggerQuantizationEvents, triggerRateEvent, triggerRateEvent, validate
public final int getStateModelOrder()
getStateModelOrder
in class QSSBase
public final void _initializeWorker()
_initializeWorker
in class QSSBase
protected final Time _predictQuantizationEventTimeWorker(int stateIdx, Time quantEvtTimeMax)
_predictQuantizationEventTimeWorker
in class QSSBase
stateIdx
- The state index.quantEvtTimeMax
- The maximum quantization event time.protected final void _triggerQuantizationEventWorker(int stateIdx)
_triggerQuantizationEventWorker
in class QSSBase
stateIdx
- The state index, 0 <= stateIdx < this.getStateCount().protected final void _triggerRateEventWorker() throws java.lang.Exception
_triggerRateEventWorker
in class QSSBase
java.lang.Exception
- If the rate event worker fails.protected final void _triggerRateEventWorkerEventDetection() throws java.lang.Exception
_triggerRateEventWorkerEventDetection
in class QSSBase
java.lang.Exception
- If the rate event worker event detection fails.