pyTooling.StateMachine

This packages provides a data structure to describe statemachines.

Hint

See high-level help for explanations and usage examples.

Classes

  • Base: Undocumented.

  • Transition: Represents a transition (edge) in a statemachine diagram (directed graph).

  • State: Represents a state (node/vertex) in a statemachine diagram (directed graph).

  • StateMachine: Represents a statemachine (graph) in a statemachine diagram (directed graph).


Classes

class pyTooling.StateMachine.Base[source]

Inheritance

Inheritance diagram of Base

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.StateMachine.Transition(source, destination)[source]

Represents a transition (edge) in a statemachine diagram (directed graph).

Inheritance

Inheritance diagram of Transition

Parameters:
__init__(source, destination)[source]
Parameters:
Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.StateMachine.State[source]

Represents a state (node/vertex) in a statemachine diagram (directed graph).

Inheritance

Inheritance diagram of State

__init__()[source]
Return type:

None

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.StateMachine.StateMachine(initialState)[source]

Represents a statemachine (graph) in a statemachine diagram (directed graph).

Inheritance

Inheritance diagram of StateMachine

Parameters:

initialState (State)

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

__init__(initialState)[source]
Parameters:

initialState (State)

Return type:

None