![]() |
Code Examples
A repository of 155 code examples for BeepBeep
|
Similar to SimpleMooreMachine, but with a bit of code written to avoid repetitions. More...
Static Public Member Functions | |
| static void | main (String[] args) |
Static Protected Member Functions | |
| static void | addTransition (MooreMachine m, int source, String label, int destination) |
| Adds a new transition to a Moore machine. More... | |
Similar to SimpleMooreMachine, but with a bit of code written to avoid repetitions.
Definition at line 38 of file SimpleMooreMachineCompact.java.
|
staticprotected |
Adds a new transition to a Moore machine.
The condition on this transition is an equality check between a String event and a predefined label.
| m | The machine to add the transition to |
| source | The source state |
| label | The label to compare the event to |
| destination | The destination state |
Definition at line 92 of file SimpleMooreMachineCompact.java.