|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object partage.RandomComplexInstanceGenerator.ParticularConstraintsParameters
public static class RandomComplexInstanceGenerator.ParticularConstraintsParameters
A nested class for customizing the parameters for the particular constraints, forbidding a particular object to a particular agent.
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 |
---|
public int minNumber
public int maxNumber
Constructor Detail |
---|
public RandomComplexInstanceGenerator.ParticularConstraintsParameters(int _min, int _max)
ParticularConstraintsParameters
by specifying the attributes.
_min
- the minimum number of such constraints._max
- the maximum number of such constraints.Method Detail |
---|
public void addAgentToBlackList(int _agent)
_agent
- the agent to add.public void removeAgentFromBlackList(int _agent)
_agent
- the agent to remove.public void addObjectToBlackList(int _object)
_object
- the object to add.public void removeObjectFromBlackList(int _object)
_object
- the object to remove.public int numberOfBlackListedAgents()
public int numberOfBlackListedObjects()
public boolean isBlackListedAgent(int agent)
agent
- the agent to check.
true
if and only if the agent is black-listed.public boolean isBlackListedObject(int object)
object
- the object to check.
true
if and only if the object is black-listed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |