Generated on Thu Jan 16 2025 00:00:00 for Gecode by doxygen 1.14.0
Gecode::Int::Cumulative::OptFixPTask Class Reference

Cumulative optional task with fixed processing time. More...

#include <cumulative.hh>

(Note that these are not member symbols.)

template<class Char, class Traits>
std::basic_ostream< Char, Traits > & operator<< (std::basic_ostream< Char, Traits > &os, const OptFixPTask &t)
 Print optional task in format est:[p,c]:lct:m.

Constructors and initialization

 OptFixPTask (void)
 Default constructor.
 OptFixPTask (IntVar s, int p, int c, BoolVar m)
 Initialize with start time s, processing time p, required capacity c, and mandatory flag m.
void init (IntVar s, int p, int c, BoolVar m)
 Initialize with start time s, processing time p, required capacity c, and mandatory flag m.
 operator Unary::OptFixPTask (void)
 Cast to corresponding unary task.

Additional Inherited Members

 ManToOptTask (void)
 Default constructor.
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.
bool assigned (void) const
 Test whether task is assigned.
void update (Space &home, ManToOptTask &t)
 Update this task to be a clone of task t.
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.
Protected Attributes inherited from Gecode::Int::ManToOptTask< ManFixPTask >
Int::BoolView _m
 Boolean view whether task is mandatory (= 1) or not.

Detailed Description

Cumulative optional task with fixed processing time.

Definition at line 209 of file cumulative.hh.

Constructor & Destructor Documentation

◆ OptFixPTask() [1/2]

Gecode::Int::Cumulative::OptFixPTask::OptFixPTask ( void )
inline

Default constructor.

Definition at line 167 of file task.hpp.

◆ OptFixPTask() [2/2]

Gecode::Int::Cumulative::OptFixPTask::OptFixPTask ( IntVar s,
int p,
int c,
BoolVar m )
inline

Initialize with start time s, processing time p, required capacity c, and mandatory flag m.

Definition at line 169 of file task.hpp.

Member Function Documentation

◆ init()

void Gecode::Int::Cumulative::OptFixPTask::init ( IntVar s,
int p,
int c,
BoolVar m )
inline

Initialize with start time s, processing time p, required capacity c, and mandatory flag m.

Definition at line 173 of file task.hpp.

◆ operator Unary::OptFixPTask()

Gecode::Int::Cumulative::OptFixPTask::operator Unary::OptFixPTask ( void )
inline

Cast to corresponding unary task.

Definition at line 177 of file task.hpp.

◆ operator<<()

template<class Char, class Traits>
std::basic_ostream< Char, Traits > & operator<< ( std::basic_ostream< Char, Traits > & os,
const OptFixPTask & t )
related

Print optional task in format est:[p,c]:lct:m.

Definition at line 177 of file task.hpp.


The documentation for this class was generated from the following files: