public interface OOState extends State
ObjectInstance
and is an
implementation of State
, but otherwise is just a java object of your own definition, which makes defining
and OO-MDP object class the same procedure as defining a Java object class.Modifier and Type | Method and Description |
---|---|
int |
numObjects()
Returns the number of object instances in this state.
|
ObjectInstance |
object(java.lang.String oname)
Returns the object in this state with the name oname
|
java.util.List<ObjectInstance> |
objects()
Returns the list of object instances in this state.
|
java.util.List<ObjectInstance> |
objectsOfClass(java.lang.String oclass)
Returns all objects that belong to the object class named oclass
|
copy, get, variableKeys
int numObjects()
ObjectInstance object(java.lang.String oname)
oname
- the name of the object instance to returnjava.util.List<ObjectInstance> objects()
java.util.List<ObjectInstance> objectsOfClass(java.lang.String oclass)
oclass
- the name of the object class for which objects should be returned