FRAMES NO FRAMES

Class IlcScheduler

Definition file: ilsched/ilocpschedextr.h
Include file: <ilsched/iloscheduler.h>

The class IlcScheduler is the repository of all the information used during the solve process of a scheduling problem. It allows retrieval of the search object (Ilc) that has been extracted from a scheduler extractable (Ilo).

For more information, see the concept Assert and NDEBUG in the IBM ILOG Solver Reference Manual.

Constructor Summary
public IlcScheduler(IloSolver solver)
Method Summary
public IlcActivitygetActivity(const IloActivity ext) const
public IlcAltResConstraintgetAltResConstraint(const IloResourceConstraint ext) const
public IlcAltResSetgetAltResSet(const IloAltResSet ext) const
public IlcCalendargetCalendar(const IloCalendar ext) const
public IlcCapResourcegetCapResource(const IloCapResource ext) const
public IlcContinuousReservoirgetContinuousReservoir(const IloContinuousReservoir ext) const
public IlcDiscreteEnergygetDiscreteEnergy(const IloDiscreteEnergy ext) const
public IlcDiscreteResourcegetDiscreteResource(const IloDiscreteResource ext) const
public IloGranularFunctiongetExtractable(IlcGranularFunction sobj) const
public IloTransitionCostgetExtractable(IlcTransitionCostObject sobj) const
public IloTransitionTimegetExtractable(IlcTransitionTimeObject sobj) const
public IloResourcegetExtractable(IlcResource sobj) const
public IloActivitygetExtractable(IlcActivity sobj) const
public IloAltResSetgetExtractable(IlcAltResSet sobj) const
public IloResourceConstraintgetExtractable(IlcAltResConstraint sobj) const
public IloResourceConstraintgetExtractable(IlcResourceConstraint sobj) const
public IloTimeBoundConstraintgetExtractable(IlcTimeBoundConstraint sobj) const
public IloPrecedenceConstraintgetExtractable(IlcPrecedenceConstraint sobj) const
public IlcGranularFunctiongetGranularFunction(const IloGranularFunction ext) const
public IlcPrecedenceConstraintgetPrecedenceConstraint(const IloPrecedenceConstraint ext) const
public IlcReservoirgetReservoir(const IloReservoir ext) const
public IlcResourcegetResource(const IloResource ext) const
public IlcResourceConstraintgetResourceConstraint(const IloResourceConstraint ext) const
public IlcShiftObjectgetShiftObject(const IloShiftObject ext) const
public IloSolvergetSolver() const
public IlcStateResourcegetStateResource(const IloStateResource ext) const
public IlcTimeBoundConstraintgetTimeBoundConstraint(const IloTimeBoundConstraint ext) const
public IlcTransitionCostObjectgetTransitionCostObject(const IloTransitionParam ext) const
public IlcTransitionCostObjectgetTransitionCostObject(const IloTransitionCostObject ext) const
public IlcTransitionCostObjectgetTransitionCostObject(const IloTransitionCost ext) const
public IlcTransitionTimeObjectgetTransitionTimeObject(const IloTransitionTimeObject ext) const
public IlcTransitionTimeObjectgetTransitionTimeObject(const IloTransitionTime ext) const
public IlcUnaryResourcegetUnaryResource(const IloUnaryResource ext) const
public IloBoolhasAlternative(const IloResourceConstraint ext) const
Inherited Methods from IlcSchedule
close, getImpl, getName, getNumberOfActivities, getNumberOfResources, getObject, getPrecedenceGraphConstraint, getSolver, getSolverI, getTimeMax, getTimeMin, hasPrecedenceGraphConstraint, isClosed, isDurable, lock, lock, lock, makePrecedenceGraphConstraint, operator!=, operator=, operator==, setDurable, setName, setObject, unlock, unlock, unlock, whenDirectPredecessors, whenDirectSuccessors, whenPredecessors, whenSuccessors
Constructor Detail

IlcScheduler

public IlcScheduler(IloSolver solver)

