FRAMES NO FRAMES

Class IlcShape

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

Instances of IlcShape are generic objects describing shapes associated with resource constraints on continuous reservoirs.

See Also:

Constructor Summary
public IlcShape()
public IlcShape(IlcShapeI * impl)
Method Summary
public IlcShapeI *getImpl() const
public const char *getName() const
public IlcAnygetObject() const
public IlcResourceConstraintgetResourceConstraint() const
public IloSolvergetSolver() const
public IloSolverI *getSolverI() const
public IlcBoolisVariableSlopeShape() const
public voidoperator=(const IlcShape & h)
public voidsetName(const char * name) const
public voidsetObject(IlcAny object) const
Constructor Detail

IlcShape

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

IlcShape

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

Method Detail

getImpl

public IlcShapeI * 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.

getResourceConstraint

public IlcResourceConstraint getResourceConstraint() const

This member function returns the instance of IlcResourceConstraint with which the shape is associated.


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.


isVariableSlopeShape

public IlcBool isVariableSlopeShape() const

This member function returns IlcTrue if the invoking handle relates to an instance of IlcVariableSlopeShape. In this case, the handle can be safely down-cast into a IlcVariableSlopeShape handle, using the corresponding copy-constructor.

See Also:


operator=

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

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.