Overview | Group | Tree | Graph | Index | Concepts |
The class IloShiftListObject
inherits from the class
IloShiftObject
. It allows expressing shifts as a list
of forbidden time intervals. Depending on the type of the shift list object,
the time restriction can concern the whole activity execution or only
its start or its end. Three different types are defined:
OnStart
: Shifts only concern the start of the activity.
For instance, if the shift is the interval [a,b), then the
start of the activity must be strictly smaller than a or greater
than b.OnEnd
: Shifts only concern the end of the activity.
For instance, if the shift is the interval [a,b), then the
end of the activity must be strictly smaller than a or greater
than b.OnOverlap
: Shifts concern the whole activity.
That is the activity cannot overlap shifts. For instance, if the shift
is the interval [a,b), then the end of the activity must be
strictly smaller than a or the start must be greater than b.In addition, each time interval (see
IloIntervalList
in the extensions section of the IBM ILOG Concert
Technology Reference Manual),
can be associated with
an integer type. In such cases, activity parameters (see
IloActivityShiftParam
)
can specify which types must be ignored.
For more information, see Calendars, and Shift Object Semantic.
Constructor Summary | |
---|---|
public | IloShiftListObject() |
public | IloShiftListObject(IloShiftListObjectI * impl) |
public | IloShiftListObject(const IloEnv env, const char * name=0) |
public | IloShiftListObject(const IloEnv env, IloIntervalList shiftList, IloShiftListObject::Type type, const char * name=0) |
Method Summary | |
---|---|
public IloShiftListObjectI * | getImpl() const |
public IloIntervalList | getReadOnlyShiftListParam() const |
public IloShiftListObject::Type | getType() const |
public void | setShiftListParam(IloIntervalList shiftList) |
public void | setType(IloShiftListObject::Type type) |
Inherited Methods from IloShiftObject |
---|
getImpl |
Inner Enumeration |
---|
IloShiftListObject::Type |
Constructor Detail |
---|
This constructor creates a new instance of IloShiftListObject
.
By default, the shift list is empty.
Its name is set to name
This constructor creates a new instance of IloShiftListObject
.
The shift list is set to shiftList
and the type is set to type
.
Its name is set to name
Method Detail |
---|
This member function returns the time interval list that represents the set of forbidden dates of the invoking shift object.
This member function returns the type that defines
the behavior of the shifts during the search (see
IloShiftListObject::Type
).
This member function sets shiftList
as the new shift
list of the invoking shift object.
This member function sets type
as the new type
of the invoking shift object.
Inner Enumeration Detail |
---|
The Type
of IloShiftListObject
allows you to define the behavior during the search
regarding the variables of concerned activities. The possible types are:
OnStart
: Shifts only affect the start of the activity.
For instance, if the shift is the interval [a,b), then the
start of the activity must be strictly smaller than a or greater
than b.OnEnd
: Shifts only affect the end of the activity.
For instance, if the shift is the interval [a,b), then the
end of the activity must be strictly smaller than a or greater
than b.OnOverlap
: Shifts affect the whole activity.
That is, the activity cannot overlap shifts. For instance, if the shift
is the interval [a,b), then the end of the activity must be
strictly smaller than a, or the start must be greater than b.Fields |
---|
OnStart = 0 | |
OnEnd = 1 | |
OnOverlap = 2 |