de.cesr.sesamgim.aggregate
Class GAggregateAgents<AgentType,EdgeType extends de.cesr.more.basic.edge.MoreEdge<? super AgentType>>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GAggregateAgents
public GAggregateAgents(repast.simphony.context.Context<?> context,
de.cesr.more.basic.network.MoreNetwork<AgentType,EdgeType> network)
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)