Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::Predicate Class Reference

The abstract base class for all predicates in the RoboSoc system. More...

Inheritance diagram for RS::Predicate:

Inheritance graph
[legend]
Collaboration diagram for RS::Predicate:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Predicate ()
 Create a predicate with default behavior.

 Predicate (const Predicate &obj)
 Creates a predicate that is an exact copy of obj.

virtual ~Predicate ()
 Destroys the predicate.

Predicate & operator= (const Predicate &obj)
 Assignment operator.

virtual FuzzyBool operator() ()
 Function application operator.

virtual FuzzyBool evaluate ()=0
 Should return the truth value of the predicate.


Protected Member Functions

virtual void update (const UInt32 update_number)=0
 The update function This should be used to update the value of the predicate if necessary.

bool needUpdate (const UInt32 update_number) const
 Test to see if the predicate needs to be updated.


Protected Attributes

ViewManagerviewManager
 A pointer to the view manager.

UInt32 lastUpdateNumber
 The last update number the predicate is updated for.


Detailed Description

The abstract base class for all predicates in the RoboSoc system.

Todo:
Link this with the worldModel insted of viewManager.
Unit:
Framework
Revision
1.6
Author
s02davro
Date
2002/08/02 21:56:52

Definition at line 81 of file Predicate.h.


Member Function Documentation

Predicate & RS::Predicate::operator= const Predicate &    obj
 

Assignment operator.

Assigns obj to this object.

Definition at line 72 of file Predicate.cc.

References lastUpdateNumber, and viewManager.

FuzzyBool RS::Predicate::operator()   [inline, virtual]
 

Function application operator.

Will call evalute().

Reimplemented in RS::AmIClosestToBall, RS::AmIFirstToBall, RS::IsBallKnown, RS::IsCatchAllowed, and RS::PassKick.

Definition at line 60 of file Predicate.icc.

References evaluate().


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:26:23 2011 for RoboSoc by doxygen1.3-rc3