This constructor creates a new instance of IlcScheduler if none currently exists on the given instance of IloSolver. If a schedule has already been created on the solver, then the new handle uses it, and points to the same implementation. If no instance of IloSchedulerEnv had been created on the IloEnv that the solver is built on, then one is created.


Method Detail

getActivity

public IlcActivity getActivity(const IloActivity ext) const

This member function returns the instance of IlcActivity that has been extracted from ext, the given IloActivity. If ext has not been extracted, an empty handle is returned.


getAltResConstraint

public IlcAltResConstraint getAltResConstraint(const IloResourceConstraint ext) const

This member function returns the instance of IlcAltResConstraint that has been extracted from ext, the given IloResourceConstraint. If ext has not been extracted, an empty handle is returned. In debug mode, an assertion will be violated if ext is not an alternative resource constraint.


getAltResSet

public IlcAltResSet getAltResSet(const IloAltResSet ext) const

This member function returns the instance of IlcAltResSet that has been extracted from ext, the given IloAltResSet. If ext has not been extracted, an empty handle is returned.


getCalendar

public IlcCalendar getCalendar(const IloCalendar ext) const

This member function returns the instance of IlcCalendar that has been extracted from ext, the given IloCalendar. If exthas not been extracted, an empty handle is returned.


getCapResource

public IlcCapResource getCapResource(const IloCapResource ext) const

This member function returns the instance of IlcCapResource that has been extracted from ext, the given IloCapResource. If ext has not been extracted, an empty handle is returned.


getContinuousReservoir

public IlcContinuousReservoir getContinuousReservoir(const IloContinuousReservoir ext) const

This member function returns the instance of IlcContinuousReservoir that has been extracted from ext, the given IloContinuousReservoir. If ext has not been extracted, an empty handle is returned.


getDiscreteEnergy

public IlcDiscreteEnergy getDiscreteEnergy(const IloDiscreteEnergy ext) const

This member function returns the instance of IlcDiscreteEnergy that has been extracted from ext, the given IloDiscreteEnergy. If ext has not been extracted, an empty handle is returned.


getDiscreteResource

public IlcDiscreteResource getDiscreteResource(const IloDiscreteResource ext) const

This member function returns the instance of IlcDiscreteResource that has been extracted from ext, the given IloDiscreteResource. If ext has not been extracted, an empty handle is returned.


getExtractable

public IloGranularFunction getExtractable(IlcGranularFunction sobj) const

This member function returns the instance of IloGranularFunction from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloTransitionCost getExtractable(IlcTransitionCostObject sobj) const

This member function returns the instance of IloTransitionCost from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloTransitionTime getExtractable(IlcTransitionTimeObject sobj) const

This member function returns the instance of IloTransitionTime from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloResource getExtractable(IlcResource sobj) const

This member function returns the instance of IloResource from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloActivity getExtractable(IlcActivity sobj) const

This member function returns the instance of IloActivity from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloAltResSet getExtractable(IlcAltResSet sobj) const

This member function returns the instance of IloAltResSet from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloResourceConstraint getExtractable(IlcAltResConstraint sobj) const

This member function returns the instance of IloResourceConstraint from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloResourceConstraint getExtractable(IlcResourceConstraint sobj) const

This member function returns the instance of IloResourceConstraint from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloTimeBoundConstraint getExtractable(IlcTimeBoundConstraint sobj) const

This member function returns the instance of IloTimeBoundConstraint from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getExtractable

public IloPrecedenceConstraint getExtractable(IlcPrecedenceConstraint sobj) const

This member function returns the instance of IloPrecedenceConstraint from which sobj has been extracted. If sobj has not been generated via an extraction, then it returns an empty handle.


getGranularFunction

public IlcGranularFunction getGranularFunction(const IloGranularFunction ext) const

This member function returns the instance of IlcGranularFunction that has been extracted from ext, the given IloGranularFunction. If ext has not been extracted, an empty handle is returned.


getPrecedenceConstraint

