public static class SerializableGridWorldStateFactory.GridWorldStateParser extends java.lang.Object implements StateParser
StateParser for GridWorldDomain states.
Follows the same string format as SerializableGridWorldStateFactory.| Constructor and Description |
|---|
SerializableGridWorldStateFactory.GridWorldStateParser(Domain domain) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
stateToString(State s)
Converts state s into a parsable string representation.
|
State |
stringToState(java.lang.String str)
Converts a string into a State object assuming the string representation was produced using this state parser.
|
protected Domain domain
public SerializableGridWorldStateFactory.GridWorldStateParser(Domain domain)
public java.lang.String stateToString(State s)
StateParserstateToString in interface StateParsers - the state to convertpublic State stringToState(java.lang.String str)
StateParserstringToState in interface StateParserstr - a string representation of a state