CADETProcess.dynamicEvents.Event.add_dependency#
- Event.add_dependency(dependency, factor=1, transform=None)[source]#
Add a time dependency on another event.
When an event is dependent, the time of the event is based on a linear combination of its dependencies.
- Parameters:
- dependencyEvent
Event that this event depends on.
- factorfloat, default=1
Weighting factor for the dependency.
- transformcallable, optional
A function to transform the dependent event’s time.
- Raises:
- CADETProcessError
If the dependency is already listed.