public class StateMachineBuilder
extends java.lang.Object
A state machine consists of one or more state machine cores. There cores are
constructed using a MachineCoreBuilder.
StateMachine,
MachineCoreBuilder| Constructor and Description |
|---|
StateMachineBuilder()
creates a new empty builder
|
StateMachineBuilder(StateMachineBuilder builder)
copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
StateMachineBuilder |
addMachineCore(MachineCoreBuilder builder)
Adds a
MachineCoreBuilder to this builder. |
StateMachine |
build()
Constructs a
StateMachine represented by this builder and all its
MachineCoreBuilders |
StateMachineBuilder |
copy()
creates a copy of this builder
|
public StateMachineBuilder()
public StateMachineBuilder(StateMachineBuilder builder)
builder - the builder to copyjava.lang.NullPointerException - builder is nullpublic StateMachineBuilder addMachineCore(MachineCoreBuilder builder)
MachineCoreBuilder to this builder. That builder will be
used to derive a state machine core internally. The passed
MachineCoreBuilder instance will be copied and will therefore not
be affected by further changes to that instance.builder - the core builder to add. may not be nulljava.lang.NullPointerException - builder is nullpublic StateMachineBuilder copy()
public StateMachine build()
StateMachine represented by this builder and all its
MachineCoreBuildersjava.lang.IllegalArgumentException - a core could not be constructed due to invalid dataCopyright © 2017. All Rights Reserved.