de.cesr.more.rs.network
Class MRsSocialNetworkFinder
java.lang.Object
de.cesr.more.rs.network.MRsSocialNetworkFinder
public class MRsSocialNetworkFinder
- extends Object
TODO testing
- Date:
- 07.01.2010
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 |
MRsSocialNetworkFinder
public MRsSocialNetworkFinder()
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: