SAR<em>bayes</em>: SORAL Documentation
(SARBayes) Main Related Pages Class List Hierarchy Methods Files

AreaAssignment Class Reference

#include <containr.h>

List of all members.


Detailed Description

An assignment of an area and a time. It must belong to a resource to have meaning.

Logically a tuple (area, time), an AreaAssignment is a pair of numbers belonging to a resource, giving an area to which that resource has been assigned, and the time for which it has been assigned to that area. A resource can have many AreaAssignments.

Author : Michael Eldridge


Public Member Functions

 AreaAssignment (const int p_areaNum, const double p_time)
 Constructor for AreaAssignment, given (area number, time).

 AreaAssignment (const AreaAssignment &p_areaAssignment)
 Copy constructor for AreaAssignment.

int getAreaNum (void) const
 Returns the area number stored in this AreaAssignment.

double getTime (void) const
 Returns the time stored in this AreaAssignment.


Constructor & Destructor Documentation

AreaAssignment::AreaAssignment const int  p_areaNum,
const double  p_time
 

Constructor for AreaAssignment, given (area number, time).

Author : Michael Eldridge

AreaAssignment::AreaAssignment const AreaAssignment p_areaAssignment  ) 
 

Copy constructor for AreaAssignment.

Author : Charles Twardy


Member Function Documentation

int AreaAssignment::getAreaNum void   )  const
 

Returns the area number stored in this AreaAssignment.

We use a "get" function with no "set" function (rather than just declaring the variable public) so that the calling function cannot change the data.

Author : Michael Eldridge

double AreaAssignment::getTime void   )  const
 

Returns the time stored in this AreaAssignment.

We use a "get" function with no "set" function (rather than just declaring the variable public) so that the calling function cannot change the data.

Author : Michael Eldridge


The documentation for this class was generated from the following files:
Generated on Tue Jul 29 03:09:37 2003 for SORAL by dOxygen 1.3.2
(SARBayes) Main Related Pages Class List Hierarchy Methods Files