nineml.abstraction_layer.component.OnEvent

class nineml.abstraction_layer.component.OnEvent(src_port_name, state_assignments=None, event_outputs=None, target_regime_name=None)
__init__(src_port_name, state_assignments=None, event_outputs=None, target_regime_name=None)

Constructor for OnEvent

Parameters:src_port_name – The name of the EventPort that triggers this transition

See Transition.__init__ for the definitions of the remaining parameters.

Methods

__init__(src_port_name[, state_assignments, ...]) Constructor for OnEvent
accept_visitor(visitor, **kwargs) link to something about visitation.
set_source_regime(source_regime) Internal method, used during component construction.
set_target_regime(target_regime) Internal method, used during component construction.

Attributes

event_outputs |Events| that happen when this transitions occurs
source_regime Returns the source regime of this transition.
source_regime_name DO NOT USE: Internal function. Use source_regime.name instead.
src_port_name
state_assignments An ordered list of StateAssignments that happen when this
target_regime Returns the target regime of this transition.
target_regime_name DO NOT USE: Internal function. Use target_regime.name instead.
accept_visitor(visitor, **kwargs)

link to something about visitation.

set_source_regime(source_regime)

Internal method, used during component construction.

Used internally by the ComponentClass objects after all objects have be constructed, in the _ResolveTransitionRegimeNames() method. This is because when we build Transitions, the Regimes that they refer to generally are not build yet, so are referred to by strings. This method is used to set the source Regime object. We check that the name of the object set is the same as that previously expected.

set_target_regime(target_regime)

Internal method, used during component construction.

See set_source_regime

event_outputs

|Events| that happen when this transitions occurs

source_regime

Returns the source regime of this transition.

Note

This method will only be available after the ComponentClass containing this transition has been built. See set_source_regime

source_regime_name

DO NOT USE: Internal function. Use source_regime.name instead.

src_port_name
state_assignments

An ordered list of StateAssignments that happen when this transitions occurs

target_regime

Returns the target regime of this transition.

Note

This method will only be available after the ComponentClass containing this transition has been built. See set_source_regime

target_regime_name

DO NOT USE: Internal function. Use target_regime.name instead.