|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.framework.AbstractAgentFilter
massim.framework.TeamAgentFilter
public class TeamAgentFilter
This class allows filtering agents that do not belong to a certain team, based upon a map which agent belongs to which team.
Constructor Summary | |
---|---|
TeamAgentFilter(java.util.Map<Account,java.lang.Object> teammap,
AgentProvider agentprovider)
Construct a new TeamAgentFilter. |
Method Summary | |
---|---|
boolean |
isSuitable(UniqueSimulationAgent a,
AgentParameter p)
This method determines if an agent suits the requirements found in agent parameters p. |
Methods inherited from class massim.framework.AbstractAgentFilter |
---|
allocateAgent, freeAgent, getAgents, getBase |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TeamAgentFilter(java.util.Map<Account,java.lang.Object> teammap, AgentProvider agentprovider)
teammap
- association map to useagentprovider
- agent provider to receive agents fromMethod Detail |
---|
public boolean isSuitable(UniqueSimulationAgent a, AgentParameter p)
AbstractAgentFilter
isSuitable
in class AbstractAgentFilter
a
- agent candidatep
- agent requirements.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |