(protected) new Symbol()
- Source:
Members
(readonly) struct :module:lib/fsm
The accessor of the finite state machine owning the symbol.
Type:
- Source:
Methods
(static) add() → {module:lib/fsm~Fsm~Symbol}
Creates a symbol, adds it to the finite state machine and returns it.
The symbol has the prototype of the calling class.
- Source:
Returns:
the newly created symbol
(static) all() → {Iterator.<module:lib/fsm~Fsm~Symbol>}
Iterates on the symbols owned by the finite state machine.
- Source:
Returns:
an iterator of every symbol
- Type
- Iterator.<module:lib/fsm~Fsm~Symbol>
(static) remove(symbol) → {module:lib/fsm}
Removes a symbol and its associated transitions. Chainable.
If there is no such symbol, the function silently fails and still returns the accessor.
Parameters:
Name | Type | Description |
---|---|---|
symbol |
module:lib/fsm~Fsm~Symbol | symbol to remove |
- Source:
Returns:
the accessor of the finite state machine
- Type
- lib/fsm