public class GridWorldStateParser extends java.lang.Object implements StateParser
Constructor and Description |
---|
GridWorldStateParser(Domain domain) |
GridWorldStateParser(int width,
int height) |
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 GridWorldStateParser(int width, int height)
public GridWorldStateParser(Domain domain)
public java.lang.String stateToString(State s)
StateParser
stateToString
in interface StateParser
s
- the state to convertpublic State stringToState(java.lang.String str)
StateParser
stringToState
in interface StateParser
str
- a string representation of a state