public IlcPrecedenceConstraint getPrecedenceConstraint(const IloPrecedenceConstraint ext) const

This member function returns the instance of IlcPrecedenceConstraint that has been extracted from ext, the given IloPrecedenceConstraint. If ext has not been extracted, an empty handle is returned.


getReservoir

public IlcReservoir getReservoir(const IloReservoir ext) const

This member function returns the instance of IlcReservoir that has been extracted from ext, the given IloReservoir. If ext has not been extracted, an empty handle is returned.


getResource

public IlcResource getResource(const IloResource ext) const

This member function returns the instance of IlcResource that has been extracted from ext, the given IloResource. If ext has not been extracted, an empty handle is returned.


getResourceConstraint

public IlcResourceConstraint getResourceConstraint(const IloResourceConstraint ext) const

This member function returns the instance of IlcResourceConstraint that has been extracted from ext, the given IloResourceConstraint. If ext has not been extracted, an empty handle is returned. In debug mode, an assertion will be violated if ext is an alternative resource constraint.


getShiftObject

public IlcShiftObject getShiftObject(const IloShiftObject ext) const

This member function returns the instance of IlcShiftObject that has been extracted from ext, the given IloShiftObject. If exthas not been extracted, an empty handle is returned.


getSolver

public IloSolver getSolver() const

This member function returns the instance of IloSolver on which was built the called object.


getStateResource

public IlcStateResource getStateResource(const IloStateResource ext) const

This member function returns the instance of IlcStateResource that has been extracted from ext, the given IloStateResource. If ext has not been extracted, an empty handle is returned.


getTimeBoundConstraint

public IlcTimeBoundConstraint getTimeBoundConstraint(const IloTimeBoundConstraint ext) const

This member function returns the instance of IlcTimeBoundConstraint that has been extracted from ext, the given IloTimeBoundConstraint. If ext has not been extracted, an empty handle is returned.


getTransitionCostObject

public IlcTransitionCostObject getTransitionCostObject(const IloTransitionParam ext) const

This member function returns the instance of IlcTransitionCostObject corresponding to the extraction of ext, the given IloTransitionParam. If ext has not been extracted, an empty handle is returned. This member function is useful to get a transition cost object that was not associated with any unary resource in the model; for example, to use it in a selector for the goals IlcSequence or IlcSequenceBackward.


getTransitionCostObject

public IlcTransitionCostObject getTransitionCostObject(const IloTransitionCostObject ext) const

This member function returns the instance of IlcTransitionCostObject that has been extracted from ext, the given IloTransitionCostObject. If ext has not been extracted, an empty handle is returned.


getTransitionCostObject

public IlcTransitionCostObject getTransitionCostObject(const IloTransitionCost ext) const

This member function returns the instance of IlcTransitionCostObject that has been extracted from ext, the given IloTransitionCost. If ext has not been extracted, an empty handle is returned.


getTransitionTimeObject

public IlcTransitionTimeObject getTransitionTimeObject(const IloTransitionTimeObject ext) const

This member function returns the instance of IlcTransitionTimeObject that has been extracted from ext, the given IlcTransitionTimeObject. If ext has not been extracted, an empty handle is returned.


getTransitionTimeObject

public IlcTransitionTimeObject getTransitionTimeObject(const IloTransitionTime ext) const

This member function returns the instance of IlcTransitionTimeObject that has been extracted from ext, the given IloTransitionTime. If ext has not been extracted, an empty handle is returned.


getUnaryResource

public IlcUnaryResource getUnaryResource(const IloUnaryResource ext) const

This member function returns the instance of IlcUnaryResource that has been extracted from ext, the given IloUnaryResource. If ext has not been extracted, an empty handle is returned.


hasAlternative

public IloBool hasAlternative(const IloResourceConstraint ext) const

This member function returns IloTrue if the extracted counterpart of the argument ext is an instance of the class IlcAltResConstraint. It returns IlcFalse if the extracted counterpart of the argument ext is an instance of the class IlcResourceConstraint.