Gecode::Int::Unary::ManFlexTask Class Reference
Unary (mandatory) task with flexible processing time More...
#include <unary.hh>
Protected Attributes | |
| Int::IntView | _s |
| Start time. | |
| Int::IntView | _p |
| Processing time. | |
| Int::IntView | _e |
| End time. | |
Constructors and initialization | |
|
| |
| ManFlexTask (void) | |
| Default constructor. | |
| ManFlexTask (IntVar s, IntVar p, IntVar e) | |
| Initialize with start time s, processing time p, end time e. | |
| void | init (IntVar s, IntVar p, IntVar e) |
| Initialize with start time s, processing time p, end time e. | |
| void | init (const ManFlexTask &t) |
| Initialize from task t. | |
Value access | |
|
| |
| int | est (void) const |
| Return earliest start time. | |
| int | ect (void) const |
| Return earliest completion time. | |
| int | lst (void) const |
| Return latest start time. | |
| int | lct (void) const |
| Return latest completion time. | |
| int | pmin (void) const |
| Return minimum processing time. | |
| int | pmax (void) const |
| Return maximum processing time. | |
| IntVar | st (void) const |
| Return start time. | |
| IntVar | p (void) const |
| Return processing time. | |
| IntVar | e (void) const |
| Return end time. | |
| bool | mandatory (void) const |
| Whether task is mandatory. | |
| bool | excluded (void) const |
| Whether task is excluded. | |
| bool | optional (void) const |
| Whether task can still be optional. | |
Domain tests | |
|
| |
| bool | assigned (void) const |
| Test whether task is assigned. | |
Value update | |
|
| |
| ModEvent | est (Space &home, int n) |
| Update earliest start time to n. | |
| ModEvent | ect (Space &home, int n) |
| Update earliest completion time to n. | |
| ModEvent | lst (Space &home, int n) |
| Update latest start time to n. | |
| ModEvent | lct (Space &home, int n) |
| Update latest completion time to n. | |
| ModEvent | norun (Space &home, int e, int l) |
| Update such that task cannot run from e to l. | |
| ModEvent | mandatory (Space &home) |
| Mark task as mandatory. | |
| ModEvent | excluded (Space &home) |
| Mark task as excluded. | |
Cloning | |
|
| |
| void | update (Space &home, ManFlexTask &t) |
| Update this task to be a clone of task t. | |
Dependencies | |
|
| |
| void | subscribe (Space &home, Propagator &p, PropCond pc) |
| Subscribe propagator p to task. | |
| void | cancel (Space &home, Propagator &p, PropCond pc) |
| Cancel subscription of propagator p for task. | |
| void | reschedule (Space &home, Propagator &p, PropCond pc) |
| Schedule propagator p. | |
Detailed Description
Unary (mandatory) task with flexible processing time
Definition at line 270 of file unary.hh.
Constructor & Destructor Documentation
| ManFlexTask::ManFlexTask | ( | void | ) | [inline] |
Default constructor.
Reimplemented in Gecode::Int::Cumulative::ManFlexTask.
Member Function Documentation
| void ManFlexTask::init | ( | const ManFlexTask & | t | ) | [inline] |
| int ManFlexTask::est | ( | void | ) | const [inline] |
| int ManFlexTask::ect | ( | void | ) | const [inline] |
| int ManFlexTask::lst | ( | void | ) | const [inline] |
| int ManFlexTask::lct | ( | void | ) | const [inline] |
| int ManFlexTask::pmin | ( | void | ) | const [inline] |
| int ManFlexTask::pmax | ( | void | ) | const [inline] |
| IntVar ManFlexTask::st | ( | void | ) | const [inline] |
| IntVar ManFlexTask::p | ( | void | ) | const [inline] |
| IntVar ManFlexTask::e | ( | void | ) | const [inline] |
Return end time.
Reimplemented in Gecode::Int::Cumulative::ManFlexTask.
| bool ManFlexTask::mandatory | ( | void | ) | const [inline] |
| bool ManFlexTask::excluded | ( | void | ) | const [inline] |
| bool ManFlexTask::optional | ( | void | ) | const [inline] |
| bool ManFlexTask::assigned | ( | void | ) | const [inline] |
| void ManFlexTask::update | ( | Space & | home, | |
| ManFlexTask & | t | |||
| ) | [inline] |
| void ManFlexTask::subscribe | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc | |||
| ) | [inline] |
| void ManFlexTask::cancel | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc | |||
| ) | [inline] |
| void ManFlexTask::reschedule | ( | Space & | home, | |
| Propagator & | p, | |||
| PropCond | pc | |||
| ) | [inline] |
Member Data Documentation
Int::IntView Gecode::Int::Unary::ManFlexTask::_s [protected] |
Int::IntView Gecode::Int::Unary::ManFlexTask::_p [protected] |
Int::IntView Gecode::Int::Unary::ManFlexTask::_e [protected] |
The documentation for this class was generated from the following files:
