Cumulative (mandatory) task with fixed processing time.
More...
#include <cumulative.hh>
List of all members.
Protected Attributes |
int | _c |
| Required capacity.
|
Related Functions |
(Note that these are not member functions.)
|
template<class Char , class Traits > |
std::basic_ostream< Char,
Traits > & | operator<< (std::basic_ostream< Char, Traits > &os, const ManFixPTask &t) |
| Print task in format est:[p,c]:lct.
|
Constructors and initialization |
| ManFixPTask (void) |
| Default constructor.
|
| ManFixPTask (IntVar s, int p, int c) |
| Initialize task with start time s, processing time p, and required resource c.
|
void | init (IntVar s, int p, int c) |
| Initialize task with start time s, processing time p, and required resource c.
|
void | init (const ManFixPTask &t) |
| Initialize from task t.
|
Value access |
int | c (void) const |
| Return required capacity.
|
double | e (void) const |
| Return required energy.
|
Cloning |
void | update (Space &home, bool share, ManFixPTask &t) |
| Update this task to be a clone of task t.
|
Detailed Description
Cumulative (mandatory) task with fixed processing time.
Constructor & Destructor Documentation
Gecode::Int::Cumulative::ManFixPTask::ManFixPTask |
( |
void |
| ) |
[inline] |
Gecode::Int::Cumulative::ManFixPTask::ManFixPTask |
( |
IntVar |
s, |
|
|
int |
p, |
|
|
int |
c |
|
) |
| [inline] |
Initialize task with start time s, processing time p, and required resource c.
Definition at line 49 of file task.hpp.
Member Function Documentation
void Gecode::Int::Cumulative::ManFixPTask::init |
( |
IntVar |
s, |
|
|
int |
p, |
|
|
int |
c |
|
) |
| [inline] |
Initialize task with start time s, processing time p, and required resource c.
Definition at line 52 of file task.hpp.
void Gecode::Int::Cumulative::ManFixPTask::init |
( |
const ManFixPTask & |
t | ) |
[inline] |
Initialize from task t.
Definition at line 56 of file task.hpp.
int Gecode::Int::Cumulative::ManFixPTask::c |
( |
void |
| ) |
const [inline] |
Return required capacity.
Definition at line 61 of file task.hpp.
double Gecode::Int::Cumulative::ManFixPTask::e |
( |
void |
| ) |
const [inline] |
Return required energy.
Definition at line 65 of file task.hpp.
void Gecode::Int::Cumulative::ManFixPTask::update |
( |
Space & |
home, |
|
|
bool |
share, |
|
|
ManFixPTask & |
t |
|
) |
| [inline] |
Update this task to be a clone of task t.
Definition at line 70 of file task.hpp.
Friends And Related Function Documentation
template<class Char , class Traits >
std::basic_ostream< Char, Traits > & operator<< |
( |
std::basic_ostream< Char, Traits > & |
os, |
|
|
const ManFixPTask & |
t |
|
) |
| [related] |
Print task in format est:[p,c]:lct.
Definition at line 76 of file task.hpp.
Member Data Documentation
The documentation for this class was generated from the following files: