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

VACATION Class Reference

A special TASK: VACATION. More...

#include <vacation.h>

Inheritance diagram for VACATION:

Inheritance graph
[legend]
Collaboration diagram for VACATION:

Collaboration graph
[legend]
List of all members.

Public Types

typedef vector< TASK * > PTRLIST

Public Methods

 VACATION (int duration)
virtual ~VACATION ()
virtual bool isVacation () const
const char * desc () const
const char * overrun () const
void setOverrun (char *overrun)
void AddNote (const string &note)
NOTE_ITERATOR begin_notes ()
NOTE_ITERATOR end_notes ()
void setDaysDone (int days)
int nDays ()
void Blockify ()
int block ()
void setDesc (char *desc)
void setPercentComplete (double c)
double percent_complete () const
void setStart (int day)
int start () const
void setFinish (int day)
int finish ()
void setDuration (int d)
int duration ()
void setAssigned (RESOURCE *res)
RESOURCEassigned () const
int fullduration () const
void setFullduration (int fd)
int origfullduration () const
void setOrigfullduration ()
int bstart () const
void setBstart (int day)
int bfinish () const
void setBfinish (int day)
int astart () const
void setAstart (int day)
int afinish () const
void setAfinish (int day)
void setLstart (int day)
int lstart ()
void setLfinish (int day)
int lfinish ()
int slack ()
void setSlack (int s)
int children ()
int parents ()
void addDepends (TASK *depends)
PTRLIST::const_iterator begin_depends ()
PTRLIST::const_iterator end_depends ()
void addFollows (TASK *follows)
PTRLIST::const_iterator begin_follows ()
PTRLIST::const_iterator end_follows ()
void addTimeBlock (RESOURCE *r, int start, int finish, TimeBlock::Type type)
TaskTimeBlockIterator begin_when ()
TaskTimeBlockIterator end_when ()
void addReverseTimeBlock (RESOURCE *r, int start, int finish, TimeBlock::Type type)
TaskTimeBlockIterator begin_rwhen ()
TaskTimeBlockIterator end_rwhen ()
void copyWhenToReverseWhen ()
bool DayBooked (int dayNo)
bool overlap (int start, int finish)
bool isActiveDuring (int start, int finish)
void addCandidate (RESOURCE *res)
RESOURCE::PTRLIST::const_iterator begin_cando ()
RESOURCE::PTRLIST::const_iterator end_cando ()
int numCandidates ()
void addItem (ITEM *item)
double timeCost ()
double itemCost ()
int numItems ()
ITEM::PTRLIST::const_iterator begin_items ()
ITEM::PTRLIST::const_iterator end_items ()
const char * id () const
void setId (const char *)
 Usefull to compute a complex id (after creation). More...

const char * name () const

Public Attributes

int scheduled
 if 1, has been scheduled. More...

int remaining
 used during schedule. More...

int rscheduled
 if 1, has been scheduled on reverse run. More...

int rremaining
 used during reverse schedule. More...

int x1
int y1
int x2
int y2
 gannt chart drawing coordinates. More...

int nx
int ny
 network diagram drawing coordinates. More...


Static Private Attributes

int taskno = 0

Detailed Description

A special TASK: VACATION.

Definition at line 29 of file vacation.h.


Member Typedef Documentation

typedef vector<TASK *> TASK::PTRLIST [inherited]
 

Definition at line 41 of file task.h.


Constructor & Destructor Documentation

VACATION::VACATION int    duration
 

Definition at line 27 of file vacation.cc.

References NAMED_ID::setId(), and taskno.

virtual VACATION::~VACATION   [inline, virtual]
 

Definition at line 34 of file vacation.h.


Member Function Documentation

void TASK::addCandidate RESOURCE   res [inherited]
 

Definition at line 165 of file task.cc.

References TASK::mCando.

Referenced by Project::AddCandidate().

void TASK::addDepends TASK   depends [inherited]
 

Definition at line 101 of file task.cc.

References TASK::mChildren, and TASK::mDepends.

Referenced by Project::AddDependencies().

void TASK::addFollows TASK   follows [inherited]
 

