public class SerializableInvertedPendulumStateFactory extends java.lang.Object implements SerializableStateFactory
SerializableStateFactory for simple string representations of InvertedPendulum states.| Modifier and Type | Class and Description |
|---|---|
static class |
SerializableInvertedPendulumStateFactory.InvertedPendulumStateParser |
static class |
SerializableInvertedPendulumStateFactory.SerializableInvertedPendulumState |
| Constructor and Description |
|---|
SerializableInvertedPendulumStateFactory() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?> |
getGeneratedClass()
Returns the
SerializableState implementation that is generated by this factory. |
SerializableState |
serialize(State s)
Takes a
State and turns it into a SerializableState. |
static java.lang.String |
stateToString(State s) |
static State |
stringToState(Domain domain,
java.lang.String str) |
public SerializableInvertedPendulumStateFactory()
public SerializableState serialize(State s)
SerializableStateFactoryState and turns it into a SerializableState.serialize in interface SerializableStateFactorys - the input State to convert.SerializableStatepublic java.lang.Class<?> getGeneratedClass()
SerializableStateFactorySerializableState implementation that is generated by this factory.getGeneratedClass in interface SerializableStateFactoryClass of the SerializableState implementation that is generated by this factory.public static java.lang.String stateToString(State s)