public class CartPoleStateParser extends java.lang.Object implements StateParser
| Modifier and Type | Field and Description |
|---|---|
protected Domain |
domain
The domain to which created state object created in the
stringToState(String) method will be associated. |
| Constructor and Description |
|---|
CartPoleStateParser(Domain domain)
Initializes.
|
| 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
stringToState(String) method will be associated.public CartPoleStateParser(Domain domain)
domain - The domain to which created state object created in the stringToState(String) method will be associated.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