partage
Class RandomComplexInstanceGenerator.ExclusiveBundleConstraintsParameters

java.lang.Object
  extended by partage.RandomComplexInstanceGenerator.ExclusiveBundleConstraintsParameters
Enclosing class:
RandomComplexInstanceGenerator

public static class RandomComplexInstanceGenerator.ExclusiveBundleConstraintsParameters
extends java.lang.Object

A nested class for customizing the parameters for the constraints concerning exclusive bundles.

Version:
July 2007
Author:
Sylvain Bouveret

Field Summary
 int maxBundleSize
          The maximum bundle sizes.
 int maxNumber
          The maximum number of such constraints.
 int minBundleSize
          The minimum bundle sizes.
 int minNumber
          The minimum number of such constraints.
 
Constructor Summary
RandomComplexInstanceGenerator.ExclusiveBundleConstraintsParameters(int _minNumber, int _maxNumber, int _minBundleSize, int _maxBundleSize)
           
 
Method Summary
 void addObjectToBlackList(int _object)
          This function adds an object to the black list.
 boolean isBlackListedObject(int object)
          This methods tells if the specified object is black-listed or not.
 int numberOfBlackListedObjects()
          Returns the number of black-listed objects.
 void removeObjectFromBlackList(int _object)
          This function removes an object from the black list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minNumber

public int minNumber
The minimum number of such constraints.


maxNumber

public int maxNumber
The maximum number of such constraints.


minBundleSize

public int minBundleSize
The minimum bundle sizes.


maxBundleSize

public int maxBundleSize
The maximum bundle sizes.

Constructor Detail

RandomComplexInstanceGenerator.ExclusiveBundleConstraintsParameters

public RandomComplexInstanceGenerator.ExclusiveBundleConstraintsParameters(int _minNumber,
                                                                           int _maxNumber,
                                                                           int _minBundleSize,
                                                                           int _maxBundleSize)
Method Detail

addObjectToBlackList

public void addObjectToBlackList(int _object)
This function adds an object to the black list.

Parameters:
_object - the object to add.

removeObjectFromBlackList

public void removeObjectFromBlackList(int _object)
This function removes an object from the black list.

Parameters:
_object - the object to remove.

numberOfBlackListedObjects

public int numberOfBlackListedObjects()
Returns the number of black-listed objects.

Returns:
the number of black-listed objects.

isBlackListedObject

public boolean isBlackListedObject(int object)
This methods tells if the specified object is black-listed or not.

Parameters:
object - the object to check.
Returns:
true if and only if the object is black-listed.