de.cesr.sesamgim.aggregate
Class GAggregateAgents<AgentType,EdgeType extends de.cesr.more.basic.edge.MoreEdge<? super AgentType>>

java.lang.Object
  extended by de.cesr.sesamgim.aggregate.GAggregateAgents<AgentType,EdgeType>

public class GAggregateAgents<AgentType,EdgeType extends de.cesr.more.basic.edge.MoreEdge<? super AgentType>>
extends Object

SesamGIM - Geographical Initialisation for Milieu Agents


Constructor Summary
GAggregateAgents(repast.simphony.context.Context<?> context, de.cesr.more.basic.network.MoreNetwork<AgentType,EdgeType> network)
           
 
Method Summary
 void aggregateAgents(Map<GimAgentDissimilarityProvider<AgentType>,Double> similarityProviderMap, Collection<AgentType> orgAgentGroup, int group)
           
static
<AgentT> Map<GimAgentDissimilarityProvider<AgentT>,Double>
getEmptySimilarityProviderMap()
           
protected  int[] getStoredMatching(int number, int group)
           
protected  boolean hasStoredMatching(int number, int group)
           
protected  void writeMatching(int[] matches, int group)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAggregateAgents

public GAggregateAgents(repast.simphony.context.Context<?> context,
                        de.cesr.more.basic.network.MoreNetwork<AgentType,EdgeType> network)
Method Detail

getEmptySimilarityProviderMap

public static <AgentT> Map<GimAgentDissimilarityProvider<AgentT>,Double> getEmptySimilarityProviderMap()

aggregateAgents

public void aggregateAgents(Map<GimAgentDissimilarityProvider<AgentType>,Double> similarityProviderMap,
                            Collection<AgentType> orgAgentGroup,
                            int group)

hasStoredMatching

protected boolean hasStoredMatching(int number,
                                    int group)
Returns:
null if no matches available

getStoredMatching

protected int[] getStoredMatching(int number,
                                  int group)
Returns:
null if no matches available

writeMatching

protected void writeMatching(int[] matches,
                             int group)