FRAMES NO FRAMES

Class IloShiftListObject

Definition file: ilsched/ilocalendar.h

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:

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 IloIntervalListgetReadOnlyShiftListParam() const
public IloShiftListObject::TypegetType() const
public voidsetShiftListParam(IloIntervalList shiftList)
public voidsetType(IloShiftListObject::Type type)
Inherited Methods from IloShiftObject
getImpl
Inner Enumeration
IloShiftListObject::Type
Constructor Detail

IloShiftListObject

public IloShiftListObject()
This constructor creates an instance that is empty, that is, one whose handle pointer is null. You must assign it a value before you access it. Any attempt to access it before assignment leads to undefined behaviour.

IloShiftListObject

public IloShiftListObject(IloShiftListObjectI * impl)
This constructor creates an instance of the handle class from the pointer to an instance of the implementation class.

IloShiftListObject

public IloShiftListObject(const IloEnv env, const char * name=0)

This constructor creates a new instance of IloShiftListObject. By default, the shift list is empty. Its name is set to name


IloShiftListObject

public IloShiftListObject(const IloEnv env, IloIntervalList shiftList, IloShiftListObject::Type type, const char * name=0)

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

getImpl

public IloShiftListObjectI * getImpl() const
This member function returns a pointer to the implementation object of the invoking handle.

getReadOnlyShiftListParam

public IloIntervalList getReadOnlyShiftListParam() const

This member function returns the time interval list that represents the set of forbidden dates of the invoking shift object.


getType

public IloShiftListObject::Type getType() const

This member function returns the type that defines the behavior of the shifts during the search (see IloShiftListObject::Type).


setShiftListParam

public void setShiftListParam(IloIntervalList shiftList)

This member function sets shiftList as the new shift list of the invoking shift object.


setType

public void setType(IloShiftListObject::Type type)

This member function sets type as the new type of the invoking shift object.


Inner Enumeration Detail

Enumeration Type

Definition file: ilsched/ilocalendar.h

The Type of IloShiftListObject allows you to define the behavior during the search regarding the variables of concerned activities. The possible types are:

Fields

OnStart = 0 
OnEnd = 1 
OnOverlap = 2