public class RingConnected<A extends Agent<?>,T extends Link> extends java.lang.Object implements Connector<A>
Constructor and Description |
---|
RingConnected(java.lang.Class<T> linkClass,
SerializableBiConsumer<A,T> dataInjector) |
Modifier and Type | Method and Description |
---|---|
RingConnected<A,T> |
bidirectional() |
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, wait
createLink, createLinks
public RingConnected(java.lang.Class<T> linkClass, SerializableBiConsumer<A,T> dataInjector)
public RingConnected<A,T> bidirectional()
public void connectAgent(A agent, GroupInformation sourceInfo, GroupInformation targetInfo)
Connector
connectAgent
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