class documentation

class Chain(object): (source)

Constructor: Chain(steps)

View In Hierarchy

Chain is a logical group of states, that resembles a linked list. The start state is the head of the Chain and the end state is the tail of the Chain.

Method __init__ steps (list(State), optional): List of states to be chained in-order. (default: [])
Method __iter__ Undocumented
Method __repr__ Undocumented
Method accept Undocumented
Method append Add a state at the tail end of the chain.
Instance Variable steps Undocumented
Property state_id Undocumented
def __init__(self, steps=[]): (source)

Args:
steps (list(State), optional): List of states to be chained in-order. (default: [])

def __iter__(self): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def accept(self, visitor): (source)

Undocumented

def append(self, step): (source)

Add a state at the tail end of the chain.

Args:
step (State): State to insert at the tail end of the chain.

Undocumented

Undocumented