Observation
Object Hierarchy:
Description:
public abstract class Observation : Object
Represents a single observation from a sensor.
Namespace: PSchema
Package: PSchema
Content:
Properties:
Creation methods:
Methods:
- public abstract
bool
equals (Observation o2)
- public virtual
string
to_string ()
- public virtual
string
to_xml ()
Provides an XML representation of this observation, suitable for use
when saving and loading the framework state. As such it should contain all the information necessary to reconstruct this
observation.
- public abstract Observation copy ()
Perform a deep copy of this observation.
- public virtual void parse_node (unowned
Node
* node)
Parse an XML node to recreate a previously saved observation.
- public void occurred (
bool
success)
Used to indicate whether or not this observation was encountered as
expected.
- public
double
get_probability ()
Returns the probability of this observation being encountered in the
context of the parent schema.
- public abstract
HashTable
<string
,string
> get_properties ()
Retrieves this observations properties. These may be concrete values
or generalised ones.
- public abstract
HashTable
<string
,string
> get_concrete_properties ()
Retrieves this observations properties. These may only be concrete
values, although they may have been instantiated from generalised ones.
- public abstract void set_property_var (
string
property, string
variable)
Sets a generalised property variable.
- public abstract void set_concrete_var (
string
property, string
variable)
Sets a concrete property value.
- public virtual
double
get_similarity (Observation o2)
Determines the similarity between the current observation and the
supplied observation.
- public void instantiate_var (
string
variable, string
value)
- public
string
hash ()
- public
bool
is_generalised ()
Fields: