FRAMES NO FRAMES

Class IlcCalendar

Definition file: ilsched/sbecprop.h

An instance of IloCalendar allows modeling complex behavior for activity variables (start, end, duration and processing time) within a resource. This behaviour could represent, for example, holidays, resource performances, and so forth. For more information see Calendars.

A calendar object is defined by three components:

Constructor and Destructor Summary
public IlcCalendar()
public IlcCalendar(IlcCalendarI * impl)
public IlcCalendar(const IlcSchedule schedule)
Method Summary
public voidaddShiftObject(IlcShiftObject shiftObj)
public IlcIntervalListgetBreakList() const
public IlcGranularFunctiongetEfficiency() const
public IlcCalendarI *getImpl() const
public const char *getName() const
public IlcAnygetObject() const
public IlcSchedulegetSchedule() const
public IloSolvergetSolver() const
public IloSolverI *getSolverI() const
public voidoperator=(const IlcCalendar & h)
public voidremoveShiftObject(IlcShiftObject shiftObj)
public voidsetBreakList(IlcIntervalList list)
public voidsetEfficiency(IlcGranularFunction f)
public voidsetName(const char * name) const
public voidsetObject(IlcAny object) const
Inner Class
IlcCalendar::ShiftObjectIterator
Constructor and Destructor Detail

IlcCalendar

public IlcCalendar()
This constructor creates an empty handle. You must initialize it before you use it.

IlcCalendar

public IlcCalendar(IlcCalendarI * impl)
This constructor creates a handle object from a pointer to an implementation object.

IlcCalendar

public IlcCalendar(const IlcSchedule schedule)

This constructor creates a new instance of IlcCalendar. Its name is set to name


Method Detail

addShiftObject

public void addShiftObject(IlcShiftObject shiftObj)

This member function adds the shift object shiftObj to the invoking calendar.


getBreakList

public IlcIntervalList getBreakList() const

This member function returns the list of breaks attached to the invoking calendar, if such a list exists.


getEfficiency

public IlcGranularFunction getEfficiency() const

This member function returns the efficiency function attached to the invoking calendar, if such a function exists.


getImpl

public IlcCalendarI * getImpl() const
This constructor creates an object by copying another one. This constructor creates an object by copying another one. This member function returns a pointer to the implementation object of the invoking handle.

getName

public const char * getName() const
This member function returns the name of the invoking object.

getObject

public IlcAny getObject() const
This member function returns a pointer to the external object associated with the invoking object, if there is such an association. It returns 0 (zero) otherwise.

getSchedule

public IlcSchedule getSchedule() const

This member function returns the schedule, an instance of IlcSchedule, to which the invoking calendar belongs.


getSolver

public IloSolver getSolver() const

This member function returns an instance of IloSolver associated with the invoking object.


getSolverI

public IloSolverI * getSolverI() const

This member function returns a pointer to the implementation object of the solver where the invoking object was extracted.


operator=

public void operator=(const IlcCalendar & h)
This operator assigns an address to the handle pointer of the invoking object. That address is the location of the implementation object of the provided argument.

removeShiftObject

public void removeShiftObject(IlcShiftObject shiftObj)

This member function removes the shift object shiftObj from the invoking calendar.


setBreakList

public void setBreakList(IlcIntervalList list)

This member function sets list as the new break list of the calendar.


setEfficiency

public void setEfficiency(IlcGranularFunction f)

This member function sets f as the granular step-wise function that models the efficiency of the calendar within the schedule.


setName

public void setName(const char * name) const
This member function sets the name of the invoking object to a copy of name. This assignment is a reversible action.

setObject

public void setObject(IlcAny object) const
This member function establishes a link between the invoking object and an external object of which the invoking object might be a data member.