public class FullyConnected<A extends Agent<?>,L extends Link> extends java.lang.Object implements Connector<A>
If this strategy is used to create connections within a group each agent isn't connected to themselves.
| Constructor and Description |
|---|
FullyConnected(java.lang.Class<L> linkClass,
SerializableBiConsumer<A,L> dataInjector) |
| Modifier and Type | Method and Description |
|---|---|
void |
connectAgent(A agent,
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 FullyConnected(java.lang.Class<L> linkClass, SerializableBiConsumer<A,L> dataInjector)
public void connectAgent(A agent, GroupInformation sourceInfo, GroupInformation targetInfo)
ConnectorconnectAgent in interface Connector<A extends Agent<?>>agent - : 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