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

Cumulative optional task with flexible 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 OptFlexTask &t)
 Print optional task in format est:lst:pmin:pmax:c:ect:lct:m.

Constructors and initialization

 OptFlexTask (void)
 Default constructor.
 OptFlexTask (IntVar s, IntVar p, IntVar e, int c, BoolVar m)
 Initialize with start time s, processing time p, end time e, and mandatory flag m.
void init (IntVar s, IntVar p, IntVar e, int c, BoolVar m)
 Initialize with start time s, processing time p, end time e, and mandatory flag m.
 operator Unary::OptFlexTask (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< ManFlexTask >
Int::BoolView _m
 Boolean view whether task is mandatory (= 1) or not.

Detailed Description

Cumulative optional task with flexible processing time

Definition at line 261 of file cumulative.hh.

Constructor & Destructor Documentation

◆ OptFlexTask() [1/2]

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

Default constructor.

Definition at line 225 of file task.hpp.

◆ OptFlexTask() [2/2]

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

Initialize with start time s, processing time p, end time e, and mandatory flag m.

Definition at line 227 of file task.hpp.

Member Function Documentation

◆ init()

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

Initialize with start time s, processing time p, end time e, and mandatory flag m.

Definition at line 231 of file task.hpp.

◆ operator Unary::OptFlexTask()

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

Cast to corresponding unary task.

Definition at line 235 of file task.hpp.

◆ operator<<()

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

Print optional task in format est:lst:pmin:pmax:c:ect:lct:m.

Definition at line 235 of file task.hpp.


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