public class SerializableLunarLanderStateFactory extends java.lang.Object implements SerializableStateFactory
SerializableStateFactory
for simple string representations of LunarLanderDomain
states.Modifier and Type | Class and Description |
---|---|
static class |
SerializableLunarLanderStateFactory.LunarLanderStateParser |
static class |
SerializableLunarLanderStateFactory.SerializableLunarLanderState |
Constructor and Description |
---|
SerializableLunarLanderStateFactory() |
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 SerializableState serialize(State s)
SerializableStateFactory
State
and turns it into a SerializableState
.serialize
in interface SerializableStateFactory
s
- the input State
to convert.SerializableState
public java.lang.Class<?> getGeneratedClass()
SerializableStateFactory
SerializableState
implementation that is generated by this factory.getGeneratedClass
in interface SerializableStateFactory
Class
of the SerializableState
implementation that is generated by this factory.public static java.lang.String stateToString(State s)