FRAMES NO FRAMES

Class IlcRCTextureProbabilisticFactoryI

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

IlcRCTextureProbabilisticFactoryI is an implementation object that allocates instances of IlcRCTextureProbabilisticI.

For more information, see Texture Measurements.

See Also:

Constructor and Destructor Summary
public IlcRCTextureProbabilisticFactoryI(IloSolver solver)
Method Summary
public virtual IlcRCTexturecreateRCTexture(IlcResourceConstraint, IlcResourceTexture) const
Inherited Methods from IlcRCTextureFactoryI
createRCTexture, getSolver, hasRealZeroCriticality
Constructor and Destructor Detail

IlcRCTextureProbabilisticFactoryI

public IlcRCTextureProbabilisticFactoryI(IloSolver solver)

This constructor creates an instance of IlcRCTextureProbabilisticFactoryI.


Method Detail

createRCTexture

public virtual IlcRCTexture createRCTexture(IlcResourceConstraint, IlcResourceTexture) const

This method returns a pointer to a newly allocated instance of IlcRCTexture representing the individual curve of the resource constraint for the resource associated with the resource texture.

Example

The createRCTexture() method could be written as follows:


 IlcRCTexture IlcRCTextureProbabilisticFactoryI::createRCTexture(
 		   IlcResourceConstraint rct,
 		   IlcResourceTexture texture) const {
   IloSolver solver = getSolver();
   return new (solver.getHeap())
     IlcRCTextureProbabilisticI(solver, rct, texture);
 }