de.cesr.more.rs.network
Class MRsSocialNetworkFinder

java.lang.Object
  extended by de.cesr.more.rs.network.MRsSocialNetworkFinder

public class MRsSocialNetworkFinder
extends Object

TODO testing

Date:
07.01.2010

Constructor Summary
MRsSocialNetworkFinder()
           
 
Method Summary
 MoreNetwork<?,? extends repast.simphony.space.graph.RepastEdge<?>> getNetwork(repast.simphony.context.Context<?> context, String name)
           
static
<T> Collection<repast.simphony.context.space.graph.ContextJungNetwork<T>>
getNetworks(T agent)
          This is a helper method to query all networks a given agent is in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MRsSocialNetworkFinder

public MRsSocialNetworkFinder()
Method Detail

getNetworks

public static <T> Collection<repast.simphony.context.space.graph.ContextJungNetwork<T>> getNetworks(T agent)
This is a helper method to query all networks a given agent is in.

Type Parameters:
T -
Parameters:
agent -
Returns:
networks as String[]

getNetwork

public MoreNetwork<?,? extends repast.simphony.space.graph.RepastEdge<?>> getNetwork(repast.simphony.context.Context<?> context,
                                                                                     String name)
Parameters:
context -
name -
Returns: