java.lang.Object
net.tangly.fsm.utilities.Generator<O,S,E>
net.tangly.fsm.utilities.GeneratorAsciiDoc<O,S,E>
- Type Parameters:
O
- the class of the instance owning the finite state machine instanceS
- enumeration type for the identifiers of statesE
- enumeration type for the identifiers of events
Generates an AsciiDoc description of the finite state machine declaration. A state has a name, a context, description, final flag, initial flag, composite flag, entry action,
and exit action. A transition has a start state name, end state name, description, local flag, guard, action,
-
Field Summary
-
Constructor Summary
ConstructorDescriptionGeneratorAsciiDoc
(@NotNull FsmBuilder<O, S, E> builder, String name) Constructor of the class. -
Method Summary
Modifier and TypeMethodDescriptionReturn the extension used by the generator when writing its output.void
generate
(@NotNull PrintWriter writer) Implement the creation of the text content for a specific generator.Methods inherited from class net.tangly.fsm.utilities.Generator
findOwner, generateFileIfChanged, getStateId, getStateName, indent, name, toString, transitionComparator
-
Constructor Details
-
GeneratorAsciiDoc
Constructor of the class.- Parameters:
builder
- the finite state machine builder containing the machine to drawname
- name of the finite state machine description- See Also:
-
-
Method Details