partage
Class RandomComplexInstanceGenerator.ParticularConstraintsParameters

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

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

A nested class for customizing the parameters for the particular constraints, forbidding a particular object to a particular agent.

Version:
July 2007
Author:
Sylvain Bouveret

Field Summary
 int maxNumber
          The maximum number of such constraints.
 int minNumber
          The minimum number of such constraints.
 
Constructor Summary
RandomComplexInstanceGenerator.ParticularConstraintsParameters(int _min, int _max)
          Constructs an instance of ParticularConstraintsParameters by specifying the attributes.
 
Method Summary
 void addAgentToBlackList(int _agent)
          This function adds an agent to the black list.
 void addObjectToBlackList(int _object)
          This function adds an object to the black list.
 boolean isBlackListedAgent(int agent)
          This methods tells if the specified agent is black-listed or not.
 boolean isBlackListedObject(int object)
          This methods tells if the specified object is black-listed or not.
 int numberOfBlackListedAgents()
          Returns the number of black-listed agents.
 int numberOfBlackListedObjects()
          Returns the number of black-listed objects.
 void removeAgentFromBlackList(int _agent)
          This function removes an agent from the black list.
 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.

Constructor Detail

RandomComplexInstanceGenerator.ParticularConstraintsParameters

public RandomComplexInstanceGenerator.ParticularConstraintsParameters(int _min,
                                                                      int _max)
Constructs an instance of ParticularConstraintsParameters by specifying the attributes.

Parameters:
_min - the minimum number of such constraints.
_max - the maximum number of such constraints.
Method Detail

addAgentToBlackList

public void addAgentToBlackList(int _agent)
This function adds an agent to the black list.

Parameters:
_agent - the agent to add.

removeAgentFromBlackList

public void removeAgentFromBlackList(int _agent)
This function removes an agent from the black list.

Parameters:
_agent - the agent to remove.

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.

numberOfBlackListedAgents

public int numberOfBlackListedAgents()
Returns the number of black-listed agents.

Returns:
the number of black-listed agents.

numberOfBlackListedObjects

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

Returns:
the number of black-listed objects.

isBlackListedAgent

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

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

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.