fr.lifl.jedi.controllersCore.orderingPolicies
Class RandomAgentOrderingPolicy

java.lang.Object
  extended by fr.lifl.jedi.controllersCore.orderingPolicies.RandomAgentOrderingPolicy
All Implemented Interfaces:
AgentOrderingPolicy

public class RandomAgentOrderingPolicy
extends java.lang.Object
implements AgentOrderingPolicy

Agent ordering policy that orders agents at random.

This class is a singleton.

Version:
JEDI V 2.0
Created the 10th nov. 2008
Modified the 5th may 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France

Field Summary
static RandomAgentOrderingPolicy INSTANCE
          Instance of this singleton class.
 
Method Summary
 void reorder(java.util.List<Agent> list)
          Reorders the list of agents according to the policy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final RandomAgentOrderingPolicy INSTANCE
Instance of this singleton class.

Method Detail

reorder

public void reorder(java.util.List<Agent> list)
Description copied from interface: AgentOrderingPolicy
Reorders the list of agents according to the policy.

Specified by:
reorder in interface AgentOrderingPolicy
Parameters:
list - the list of agents to reorder.
See Also:
AgentOrderingPolicy.reorder(List)