public class ArrayAgentProvider extends Object implements AgentProvider, Component
Constructor and Description |
---|
ArrayAgentProvider() |
ArrayAgentProvider(UniqueSimulationAgent[] agents) |
Modifier and Type | Method and Description |
---|---|
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.
|
public ArrayAgentProvider()
public ArrayAgentProvider(UniqueSimulationAgent[] agents)
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
Copyright © 2013. All Rights Reserved.