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

TaskTimeBlock Class Reference

#include <timeblock.h>

Inheritance diagram for TaskTimeBlock:

Inheritance graph
[legend]
Collaboration diagram for TaskTimeBlock:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Type { MANUAL_SCHEDULE, AUTO_SCHEDULE, WORK_DONE, INVALID }

Public Methods

 TaskTimeBlock (RESOURCE *r, int start, int finish, Type type)
 ~TaskTimeBlock ()
RESOURCE * resource () const
int start () const
int finish () const
Type type () const
bool overlap (int start, int finish) const

Private Attributes

RESOURCE * mResource

Member Enumeration Documentation

enum TimeBlock::Type [inherited]
 

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(), TimeBlock::type(), Project::WorkBlock(), and ProjectFile::WorkBlock().


Constructor & Destructor Documentation

TaskTimeBlock::TaskTimeBlock (  RESOURCE *    r,
int    start,
int    finish,
Type    type
) 
 

Definition at line 47 of file timeblock.cc.

TaskTimeBlock::~TaskTimeBlock (    )  [inline]
 

Definition at line 61 of file timeblock.h.


Member Function Documentation

int TimeBlock::finish (    )  const [inline, inherited]
 

Definition at line 45 of file timeblock.h.

References TimeBlock::mFinish.

Referenced by TimeBlock::overlap().

bool TimeBlock::overlap (  int    start,
int    finish
)  const [inherited]
 

Definition at line 33 of file timeblock.cc.

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

RESOURCE* TaskTimeBlock::resource (    )  const [inline]
 

Definition at line 62 of file timeblock.h.

References mResource.

int TimeBlock::start (    )  const [inline, inherited]
 

Definition at line 44 of file timeblock.h.

References TimeBlock::mStart.

Referenced by TimeBlock::overlap().

Type TimeBlock::type (    )  const [inline, inherited]
 

Definition at line 46 of file timeblock.h.

References TimeBlock::mType, and TimeBlock::Type.


Member Data Documentation

RESOURCE* TaskTimeBlock::mResource [private]
 

Definition at line 65 of file timeblock.h.

Referenced by resource().


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