Definition at line 108 of file task.cc.

References TASK::mFollows, and TASK::mParents.

Referenced by Project::AddDependencies().

void TASK::addItem ITEM   item [inline, inherited]
 

Definition at line 122 of file task.h.

References TASK::mItems.

Referenced by Project::AddTaskItem().

void TASK::AddNote const string &    note [inherited]
 

Definition at line 95 of file task.cc.

References TASK::mNotes.

Referenced by Project::TaskNote().

void TASK::addReverseTimeBlock RESOURCE   r,
int    start,
int    finish,
TimeBlock::Type    type
[inherited]
 

Definition at line 121 of file task.cc.

References TASK::finish(), TASK::mRwhen, TASK::start(), and TimeBlock::Type.

Referenced by Project::ReverseBookResource().

void TASK::addTimeBlock RESOURCE   r,
int    start,
int    finish,
TimeBlock::Type    type
[inherited]
 

Definition at line 115 of file task.cc.

References TASK::finish(), TASK::mWhen, TASK::start(), and TimeBlock::Type.

Referenced by Project::BookResource().

int TASK::afinish   const [inline, inherited]
 

Definition at line 85 of file task.h.

References TASK::mAfinish.

Referenced by Reporter::HTMLReport(), Reporter::TexReport(), Reporter::TextReport(), and Reporter::XMLReport().

RESOURCE* TASK::assigned   const [inline, inherited]
 

Definition at line 67 of file task.h.

References TASK::mAssigned.

Referenced by Project::AssignResource(), Project::AssignTask(), Project::BookResource(), Project::FinishTask(), Reporter::HTMLReport(), CompareTaskResources::operator()(), Reporter::PrintResourcePeriod(), Project::printTaskList(), Project::ReverseAssignResource(), Project::ReverseAssignTask(), Project::ReverseBookResource(), Project::StartTask(), Reporter::TaskGraph(), Reporter::TexReport(), Reporter::TextReport(), Project::WorkBlock(), Reporter::write_chart(), and Reporter::XMLReport().

int TASK::astart   const [inline, inherited]
 

Definition at line 83 of file task.h.

References TASK::mAstart.

Referenced by Reporter::HTMLReport(), Reporter::TexReport(), Reporter::TextReport(), and Reporter::XMLReport().

RESOURCE::PTRLIST::const_iterator TASK::begin_cando   [inline, inherited]
 

Definition at line 118 of file task.h.

References TASK::mCando.

Referenced by Project::AssignTask(), Project::FindEarliestResource(), and Project::StartTask().

PTRLIST::const_iterator TASK::begin_depends   [inline, inherited]
 

Definition at line 97 of file task.h.

References TASK::mDepends.

Referenced by assignX(), canAssignX(), EarliestByDependency(), EligibleTask(), Reporter::HTMLReport(), Reporter::TexReport(), Reporter::TextReport(), Reporter::write_chart(), and Reporter::XMLReport().

PTRLIST::const_iterator TASK::begin_follows   [inline, inherited]
 

Definition at line 100 of file task.h.

References TASK::mFollows.

Referenced by Project::ReverseAssignTask(), ReverseEligibleTask(), and Reporter::write_chart().

ITEM::PTRLIST::const_iterator TASK::begin_items   [inline, inherited]
 

Definition at line 127 of file task.h.

References TASK::mItems.

Referenced by Reporter::HTMLCostReport(), Reporter::TeXCostReport(), and Reporter::XMLReport().

NOTE_ITERATOR TASK::begin_notes   [inline, inherited]
 

Definition at line 50 of file task.h.

References TASK::mNotes, and NOTE_ITERATOR.

Referenced by Reporter::HTMLReport(), Reporter::TexReport(), and Reporter::XMLReport().

TaskTimeBlockIterator TASK::begin_rwhen   [inline, inherited]
 

Definition at line 109 of file task.h.

References TASK::mRwhen, and TaskTimeBlockIterator.

TaskTimeBlockIterator TASK::begin_when   [inline, inherited]
 

Definition at line 106 of file task.h.

References TASK::mWhen, and TaskTimeBlockIterator.

