CADETProcess.dynamicEvents.Event#
- class CADETProcess.dynamicEvents.Event(name, event_handler, parameter_path, state, time=0.0, indices=None)[source]#
Defines dynamic changes of model parameters based on events.
An Event is a time-based modification to an attribute of a performer. Its execution time can depend on other Events or Durations. To handle cyclic behavior, times are computed modulo the cycle time of the EventHandler.
- Attributes:
- namestr
The event’s name.
- event_handlerEventHandler
Object managing the performers and cycle time.
parameter_pathstrstr: Dot notation path to the target parameter within the evaluation_object.
statefloatUnion[float, np.array]: Gets or sets the state of the parameter event.
timefloat, default=0.0float: Time when the event is executed.
indicesint or list, default=Nonelist: Indices for events that modifies only specific entries of a parameter.
Methods
add_dependency(dependency[, factor, transform])Add a time dependency on another event.
remove_dependency(dependency)Remove dependencies of events.
set_value(state)Set the specified state to the associated event parameter.
See also