FRAMES NO FRAMES

Class IlcTransitionCostObject

Definition file: ilsched/trancost.h
Include file: <ilsched/ilsched.h>

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:

Constructor Summary
public IlcTransitionCostObject()
public IlcTransitionCostObject(IlcTransitionCostObjectI * impl)
Method Summary
public IlcTransitionCostObjectI *getImpl() const
public IlcIntgetSetupCost(const IlcResourceConstraint srct1) const
public IlcIntgetSetupCostMax(const IlcResourceConstraint srct1) const
public IlcIntgetSetupCostMin(const IlcResourceConstraint srct1) const
public IlcIntgetTeardownCost(const IlcResourceConstraint srct1) const
public IlcIntgetTeardownCostMax(const IlcResourceConstraint srct1) const
public IlcIntgetTeardownCostMin(const IlcResourceConstraint srct1) const
public IlcIntgetTransitionCost(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const
public IlcIntgetTransitionCostMax(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const
public IlcIntgetTransitionCostMin(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const
public IlcBoolisVariable() const
public voidoperator=(const IlcTransitionCostObject & h)
Constructor Detail

IlcTransitionCostObject

public IlcTransitionCostObject()

This constructor creates an empty handle. You must initialize it before you use it.


IlcTransitionCostObject

public IlcTransitionCostObject(IlcTransitionCostObjectI * impl)

This constructor creates a handle object from a pointer to an implementation object.


Method Detail

getImpl

public IlcTransitionCostObjectI * getImpl() const
This constructor creates an object by copying another one.

This member function returns a pointer to the implementation object of the invoking handle.


getSetupCost

public IlcInt getSetupCost(const IlcResourceConstraint srct1) const

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.


getSetupCostMax

public IlcInt getSetupCostMax(const IlcResourceConstraint srct1) const

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.


getSetupCostMin

public IlcInt getSetupCostMin(const IlcResourceConstraint srct1) const

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.


getTeardownCost

public IlcInt getTeardownCost(const IlcResourceConstraint srct1) const

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.


getTeardownCostMax

public IlcInt getTeardownCostMax(const IlcResourceConstraint srct1) const

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.


getTeardownCostMin

public IlcInt getTeardownCostMin(const IlcResourceConstraint srct1) const

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.


getTransitionCost

public IlcInt getTransitionCost(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const

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.


getTransitionCostMax

public IlcInt getTransitionCostMax(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const

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.


getTransitionCostMin

public IlcInt getTransitionCostMin(const IlcResourceConstraint srct1, const IlcResourceConstraint srct2) const

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.


isVariable

public IlcBool isVariable() const

This member function returns IlcTrue if the invoking instance of IlcTransitionCostObject is variable. Otherwise, it returns IlcFalse.


operator=

public void operator=(const IlcTransitionCostObject & 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.