|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EngineControlAdapter<S,L,P>
Implementations of this interface provide a controller with string representations of a state engine's labels. The label names returned from this interface must, by default, match the following pattern:
^[\p{javaLowerCase}\p{javaUpperCase}\p{Digit}-_]+$
This pattern can be changed via the pronto static properties.
It is strongly advised (though not mandatory) that the mapping provided be one-to-one.
| Method Summary | |
|---|---|
L |
labelFromName(java.lang.String name)
Returns the label with the supplied name. |
java.lang.String |
nameFromLabel(L label)
Provides a string representation of a supplied label. |
P |
parseParameter(java.lang.String string)
Returns a parameter string that is supplied to the controller into a parameter object that can be used to perform transitions. |
| Method Detail |
|---|
java.lang.String nameFromLabel(L label)
label - a label in the controller's state graph
L labelFromName(java.lang.String name)
name - a name supplied to the controller
P parseParameter(java.lang.String string)
throws java.text.ParseException
string - the string representation of the parameter that was supplied
to the controller, or null if there was no parameter specified
java.text.ParseException - if the supplied string could not be parsed into a valid
parameter object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||