|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmassim.framework.ArrayAgentProvider
public class ArrayAgentProvider
This class is able to serve as an AgentProvider. It will provide agents that were given to it by an array.
Constructor Summary | |
---|---|
ArrayAgentProvider()
|
|
ArrayAgentProvider(UniqueSimulationAgent[] agents)
|
Method Summary | |
---|---|
void |
allocateAgent(UniqueSimulationAgent agent)
Allocate an agent. |
void |
freeAgent(UniqueSimulationAgent agent)
Free an agent |
UniqueSimulationAgent[] |
getAgents(AgentParameter agentparameter)
Retrieve a list of available agents, fulfilling requirements as mentioned in agentparameter; |
void |
setAgents(UniqueSimulationAgent[] agents)
|
void |
start()
Tell the component to start activity. |
void |
stop()
Tell the component to cease activity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ArrayAgentProvider()
public ArrayAgentProvider(UniqueSimulationAgent[] agents)
Method Detail |
---|
public UniqueSimulationAgent[] getAgents(AgentParameter agentparameter)
AgentProvider
getAgents
in interface AgentProvider
public void setAgents(UniqueSimulationAgent[] agents)
public void allocateAgent(UniqueSimulationAgent agent)
AgentProvider
allocateAgent
in interface AgentProvider
agent
- to allocate.public void freeAgent(UniqueSimulationAgent agent)
AgentProvider
freeAgent
in interface AgentProvider
public void start()
Component
start
in interface Component
public void stop()
Component
stop
in interface Component
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |