Struct PendingEvent
Defined in File event.h
Struct Documentation
-
struct PendingEvent
PendingEvent struct.
Represents an event that has triggered and is waiting to be executed.
Public Members
-
int idx
The index of
eventin the model
-
std::optional<SimulationState> state_at_trigger
The simulation state at which the discontinuity in which
eventtriggered was reached. Only set ifevent.uses_values_from_trigger_time()is true. The Heaviside variables inmodwere already updated for this discontinuity.
-
std::optional<AmiVector> xdot_at_trigger
The time derivative of the state at
state_at_trigger, ifstate_at_triggeris set and sensitivities are computed.
-
std::size_t trigger_disc_idx = {0}
Index of the discontinuity that was reached at
state_at_trigger. Only meaningful ifstate_at_triggeris set.
-
int idx