Overview | Group | Tree | Graph | Index | Concepts |
The class IloTransitionTime
allows definition of transition
time for a resource.
More precisely, an instance of IloTransitionTime
allows
association of an instance of either an IloTransitionParam
or a user-defined IloTransitionTimeObject
with a resource.
If the IloTransitionTime
is defined with an instance of
IloTransitionParam
, the transition times on
that resource will be computed by using the IloTransitionParam
and the transition types of the
activities.
If the IloTransitionTime
is defined with an instance of
IloTransitionTimeObject
, the transition
times on that resource will be computed by using the object extracted from
the IloTransitionTimeObject
and the virtual
transition times it defines.
Note that at most one transition time can be active on a resource. Any attempt to create a transition time on a resource that has already been associated with a transition time will override the previous transition time.
This class inherits from the IBM® ILOG® Concert Technology class
IloExtractable
. That class is documented in the IBM ILOG
Concert Technology Reference Manual.
For more information, see Calendars and Transition Times.
See Also:
IloResource, IloResourceParam, IloResourceConstraint, IloTransitionParam, IlcTransitionTimeObject
Constructor Summary | |
---|---|
public | IloTransitionTime() |
public | IloTransitionTime(IloTransitionTimeI * impl) |
public | IloTransitionTime(const IloResource resource, const IloTransitionParam param, const char * name=0) |
public | IloTransitionTime(const IloResource resource, const IloTransitionTimeObject tobj, const char * name=0) |
Method Summary | |
---|---|
public IloTransitionTimeI * | getImpl() const |
public IloNum | getTime(const IloResourceConstraint rct1x, const IloResourceConstraint rct2x) const |
public IloTransitionTimeObject | getTransitionTimeObject() const |
public IloBool | isSuspended() const |
public void | setSuspended(IloBool suspended=IloTrue) |
public void | setTransitionParam(const IloTransitionParam param) const |
Constructor Detail |
---|
This constructor creates a transition time for resource
.
Transition times on resource
will be computed by using the
transition parameter param
. If the resource
resource
was already associated a transition time, the new
transition time overrides the previous one.
This constructor creates a transition time for resource
.
Transition times on resource
will be computed by using the
transition time object tobj
. If resource
was
already associated a transition time, the new transition time overrides the
previous one.
Method Detail |
---|
This member function returns the transition time between the two resource
constraints given as arguments. The transition time is computed by using the
transition type of the activities and the current transition parameter. More
precisely, if activity of rct1x
is of type t1
, and
activity rct2x
is of type t2
, then this member
function will return the value corresponding to row t1
and
column t2
on the transition parameter. In other words, it will
return the value that was set by using
IloTransitionParam::setValue(t1,t2)
. This member function will
throw an exception if the transition time is defined with a transition time
object as the transition function will be created only at extraction
time.
If the invoking transition time has been created with a user-defined transition time object, this member function will return this transition time object. Otherwise, it will return an empty handle.
This member function returns IloTrue
if and only if the
invoking transition time has been declared to be suspended by breaks.
This member function allows specifying whether the invoking transition time is suspended by breaks or not. By default, a transition time is not suspended by breaks.
This member function allows changing the transition parameter used to
compute the transition times of the resources of the invoking instance of
IloTransitionTime
.