Referenced by Project::AssignTask(), EarliestByDependency(), Project::PredictOverruns(), Project::ReverseAssignTask(), Reporter::TaskGraph(), and UserTaskWorkedDays().

int TASK::bfinish   const [inline, inherited]
 

Definition at line 81 of file task.h.

References TASK::mBfinish.

Referenced by Reporter::HTMLReport(), Reporter::TexReport(), Reporter::TextReport(), and Reporter::XMLReport().

int TASK::block   [inline, inherited]
 

Definition at line 56 of file task.h.

References TASK::mBlock.

Referenced by Project::AssignResource(), Project::FindEarliestResource(), and Project::ReverseAssignResource().

void TASK::Blockify   [inherited]
 

Definition at line 76 of file task.cc.

References TASK::mBlock.

Referenced by Project::Blockify().

int TASK::bstart   const [inline, inherited]
 

Definition at line 79 of file task.h.

References TASK::mBstart.

Referenced by Reporter::HTMLReport(), Reporter::TexReport(), Reporter::TextReport(), and Reporter::XMLReport().

int TASK::children   [inline, inherited]
 

Definition at line 94 of file task.h.

References TASK::mChildren.

Referenced by Project::ScheduleTasks().

void TASK::copyWhenToReverseWhen   [inherited]
 

Definition at line 127 of file task.cc.

References TASK::mRwhen, and TASK::mWhen.

bool TASK::DayBooked int    dayNo [inherited]
 

Definition at line 133 of file task.cc.

References TASK::mWhen, and TaskTimeBlockIterator.

Referenced by Reporter::TaskGraph().

const char* TASK::desc   const [inline, inherited]
 

Definition at line 46 of file task.h.

References TASK::mDesc.

Referenced by Reporter::HTMLReport(), TASK::setDesc(), and Reporter::TexReport().

int TASK::duration   [inline, inherited]
 

Definition at line 65 of file task.h.

References TASK::mDuration.

Referenced by Project::AddTask(), Project::FinishTask(), Project::StartTask(), TASK::TASK(), UserTaskWorkedDays(), and Project::WorkBlock().

RESOURCE::PTRLIST::const_iterator TASK::end_cando   [inline, inherited]
 

Definition at line 119 of file task.h.

References TASK::mCando.

Referenced by Project::FindEarliestResource().

PTRLIST::const_iterator TASK::end_depends   [inline, inherited]
 

Definition at line 98 of file task.h.

References TASK::mDepends.

Referenced by assignX(), canAssignX(), EarliestByDependency(), EligibleTask(), Reporter::HTMLReport(), Reporter::TexReport(), Reporter::TextReport(), Reporter::write_chart(), and Reporter::XMLReport().

PTRLIST::const_iterator TASK::end_follows   [inline, inherited]
 

Definition at line 101 of file task.h.

References TASK::mFollows.

Referenced by Project::ReverseAssignTask(), ReverseEligibleTask(), and Reporter::write_chart().

ITEM::PTRLIST::const_iterator TASK::end_items   [inline, inherited]
 

Definition at line 128 of file task.h.

References TASK::mItems.

Referenced by Reporter::HTMLCostReport(), Reporter::TeXCostReport(), and Reporter::XMLReport().

NOTE_ITERATOR TASK::end_notes   [inline, inherited]
 

Definition at line 51 of file task.h.

References TASK::mNotes, and NOTE_ITERATOR.

Referenced by Reporter::HTMLReport(), Reporter::TexReport(), and Reporter::XMLReport().

TaskTimeBlockIterator TASK::end_rwhen   [inline, inherited]
 

Definition at line 110 of file task.h.

References TASK::mRwhen, and TaskTimeBlockIterator.

TaskTimeBlockIterator TASK::end_when   [inline, inherited]
 

Definition at line 107 of file task.h.

References TASK::mWhen, and TaskTimeBlockIterator.

Referenced by Project::AssignTask(), EarliestByDependency(), Project::PredictOverruns(), Project::ReverseAssignTask(), Reporter::TaskGraph(), and UserTaskWorkedDays().

