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

TimeBlock Class Reference

#include <timeblock.h>

Inheritance diagram for TimeBlock:

Inheritance graph
[legend]
List of all members.

Public Types

enum  Type { MANUAL_SCHEDULE, AUTO_SCHEDULE, WORK_DONE, INVALID }

Public Methods

 TimeBlock (int start, int finish, Type type)
virtual ~TimeBlock ()=0
int start () const
int finish () const
Type type () const
bool overlap (int start, int finish) const

Private Attributes

int mStart
int mFinish
Type mType

Member Enumeration Documentation

enum TimeBlock::Type
 

Enumeration values:
MANUAL_SCHEDULE 
AUTO_SCHEDULE 
WORK_DONE 
INVALID 

Definition at line 34 of file timeblock.h.

Referenced by TASK::addReverseTimeBlock(), RESOURCE::addReverseTimeBlock(), TASK::addTimeBlock(), RESOURCE::addTimeBlock(), Project::BookResource(), Project::ReverseBookResource(), type(), Project::WorkBlock(), and ProjectFile::WorkBlock().


Constructor & Destructor Documentation

TimeBlock::TimeBlock int    start,
int    finish,
Type    type
 

Definition at line 23 of file timeblock.cc.

TimeBlock::~TimeBlock   [pure virtual]
 

Definition at line 28 of file timeblock.cc.


Member Function Documentation

int TimeBlock::finish   const [inline]
 

Definition at line 45 of file timeblock.h.

References mFinish.

Referenced by overlap().

bool TimeBlock::overlap int    start,
int    finish
const
 

Definition at line 33 of file timeblock.cc.

References finish(), mFinish, mStart, and start().

int TimeBlock::start   const [inline]
 

Definition at line 44 of file timeblock.h.

References mStart.

Referenced by overlap().

Type TimeBlock::type   const [inline]
 

Definition at line 46 of file timeblock.h.

References mType, and Type.


Member Data Documentation

int TimeBlock::mFinish [private]
 

Definition at line 52 of file timeblock.h.

Referenced by finish(), and overlap().

int TimeBlock::mStart [private]
 

Definition at line 51 of file timeblock.h.

Referenced by overlap(), and start().

Type TimeBlock::mType [private]
 

Definition at line 53 of file timeblock.h.

Referenced by type().


The documentation for this class was generated from the following files:
Generated on Wed Feb 18 22:24:05 2004 for Opensched by doxygen1.2.15