public final class UniRingTopology<T extends java.io.Serializable> extends java.lang.Object implements Topology<T>
Unidirectional ring topology generator.
It does generate a tight loop for a single vertex.
Sample topologies: - for one vertex: 1 -> 1
- for two vertices: 1 -> 2 -> 1
- for three vertices: 1 -> 2 -> 3 -> 1
Annotation used by this processor: - right
Constructor and Description |
---|
UniRingTopology() |
Modifier and Type | Method and Description |
---|---|
org.jgrapht.Graph<T,AnnotatedEdge> |
apply(java.util.Set<T> identities) |
java.lang.String |
name()
Returns the name of the topology.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bidirectionalRing, fullMesh, unidirectionalRing
public org.jgrapht.Graph<T,AnnotatedEdge> apply(java.util.Set<T> identities)
apply
in interface java.util.function.Function<java.util.Set<T extends java.io.Serializable>,org.jgrapht.Graph<T extends java.io.Serializable,AnnotatedEdge>>
public java.lang.String toString()
toString
in class java.lang.Object