public interface SerializableStateFactory
SerializableState
instances from an input
State
by using the serialize(burlap.oomdp.core.states.State)
method. This
interface requires a getGeneratedClass()
method that reports the specific SerializableState
implementation that is returned so that complex classes that have State
instances
to be turned into a SerializableState
can map them to the appropriate class type.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 . |
SerializableState serialize(State s)
State
and turns it into a SerializableState
.s
- the input State
to convert.SerializableState
java.lang.Class<?> getGeneratedClass()
SerializableState
implementation that is generated by this factory.Class
of the SerializableState
implementation that is generated by this factory.