de.cesr.sesamgim.init.area
Class GAreaInitialiser<AgentT extends GimMilieuAgent<AgentT>>

java.lang.Object
  extended by de.cesr.sesamgim.init.area.GAreaInitialiser<AgentT>
All Implemented Interfaces:
GimAreaInitialiser<AgentT>

public class GAreaInitialiser<AgentT extends GimMilieuAgent<AgentT>>
extends Object
implements GimAreaInitialiser<AgentT>

SesamGIM - Geographical Initialisation for Milieu Agents Takes a shape file, initialises GAreaContext objects from the objects in the shape file using the GimAreaInitialiseService and assigns agents to these contexts utilising their position in the geography. Considered parameters:


Constructor Summary
GAreaInitialiser()
           
 
Method Summary
static
<AgentT> void
assignAgentsToAreaContexts(Collection<AgentT> agents)
          Agents are added to area contexts based on their position in the root geography.
 void initAreaContexts()
          Init area contexts from shape file (the contexts are added to the root context).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAreaInitialiser

public GAreaInitialiser()
Method Detail

initAreaContexts

public void initAreaContexts()
Init area contexts from shape file (the contexts are added to the root context).

Specified by:
initAreaContexts in interface GimAreaInitialiser<AgentT extends GimMilieuAgent<AgentT>>

assignAgentsToAreaContexts

public static <AgentT> void assignAgentsToAreaContexts(Collection<AgentT> agents)
Agents are added to area contexts based on their position in the root geography. NOTE: In case there are group or milieu contexts the agents are organised in the agents need to be added to these sub-contexts. Thus, this method is not required in this case.

Parameters:
agents -