public class SimpleMathStateMachine extends AbstractMathStateMachine
DoubleMapELAPSED_TIME, START_TIME, STATE_ELAPSED_TIME, STATE_START_TIME| Constructor and Description |
|---|
SimpleMathStateMachine(String start) |
SimpleMathStateMachine(String start,
boolean useDegrees) |
SimpleMathStateMachine(String start,
java.util.function.Supplier<java.time.Clock> clockSupplier,
boolean useDegrees) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
getVariable(String identifier)
Returns the current value of given variable.
|
protected void |
register(Set<String> variables)
This method is called before evaluation for information of variables
that may need to be registered.
|
void |
setVariable(String identifier,
double value)
Assign value to named variable.
|
protected void |
unregister(Set<String> variables)
This method is called after evaluation for information of variables
that can be unregistered.
|
addTransition, evaluate, getCurrentVariablespublic SimpleMathStateMachine(String start)
public SimpleMathStateMachine(String start, boolean useDegrees)
public SimpleMathStateMachine(String start, java.util.function.Supplier<java.time.Clock> clockSupplier, boolean useDegrees)
public void setVariable(String identifier, double value)
identifier - value - protected double getVariable(String identifier)
AbstractMathStateMachinegetVariable in class AbstractMathStateMachineprotected void register(Set<String> variables)
AbstractMathStateMachineregister in class AbstractMathStateMachineprotected void unregister(Set<String> variables)
AbstractMathStateMachineunregister in class AbstractMathStateMachineCopyright © 2017. All rights reserved.