WorldState
Object Hierarchy:
Description:
public class WorldState : Object
Represents the aspects of the world relevant to the given schema context.
Namespace: PSchema
Package: PSchema
Content:
Creation methods:
Methods:
- public void add_observation (Observation o)
Add an observation to the current WorldState.
- public void remove_observation (Observation o)
Remove an observation from the WorldState.
- public
bool
equals (WorldState ws2)
Determines whether the current WorldState and the supplied WorldState
are equal.
- public
bool
satisfies (WorldState ws2)
Determines whether the supplied WorldState is a subset of the current
WorldState.
- public
string
to_string ()
Produces a human readable representation of this WorldState.
- public
string
to_xml ()
Provides an XML representation of this WorldState suitable for
recreating this state at a later date.
- public
bool
empty ()
Determines whether this WorldState is empty of any observations.
- public WorldState copy ()
Performs a deep copy of the current WorldState.
- public WorldState get_predictions ()
Finds the highest probability outcome for each tracked sensor.
- public
double
get_probability ()
Return the probability of this WorldState being encountered in the
context of the parent schema.
- public WorldState complement (WorldState ws2,
bool
sensor_complement)
Finds observations that exist in the supplied world state that don't
exist in the predictions for this state. (Relative complement of ws2 in the context of the world state).
- public WorldState union (WorldState ws2)
Performs a union on the current world state and the supplied one.
- public WorldState intersection (WorldState ws2)
Performs an intersection on the current world state and the supplied
one.
Fields: