public static class SerializableGridWorldStateFactory.SerializableGridWorldState extends SerializableState
Modifier and Type | Field and Description |
---|---|
java.lang.String |
stringRep |
Constructor and Description |
---|
SerializableGridWorldStateFactory.SerializableGridWorldState() |
SerializableGridWorldStateFactory.SerializableGridWorldState(State s) |
Modifier and Type | Method and Description |
---|---|
State |
deserialize(Domain domain)
Unpacks this
SerializableState into an actual State
in which the ObjectClass , Attribute and other Domain
information refers to the provided Domain . |
void |
serialize(State s)
Causes this object to be a serializable representation of the input
State |
deserializeStates
public SerializableGridWorldStateFactory.SerializableGridWorldState()
public SerializableGridWorldStateFactory.SerializableGridWorldState(State s)
public void serialize(State s)
SerializableState
State
serialize
in class SerializableState
s
- the State
to be represented by this object.public State deserialize(Domain domain)
SerializableState
SerializableState
into an actual State
in which the ObjectClass
, Attribute
and other Domain
information refers to the provided Domain
.deserialize
in class SerializableState
domain
- The Domain
specifying ObjectClass
and Attribute
information.State
corresponding to this SerializableState