Feature Class Reference

#include <SoccerTypes.h>


Public Member Functions

 Feature ()
 Feature (Time timeSee, Time timeSense, Time timeHear, ObjectT object, double dInfo=UnknownDoubleValue, SoccerCommand soc=SoccerCommand(CMD_ILLEGAL), VecPosition pos=VecPosition(0, 0))
bool setFeature (Time timeSee, Time timeSense, Time timeHear, ObjectT object, double dInfo=UnknownDoubleValue, SoccerCommand soc=SoccerCommand(CMD_ILLEGAL), VecPosition pos=VecPosition(0, 0))
bool setTimeSee (Time time)
Time getTimeSee ()
bool setTimeSense (Time time)
Time getTimeSense ()
bool setTimeHear (Time time)
Time getTimeHear ()
bool setObject (ObjectT obj)
ObjectT getObject ()
bool setInfo (double d)
double getInfo ()
bool setVec (VecPosition pos)
VecPosition getVec ()
bool setCommand (SoccerCommand soc)
SoccerCommand getCommand ()

Private Attributes

Time m_timeSee
Time m_timeSense
Time m_timeHear
ObjectT m_object
double m_dInfo
VecPosition m_vec
SoccerCommand m_soc


Detailed Description

This class contains information for one specific feature (e.g., fastest teammate to the ball. A feature corresponds to a specific time and is often related to a specific object and a specific value. Therefore, these values are stored in this class.

Definition at line 646 of file SoccerTypes.h.


Constructor & Destructor Documentation

Feature::Feature (  ) 

This is the constructor for the Feature class. A feature (specific information that applies to the current time can be stored here.

Definition at line 964 of file SoccerTypes.cpp.

References OBJECT_ILLEGAL, setFeature(), UnknownDoubleValue, and UnknownTime.

Feature::Feature ( Time  timeSee,
Time  timeSense,
Time  timeHear,
ObjectT  object,
double  dInfo = UnknownDoubleValue,
SoccerCommand  soc = SoccerCommand(CMD_ILLEGAL),
VecPosition  pos = VecPosition(0,0) 
)

This is the constructor for the Feature class. A feature (specific information that applies to the current time can be stored here. For example, when the information about the fastest player to the ball is calculated, this can be stored in a feauture. This information can then be used for another calculation in the same cycle.

Parameters:
timeSee time of see message to which this feature applies.
timeSense time of sense message to which this feature applies.
object object to which this feature applies
dInfo specific information that can be stored about this feature.
soc soccercommand stored with this feature
pos position information stored with this feature

Definition at line 981 of file SoccerTypes.cpp.

References setFeature().


Member Function Documentation

bool Feature::setFeature ( Time  timeSee,
Time  timeSense,
Time  timeHear,
ObjectT  object,
double  dInfo = UnknownDoubleValue,
SoccerCommand  soc = SoccerCommand(CMD_ILLEGAL),
VecPosition  pos = VecPosition(0,0) 
)

This methods sets the values of the Feature class. A feature (specific information that applies to the current time can be stored here. For example, when the information about the fastest player to the ball is calculated, this can be stored in a feauture. This information can then be used for another calculation in the same cycle.

Parameters:
timeSee time of see message to which this feature applies.
timeSense time of sense message to which this feature applies.
timeSense time of hear message to which this feature applies.
object object to which this feature applies
dInfo specific information that can be stored about this feature.
soc command stored with this feature
pos position information stored with this feature
Returns:
boolean indicating whether update was successful.

Definition at line 1000 of file SoccerTypes.cpp.

References setCommand(), setInfo(), setObject(), setTimeHear(), setTimeSee(), setTimeSense(), and setVec().

Referenced by Feature().

bool Feature::setTimeSee ( Time  time  ) 

This method sets the see time for a feature.

Parameters:
time see time that applies to this feature.

Definition at line 1017 of file SoccerTypes.cpp.

References m_timeSee.

Referenced by setFeature().

Time Feature::getTimeSee (  ) 

This method returns the see time for a feature.

Returns:
time that is related to this feature.

Definition at line 1025 of file SoccerTypes.cpp.

References m_timeSee.

Referenced by WorldModel::isFeatureRelevant().

bool Feature::setTimeSense ( Time  time  ) 

This method sets the sense time for a feature.

Parameters:
time sense time that applies to this feature.

Definition at line 1032 of file SoccerTypes.cpp.

References m_timeSense.

Referenced by setFeature(), and WorldModel::WorldModel().

Time Feature::getTimeSense (  ) 

This method returns the sense time for a feature.

Returns:
time that is related to this feature.

Definition at line 1040 of file SoccerTypes.cpp.

References m_timeSense.

Referenced by WorldModel::isFeatureRelevant().

bool Feature::setTimeHear ( Time  time  ) 

This method sets the hear time for a feature.

Parameters:
time hear time that applies to this feature.

Definition at line 1047 of file SoccerTypes.cpp.

References m_timeHear.

Referenced by setFeature().

Time Feature::getTimeHear (  ) 

This method returns the hear time for a feature.

Returns:
time that is related to this feature.

Definition at line 1055 of file SoccerTypes.cpp.

References m_timeHear.

Referenced by WorldModel::isFeatureRelevant().

bool Feature::setObject ( ObjectT  object  ) 

This method sets the object for a feature.

Parameters:
object object type that applies to this feature.

Definition at line 1062 of file SoccerTypes.cpp.

References m_object.

Referenced by setFeature().

ObjectT Feature::getObject (  ) 

This method returns the object related to this feature.

Returns:
object stored with this feature.

Definition at line 1070 of file SoccerTypes.cpp.

References m_object.

Referenced by WorldModel::getFastestInSetTo().

bool Feature::setInfo ( double  d  ) 

This method sets the information for a feature.

Parameters:
d double information that applies to this feature.

Definition at line 1077 of file SoccerTypes.cpp.

References m_dInfo.

Referenced by setFeature().

double Feature::getInfo (  ) 

This method returns the information for a feature.

Returns:
information stored with this feature.

Definition at line 1085 of file SoccerTypes.cpp.

References m_dInfo.

bool Feature::setVec ( VecPosition  pos  ) 

This method sets the posiiton corresponding to this feature.

Returns:
boolean indicating whether update was succesfull.

Definition at line 1092 of file SoccerTypes.cpp.

References m_vec.

Referenced by setFeature().

VecPosition Feature::getVec (  ) 

This method returns the position information for a feature.

Returns:
position information stored with this feature.

Definition at line 1100 of file SoccerTypes.cpp.

References m_vec.

bool Feature::setCommand ( SoccerCommand  soc  ) 

This method sets the command corresponding to this feature.

Returns:
boolean indicating whether update was succesfull.

Definition at line 1107 of file SoccerTypes.cpp.

References m_soc.

Referenced by setFeature().

SoccerCommand Feature::getCommand (  ) 

This method returns the command corresponding to this feature.

Returns:
command stored with this feature.

Definition at line 1115 of file SoccerTypes.cpp.

References m_soc.

Referenced by BasicPlayer::interceptClose(), and WorldModel::predictCommandToInterceptBall().


Field Documentation

Time Feature::m_timeSee [private]

see time corresponding to stored information

Definition at line 648 of file SoccerTypes.h.

Referenced by getTimeSee(), and setTimeSee().

Time Feature::m_timeSense [private]

sense time corresponding to stored info

Definition at line 649 of file SoccerTypes.h.

Referenced by getTimeSense(), and setTimeSense().

Time Feature::m_timeHear [private]

hear time corresponding to stored info

Definition at line 650 of file SoccerTypes.h.

Referenced by getTimeHear(), and setTimeHear().

ObjectT Feature::m_object [private]

object information stored with this feature

Definition at line 651 of file SoccerTypes.h.

Referenced by getObject(), and setObject().

double Feature::m_dInfo [private]

information stored with this feature

Definition at line 652 of file SoccerTypes.h.

Referenced by getInfo(), and setInfo().

VecPosition Feature::m_vec [private]

information stored with this feature

Definition at line 653 of file SoccerTypes.h.

Referenced by getVec(), and setVec().

SoccerCommand Feature::m_soc [private]

command stored with this feature

Definition at line 654 of file SoccerTypes.h.

Referenced by getCommand(), and setCommand().


The documentation for this class was generated from the following files:
Generated on Thu Apr 26 22:45:30 2007 for GangOfSix(GOS)-RoboCupTeamProject by  doxygen 1.5.1-p1