public class GraphConnector<A extends Agent<?>,L extends Link> extends java.lang.Object implements Connector<A>
| Constructor and Description |
|---|
GraphConnector(java.lang.Class<L> linkClass,
SerializableBiConsumer<A,L> dataInjector,
org.apache.commons.math3.distribution.IntegerDistribution degreeDistr,
org.apache.commons.math3.distribution.RealDistribution clustCoefDistr) |
| 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 GraphConnector(java.lang.Class<L> linkClass, SerializableBiConsumer<A,L> dataInjector, org.apache.commons.math3.distribution.IntegerDistribution degreeDistr, org.apache.commons.math3.distribution.RealDistribution clustCoefDistr)
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