Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Feature Class Reference

#include <SoccerTypes.h>

Collaboration diagram for Feature:

Collaboration graph
[legend]
List of all members.

Public Methods

 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 641 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 ObjectT, and setFeature().


Member Function Documentation

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().

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.

Referenced by WorldModel::getFastestInSetTo(), WorldModel::predictCommandToInterceptBall(), and WorldModel::predictNrCyclesToObject().

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, and ObjectT.

Referenced by WorldModel::getFastestInSetTo().

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().

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().

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().

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().

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 ObjectT, setCommand(), setInfo(), setObject(), setTimeHear(), setTimeSee(), setTimeSense(), and setVec().

Referenced by Feature().

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().

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, and ObjectT.

Referenced by setFeature().

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().

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(), and WorldModel::WorldModel().

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().

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().


Member Data Documentation

double Feature::m_dInfo [private]
 

information stored with this feature

Definition at line 647 of file SoccerTypes.h.

Referenced by getInfo(), and setInfo().

ObjectT Feature::m_object [private]
 

object information stored with this feature

Definition at line 646 of file SoccerTypes.h.

Referenced by getObject(), and setObject().

SoccerCommand Feature::m_soc [private]
 

command stored with this feature

Definition at line 649 of file SoccerTypes.h.

Referenced by getCommand(), and setCommand().

Time Feature::m_timeHear [private]
 

hear time corresponding to stored info

Definition at line 645 of file SoccerTypes.h.

Referenced by getTimeHear(), and setTimeHear().

Time Feature::m_timeSee [private]
 

see time corresponding to stored information

Definition at line 643 of file SoccerTypes.h.

Referenced by getTimeSee(), and setTimeSee().

Time Feature::m_timeSense [private]
 

sense time corresponding to stored info

Definition at line 644 of file SoccerTypes.h.

Referenced by getTimeSense(), and setTimeSense().

VecPosition Feature::m_vec [private]
 

information stored with this feature

Definition at line 648 of file SoccerTypes.h.

Referenced by getVec(), and setVec().


The documentation for this class was generated from the following files:
Generated on Fri Nov 7 11:46:02 2003 for UvA Trilearn 2003 Base Code by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001