| Package | Description |
|---|---|
| com.github.pnavais.machine | |
| com.github.pnavais.machine.builder | |
| com.github.pnavais.machine.exporter | |
| com.github.pnavais.machine.importer |
| Modifier and Type | Method and Description |
|---|---|
StateMachine |
StateMachine.next()
Sends a void message to the state machine triggering
a potential transition.
|
StateMachine |
StateMachine.send(Message message)
Sends a message to the state machine triggering
a potential transition.
|
StateMachine |
StateMachine.send(String message)
Sends a message to the state machine triggering
a potential transition.
|
| Modifier and Type | Method and Description |
|---|---|
StateMachine |
StateMachineBuilder.build()
Creates and initializes a State Machine
from the transition map currently built.
|
StateMachine |
StateMachineBuilder.ToBuilder.build()
Finish the current transition and retrieves
the current state machine built instance.
|
StateMachine |
StateMachineBuilder.OnBuilder.build()
Finish the current transition and retrieves
the current state machine built instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
YAMLExporter.export(StateMachine stateMachine)
Export the current contents of the state machine
to YAML syntax.
|
String |
DOTExporter.export(@NonNull StateMachine stateMachine)
Export the current contents of the state machine
to the DOT language.
|
| Modifier and Type | Method and Description |
|---|---|
StateMachine |
YAMLImporter.parse(String input)
Parses the given YAML String containing
the State machine specification or throws
YAMLImportException in case of errors.
|
StateMachine |
YAMLImporter.parseFile(Path inputFile)
Processes the given input file to obtain
an actual
StateMachine instance. |
StateMachine |
YAMLImporter.parseFile(String inputFile)
Processes the given input file to obtain
an actual
StateMachine instance. |
Copyright © 2019 state-machine. All rights reserved.