Overview | Group | Tree | Graph | Index | Concepts |
An instance of this class can be passed as an argument to the function
IlcUnaryResource::addNextTransitionCost
or
IlcUnaryResource::addPrevTransitionCost
to
declare a cost to factor into a sequence constraint added to the resource.
It defines a set of functions that calculate the transition, setup, and
teardown costs between resource constraints.
The transition cost is the cost to have the activity of one resource constraint as the successor to the activity of another. The setup cost is the cost for the activity of a resource constraint to be sequenced first. The teardown cost is the cost for the activity of a resource constraint to be sequenced last.
The class IlcTransitionCostObject
is the handle class of the
class IlcTransitionCostObjectI
. To define an
IlcTransitionCostObject
class adapted to your needs, you must
encode the virtual functions declared in the IlcTransitionCostObjectI
class. For an example of this,
refer to IlcTransitionCostObjectI
.
You can also use an instance of IlcTransitionTable
as the argument of the function
IlcMakeTransitionCost
.
For more information, see Sequence Constraint.
See Also:
IlcMakeTransitionCost, IlcResourceConstraint, IlcTransitionCost, IlcTransitionCostObjectI
Constructor Summary | |
---|---|
public | IlcTransitionCostObject() |
public | IlcTransitionCostObject(IlcTransitionCostObjectI * impl) |
Method Summary | |
---|---|
public IlcTransitionCostObjectI * | getImpl() const |
public IlcInt | getSetupCost(const IlcResourceConstraint srct1) const |
public IlcInt | getSetupCostMax(const IlcResourceConstraint srct1) const |
public IlcInt | getSetupCostMin(const IlcResourceConstraint srct1) const |
public IlcInt | getTeardownCost(const IlcResourceConstraint srct1) const |
public IlcInt | getTeardownCostMax(const IlcResourceConstraint srct1) const |
public IlcInt | getTeardownCostMin(const IlcResourceConstraint srct1) const |
public IlcInt | getTransitionCost(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const |
public IlcInt | getTransitionCostMax(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const |
public IlcInt | getTransitionCostMin(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const |
public IlcBool | isVariable() const |
public void | operator=(const IlcTransitionCostObject & h) |
Constructor Detail |
---|
This constructor creates an empty handle. You must initialize it before you use it.
This constructor creates a handle object from a pointer to an implementation object.
Method Detail |
---|
This member function returns a pointer to the implementation object of the invoking handle.
This member function returns the constant setup cost of the activity of
the resource constraint srct1
. The setup cost is the cost for
this activity to be first in the sequence.
This member function returns the maximal variable setup cost of the
activity of the resource constraint srct1
. The setup cost is
the cost for this activity to be first in the sequence.
This member function returns the minimal variable setup cost of the
activity of the resource constraint srct1
. The setup cost is
the cost for this activity to be first in the sequence.
This member function returns the constant teardown cost of the activity
of the resource constraint srct1
. The teardown cost is the cost
for this activity to be last in the sequence.
This member function returns the maximal variable teardown cost of the
activity of the resource constraint srct1
. The teardown cost is
the cost for this activity to be last in the sequence.
This member function returns the minimal variable teardown cost of the
activity of the resource constraint srct1
. The teardown cost is
the cost for this activity to be last in the sequence.
This member function returns the constant transition cost if the activity
of the resource constraint srct1
immediately precedes the
activity of the resource constraint srct2
in the sequence.
This member function returns the maximal variable transition cost if the
activity of the resource constraint srct1
immediately precedes
the activity of the resource constraint srct2
in the
sequence.
This member function returns the minimal variable transition cost if the
activity of the resource constraint srct1
immediately precedes
the activity of the resource constraint srct2
in the
sequence.
This member function returns IlcTrue
if the invoking
instance of IlcTransitionCostObject
is variable. Otherwise, it
returns IlcFalse
.
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.