|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.model.engine.RandomAgentSelector
public class RandomAgentSelector
The Class RandomAgentSelector.
Constructor Summary | |
---|---|
RandomAgentSelector(IncrementalExecutionStrategy strategy,
int iterationCount)
Instantiates a new random agent selector. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone. |
IncrementalExecutionStrategy |
getStrategy()
Gets the strategy. |
boolean |
hasMoreAgents()
Checks for more agents. |
Agent |
nextAgent()
Next agent. |
void |
reset()
Reset. |
void |
setStrategy(IncrementalExecutionStrategy strategy)
Sets the strategy. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RandomAgentSelector(IncrementalExecutionStrategy strategy, int iterationCount)
strategy
- the strategyiterationCount
- the iteration countMethod Detail |
---|
public boolean hasMoreAgents()
AgentSelector
hasMoreAgents
in interface AgentSelector
public Agent nextAgent()
AgentSelector
nextAgent
in interface AgentSelector
public void reset()
Selector
reset
in interface Selector
public IncrementalExecutionStrategy getStrategy()
AgentSelector
getStrategy
in interface AgentSelector
public void setStrategy(IncrementalExecutionStrategy strategy)
AgentSelector
setStrategy
in interface AgentSelector
strategy
- the new strategypublic java.lang.Object clone()
Selector
clone
in interface Selector
clone
in class java.lang.Object
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |