public class InvertedPendulumStateParser extends java.lang.Object implements StateParser
StateParser
for the InvertedPendulum.InvertedPendulumTerminalFunction
domain. Format is a single space delimited line of the angle and angle velocity of the pendulum.Modifier and Type | Field and Description |
---|---|
protected Domain |
domain
The domain to which the returned state created by the method
stringToState(String) will belong. |
Constructor and Description |
---|
InvertedPendulumStateParser(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
stringToState(String)
will belong.public InvertedPendulumStateParser(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