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

RS::TimeUnknown Class Reference

Class used to represent the soccer server time that can be unknown. More...

Inheritance diagram for RS::TimeUnknown:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeUnknown ()
 The default constructor will make the object value unknown.

 TimeUnknown (const UInt vt)
 Constuct a object based on the gametime.

 TimeUnknown (const UInt vt, const UInt vs)
 Constuct a object based on the gametime and cycletime.

 TimeUnknown (const Time &obj)
 Construct a object based on a known timevalue.

 TimeUnknown (const WithUnknown< Time > &obj)
 Construct a TimeUnknown using a WithUnknown<Time>.

 TimeUnknown (const TimeUnknown &obj)
 Construct a object based on a (unknown) timevalue.

TimeUnknown & operator= (const TimeUnknown &)
 Assignment operator.

TimeUnknown & makeUnknown ()
 Make the time unknown.

bool isKnown () const
 Check if the time is known.

bool isUnknown () const
 Check if the time is unknown.

Time getTime () const throw (UnknownValueException)
 Get the time.

UInt getS () const throw (UnknownValueException)
 Get the current gametime.

TimeUnknown & setS (const UInt)
 Set the current gametime.

UInt getT () const throw (UnknownValueException)
 Get the current cycletime.

TimeUnknown & setT (const UInt)
 Set the current cycletime.

Arithmetic operators.
TimeUnknown & operator+= (const TimeUnknown &op)
TimeUnknown & operator-= (const TimeUnknown &op)
TimeUnknown operator- (const TimeUnknown &op) const
TimeUnknown operator+ (const TimeUnknown &op) const
Increment and decrement operators.
TimeUnknown & operator++ ()
TimeUnknown & operator-- ()
Comparison operators.
See also:
WithUnknown for more information.


bool operator== (const TimeUnknown &) const
bool operator!= (const TimeUnknown &) const
bool operator< (const TimeUnknown &) const
bool operator<= (const TimeUnknown &) const
bool operator> (const TimeUnknown &) const
bool operator>= (const TimeUnknown &) const
bool operator! () const

Detailed Description

Class used to represent the soccer server time that can be unknown.

This class is based on CMUnited's implementation created by P. Stone & Co.

Todo:
Check to see if not more arguments could be unknown.

Needs testing.

Unit:
Library
Revision
1.5
Author
s02davro
Date
2002/09/03 10:54:05

Definition at line 86 of file TimeUnknown.h.


Member Function Documentation

Time RS::TimeUnknown::getTime   const throw (UnknownValueException) [inline]
 

Get the time.

UnknownValueException if the time is unknown.

Definition at line 130 of file TimeUnknown.icc.


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