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.
See also
- Attributes:
- namestr
The event’s name.
- event_handlerEventHandler
Object managing the performers and cycle time.
parameter_path
strstr: Dot notation path to the target parameter within the evaluation_object.
state
floatUnion[float, np.array]: Gets or sets the state of the parameter event.
time
float, default=0.0float: Time when the event is executed.
indices
int 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.