partage
Class PleiadesComplexInstanceGenerator.VolumeConstraintParameters

java.lang.Object
  extended by partage.PleiadesComplexInstanceGenerator.VolumeConstraintParameters
Enclosing class:
PleiadesComplexInstanceGenerator

public static class PleiadesComplexInstanceGenerator.VolumeConstraintParameters
extends java.lang.Object

A nested class for customizing all the parameters concerning the volume constraint parameters of the instance.


Field Summary
 int consArity
          The arity of the constraint (number of consecutive objects concerned by the constraint) - default is 10.
 int consMaxVol
          The maximum volume allowed by each constraint - default is 4.
 boolean consUnequal
          true if we want unequal maximum allowed volumes : in this case, the maximum volume of each constraint is randomly choosen between 1 and consMaxVol ; otherwise, each constraint has a maximum volume of consMaxVol - default is false.
 boolean different
          true if we don't want the volumes to be all equals : in this case, the volume of each object is randomly choosen between 1 and maxVol ; otherwise, each object has a volume of maxVol - default is false.
 int maxVol
          The maximum volume of the objects - default is 1.
 
Constructor Summary
PleiadesComplexInstanceGenerator.VolumeConstraintParameters()
           
PleiadesComplexInstanceGenerator.VolumeConstraintParameters(int r)
          Creates a new ConstraintParameters instance, by specifying only the harness of the volume constraints.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

consMaxVol

public int consMaxVol
The maximum volume allowed by each constraint - default is 4.


consArity

public int consArity
The arity of the constraint (number of consecutive objects concerned by the constraint) - default is 10.


maxVol

public int maxVol
The maximum volume of the objects - default is 1.


different

public boolean different
true if we don't want the volumes to be all equals : in this case, the volume of each object is randomly choosen between 1 and maxVol ; otherwise, each object has a volume of maxVol - default is false.


consUnequal

public boolean consUnequal
true if we want unequal maximum allowed volumes : in this case, the maximum volume of each constraint is randomly choosen between 1 and consMaxVol ; otherwise, each constraint has a maximum volume of consMaxVol - default is false.

Constructor Detail

PleiadesComplexInstanceGenerator.VolumeConstraintParameters

public PleiadesComplexInstanceGenerator.VolumeConstraintParameters()

PleiadesComplexInstanceGenerator.VolumeConstraintParameters

public PleiadesComplexInstanceGenerator.VolumeConstraintParameters(int r)
Creates a new ConstraintParameters instance, by specifying only the harness of the volume constraints.
By default, the volumes of the objects are equals (their value is 1), so are the maximum allowed volumes of the constraints. The arity of the constraints is fixed to 20.

Parameters:
r - an int value between 0 and 20, specifying that r out of 20 objects can be simultaneously allocated.