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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateLink, createLinkspublic SmallWorld(java.lang.Class<T> linkClass, SerializableBiConsumer<A,T> dataInjector, int inDegree, double beta)
public void connectAgent(A connectInit, GroupInformation sourceInfo, GroupInformation targetInfo)
ConnectorconnectAgent 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