public class SmallWorld<A extends Agent<?>,T extends Link> extends java.lang.Object implements Connector<A>
Constructor and Description |
---|
SmallWorld(java.lang.Class<T> linkClass,
SerializableBiConsumer<A,T> dataInjector,
int inDegree,
double beta) |
Modifier and Type | Method and Description |
---|---|
void |
connectAgent(A connectInit,
GroupInformation sourceInfo,
GroupInformation targetInfo)
The method that creates links between the agent whose `agentInit` is in charge of.
|
SmallWorld<A,T> |
seed(long seed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createLink, createLinks
public SmallWorld(java.lang.Class<T> linkClass, SerializableBiConsumer<A,T> dataInjector, int inDegree, double beta)
public SmallWorld<A,T> seed(long seed)
public void connectAgent(A connectInit, GroupInformation sourceInfo, GroupInformation targetInfo)
Connector
connectAgent
in interface Connector<A extends Agent<?>>
connectInit
- : the agent to be connected. Links are to be added directly to this agent.sourceInfo
- : information of the source grouptargetInfo
- : information of the target group