int TASK::finish   [inline, inherited]
 

Definition at line 63 of file task.h.

References TASK::mFinish.

Referenced by TASK::addReverseTimeBlock(), TASK::addTimeBlock(), Project::FinishTask(), Reporter::HardSchedule(), Reporter::HTMLReport(), TASK::isActiveDuring(), TASK::overlap(), Project::ReverseScheduleTasks(), Project::ScheduleMilestones(), Project::StartTask(), Reporter::TaskGraph(), Reporter::TexReport(), Reporter::TextReport(), Reporter::write_chart(), and Reporter::XMLReport().

int TASK::fullduration   const [inline, inherited]
 

Definition at line 73 of file task.h.

References TASK::mFullduration.

Referenced by Project::AssignResource(), Project::PredictOverruns(), Project::ReverseAssignResource(), Reporter::SlippageReport(), Reporter::TaskGraph(), and Reporter::write_chart().

const char* NAMED_ID::id   const [inline, inherited]
 

Definition at line 29 of file namedid.h.

References NAMED_ID::mId.

Referenced by Project::AddTask(), Project::AssignResource(), Project::AssignTask(), Project::BookResource(), TASK::Error(), RESOURCE::Error(), Reporter::findCellInColumn(), Project::FirstFreeTime(), Reporter::HardSchedule(), Reporter::HTMLCostReport(), Reporter::HTMLReport(), NAMED_ID::NAMED_ID(), CompareTaskResources::operator()(), Project::PredictOverruns(), Reporter::PrintResourcePeriod(), Project::printTaskList(), Project::ResourceIsUsedForTask(), Project::ReverseAssignResource(), Project::ReverseAssignTask(), Project::ReverseBookResource(), NAMED_ID::setId(), Reporter::SlippageReport(), Reporter::TaskGraph(), Reporter::TeXCostReport(), Reporter::TexReport(), Reporter::TextReport(), Reporter::UtilGraph(), Project::Vacation(), Project::WorkBlock(), Reporter::write_chart(), Reporter::write_milestones(), and Reporter::XMLReport().

bool TASK::isActiveDuring int    start,
int    finish
[inherited]
 

Definition at line 151 of file task.cc.

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

virtual bool VACATION::isVacation   const [inline, virtual]
 

Reimplemented from TASK.

Definition at line 36 of file vacation.h.

double TASK::itemCost   [inherited]
 

Definition at line 176 of file task.cc.

References TASK::mItems.

Referenced by Reporter::HTMLCostReport(), Reporter::TeXCostReport(), and Reporter::XMLReport().

int TASK::lfinish   [inline, inherited]
 

Definition at line 90 of file task.h.

References TASK::mLfinish.

Referenced by Project::ReverseAssignResource(), Project::ReverseAssignTask(), and Reporter::write_chart().

int TASK::lstart   [inline, inherited]
 

Definition at line 88 of file task.h.

References TASK::mLstart.

Referenced by Reporter::write_chart().

const char* NAMED_ID::name   const [inline, inherited]
 

Definition at line 31 of file namedid.h.

References NAMED_ID::mName.

Referenced by Reporter::HTMLCostReport(), Reporter::HTMLReport(), NAMED_ID::NAMED_ID(), Reporter::PrintPeriod(), Reporter::PrintResourcePeriod(), Reporter::SlippageReport(), Reporter::TaskGraph(), Reporter::TeXCostReport(), Reporter::TexReport(), Reporter::TextReport(), Reporter::write_chart(), Reporter::write_milestones(), and Reporter::XMLReport().

int TASK::nDays   [inline, inherited]
 

Definition at line 54 of file task.h.

References TASK::mnDays.

Referenced by Project::PredictOverruns(), Reporter::SlippageReport(), and Project::WorkBlock().

int TASK::numCandidates   [inline, inherited]
 

Definition at line 120 of file task.h.

References TASK::mCando.

Referenced by Project::AssignTask(), and Project::StartTask().

int TASK::numItems   [inline, inherited]
 

Definition at line 126 of file task.h.

References TASK::mItems.

Referenced by Reporter::HTMLCostReport(), and Reporter::TeXCostReport().

int TASK::origfullduration   const [inline, inherited]
 

Definition at line 75 of file task.h.

References TASK::mOrigfullduration.

Referenced by Reporter::SlippageReport().

bool TASK::overlap int    start,
int    finish
[inherited]
 

Definition at line 142 of file task.cc.

References TASK::finish(), TASK::mWhen, TASK::start(), and TaskTimeBlockIterator.

Referenced by Reporter::TaskGraph().

const char* TASK::overrun   const [inline, inherited]
 

Definition at line 47 of file task.h.

References TASK::mOverrun.

Referenced by Reporter::HTMLReport(), TASK::setOverrun(), and Reporter::TexReport().

int TASK::parents   [inline, inherited]
 

Definition at line 95 of file task.h.

References TASK::mParents.

double TASK::percent_complete   const [inline, inherited]
 

Definition at line 59 of file task.h.

References TASK::mPercentComplete.

Referenced by Project::PredictOverruns(), Reporter::SlippageReport(), Reporter::TaskGraph(), UserTaskWorkedDays(), and Reporter::XMLReport().

void TASK::setAfinish int    day [inline, inherited]
 

Definition at line 86 of file task.h.

References TASK::mAfinish.

Referenced by Project::FinishTask().

void TASK::setAssigned RESOURCE   res [inline, inherited]
 

Definition at line 66 of file task.h.

References TASK::mAssigned.

Referenced by Project::AssignResource(), Project::AssignTask(), Project::StartTask(), and Project::WorkBlock().

void TASK::setAstart int    day [inline, inherited]
 

Definition at line 84 of file task.h.

References TASK::mAstart.

Referenced by Project::StartTask().

void TASK::setBfinish int    day [inline, inherited]
 

Definition at line 82 of file task.h.

References TASK::mBfinish.

Referenced by Project::FinishTask().

void TASK::setBstart int    day [inline, inherited]
 

Definition at line 80 of file task.h.

References TASK::mBstart.

Referenced by Project::StartTask().

void TASK::setDaysDone int    days [inherited]
 

Definition at line 70 of file task.cc.

References TASK::mnDays.

Referenced by Project::DaysDone(), and Project::PredictOverruns().

void TASK::setDesc char *    desc [inherited]
 

Definition at line 82 of file task.cc.

References TASK::desc(), and TASK::mDesc.

Referenced by Project::AddDescription().

void TASK::setDuration int    d [inline, inherited]
 

Definition at line 64 of file task.h.

References TASK::mDuration.

Referenced by Project::FinishTask(), and Project::StartTask().

void TASK::setFinish int    day [inline, inherited]
 

Definition at line 62 of file task.h.

References TASK::mFinish.

Referenced by Project::AssignResource(), Project::FinishTask(), and Project::WorkBlock().

void TASK::setFullduration int    fd [inline, inherited]
 

Definition at line 74 of file task.h.

References TASK::mFullduration.

Referenced by Project::PredictOverruns(), and Project::WorkBlock().

void NAMED_ID::setId const char *    [inherited]
 

Usefull to compute a complex id (after creation).

Definition at line 33 of file namedid.cc.

References NAMED_ID::id(), and NAMED_ID::mId.

Referenced by NAMED_ID::NAMED_ID(), and VACATION().

void TASK::setLfinish int    day [inline, inherited]
 

Definition at line 89 of file task.h.

References TASK::mLfinish.

Referenced by Project::ReverseAssignResource().

void TASK::setLstart int    day [inline, inherited]
 

Definition at line 87 of file task.h.

References TASK::mLstart.

Referenced by Project::ReverseAssignResource(), and Project::StartTask().

void TASK::setOrigfullduration   [inline, inherited]
 

Definition at line 78 of file task.h.

References TASK::mFullduration, and TASK::mOrigfullduration.

Referenced by Project::PredictOverruns().

void TASK::setOverrun char *    overrun [inline, inherited]
 

Definition at line 48 of file task.h.

References TASK::mOverrun, and TASK::overrun().

Referenced by Project::PredictOverruns().

void TASK::setPercentComplete double    c [inherited]
 

Definition at line 87 of file task.cc.

References TASK::Error(), and TASK::mPercentComplete.

Referenced by Project::SetCompletion().

void TASK::setSlack int    s [inline, inherited]
 

Definition at line 92 of file task.h.

References TASK::mSlack.

void TASK::setStart int    day [inline, inherited]
 

Definition at line 60 of file task.h.

References TASK::mStart.

Referenced by Project::AssignResource(), Reporter::constructStartFinish(), Project::FinishTask(), Project::StartTask(), and Project::WorkBlock().

int TASK::slack   [inline, inherited]
 

Definition at line 91 of file task.h.

References TASK::mSlack.

Referenced by Reporter::write_chart().

int TASK::start   const [inline, inherited]
 

Definition at line 61 of file task.h.

References TASK::mStart.

Referenced by TASK::addReverseTimeBlock(), TASK::addTimeBlock(), Project::AssignResource(), Project::AssignTask(), EarliestByDependency(), Project::FinishTask(), Reporter::HardSchedule(), Reporter::HTMLReport(), TASK::isActiveDuring(), CompareTaskStarts::operator()(), CompareTaskResources::operator()(), TASK::overlap(), Project::printTaskList(), Project::StartTask(), Reporter::TaskGraph(), Reporter::TexReport(), Reporter::TextReport(), Project::WorkBlock(), Reporter::write_chart(), and Reporter::XMLReport().

double TASK::timeCost   [inherited]
 

Definition at line 170 of file task.cc.

References TASK::mAssigned, TASK::mDuration, and RESOURCE::rate().

Referenced by Reporter::HTMLCostReport(), Reporter::TeXCostReport(), and Reporter::XMLReport().


Member Data Documentation

int TASK::nx [inherited]
 

Definition at line 142 of file task.h.

Referenced by Project::AddNetworkX(), assignX(), canAssignX(), Reporter::constructStartFinish(), TASK::TASK(), Reporter::write_chart(), and Reporter::write_milestones().

int TASK::ny [inherited]
 

network diagram drawing coordinates.

Definition at line 142 of file task.h.

Referenced by Project::AddNetworkY(), Reporter::assignY(), Reporter::constructStartFinish(), nextAvailableY(), TASK::TASK(), Reporter::write_chart(), and Reporter::write_milestones().

int TASK::remaining [inherited]
 

used during schedule.

Definition at line 134 of file task.h.

Referenced by Project::AssignResource(), Project::FindEarliestResource(), Project::PredictOverruns(), TASK::TASK(), and Project::WorkBlock().

int TASK::rremaining [inherited]
 

used during reverse schedule.

Definition at line 136 of file task.h.

Referenced by Project::ReverseAssignResource(), and TASK::TASK().

int TASK::rscheduled [inherited]
 

if 1, has been scheduled on reverse run.

Definition at line 135 of file task.h.

Referenced by Project::ReverseAssignResource(), Project::ReverseAssignTask(), ReverseEligibleTask(), and TASK::TASK().

int TASK::scheduled [inherited]
 

if 1, has been scheduled.

Definition at line 133 of file task.h.

Referenced by Project::AssignResource(), Project::AssignTask(), EligibleTask(), Project::PredictOverruns(), TASK::TASK(), and Project::WorkBlock().

int VACATION::taskno = 0 [static, private]
 

Definition at line 25 of file vacation.cc.

Referenced by VACATION().

int TASK::x1 [inherited]
 

Definition at line 141 of file task.h.

Referenced by TASK::TASK(), and Reporter::TaskGraph().

int TASK::x2 [inherited]
 

Definition at line 141 of file task.h.

Referenced by TASK::TASK(), and Reporter::TaskGraph().

int TASK::y1 [inherited]
 

Definition at line 141 of file task.h.

Referenced by TASK::TASK(), and Reporter::TaskGraph().

int TASK::y2 [inherited]
 

gannt chart drawing coordinates.

Definition at line 141 of file task.h.

Referenced by TASK::TASK(), and Reporter::TaskGraph().


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