cosapp.multimode.discreteStepper¶
Event handling and discrete stepping
Classes
|
|
|
Named tuple associating a list of joint events and their occurrence time. |
- class cosapp.multimode.discreteStepper.DiscreteStepper(driver: Driver)[source]¶
Bases:
object- event_detected() bool[source]¶
Tests all primitive events and returns a Boolean value indicating whether at least one of these events is to be triggered.
- find_primal_events() EventRecord[source]¶
Returns a EventRecord named tuple containing the first primitive events triggered, together with their occurrence time ((inf, []) if no primitive event is triggered). The internal state is only updated if an event is triggered. This method should only be called at the first microstep of the first discrete time step.
- first_discrete_step() EventRecord[source]¶
Performs the first discrete step and returns an EventRecord indicating which primitive event was triggered and at which date.
- property interval: Tuple[float, float]¶
time interval
- Type:
Tuple[float, float]
- set_data(interval, interpol) None[source]¶
Sets interpolation data used for detecting the first event that occurred in a given time step.
- property sysview: SystemInterpolator¶
system interpolator used for event time finding
- Type:
- class cosapp.multimode.discreteStepper.EventRecord(time: float, events: List[Event])[source]¶
Bases:
NamedTupleNamed tuple associating a list of joint events and their occurrence time.
- time: float¶
Alias for field number 0
- cosapp.multimode.discreteStepper.object__getstate__(self, /)¶
Helper for pickle.