CADETProcess.processModel.Process.add_event_dependency

CADETProcess.processModel.Process.add_event_dependency#

Process.add_event_dependency(dependent_event, independent_events, factors=None, transforms=None)#

Create a dependency relationship between events.

This method establishes how one event (dependent) is influenced by one or more other events (independents) through factors and optional transformation functions. For example, the time of a dependent event could be determined by the sum of the times of independent events multiplied by their corresponding factors.

Parameters:
dependent_eventstr

Event whose value will depend on other events.

independent_eventslist

List of independent event names.

factorslist, optional

List of factors used for the relation with the independent events. Length must be equal the length of independent events. If None, all factors are assumed to be 1.

transformslist, optional

List of functions used to transform the parameter value. Length must be equal the length of independent events. If None, no transform is applied.

Raises:
CADETProcessError

If dependent_event OR independent_events are not found. If length of factors does not equal length of independent events. If length of transforms does not equal length of independent events.