peersim.dynamics
Class WireRingLattice

java.lang.Object
  extended by peersim.dynamics.WireGraph
      extended by peersim.dynamics.WireRingLattice
All Implemented Interfaces:
Control

public class WireRingLattice
extends WireGraph

Takes a Linkable protocol and adds edges that define a ring lattice. Note that no connections are removed, they are only added. So it can be used in combination with other initializers.

See Also:
GraphFactory.wireRingLattice(peersim.graph.Graph, int)

Parameter Summary
k
          The "lattice parameter" of the graph.
 
Field Summary
 
Fields inherited from class peersim.dynamics.WireGraph
g, pid, undir
 
Constructor Summary
WireRingLattice(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 void wire(Graph g)
          calls GraphFactory.wireRingLattice(peersim.graph.Graph, int).
 
Methods inherited from class peersim.dynamics.WireGraph
execute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

k

The "lattice parameter" of the graph. The out-degree of the graph is equal to 2k. See GraphFactory.wireRingLattice(peersim.graph.Graph, int) (to which this parameter is passed) for further details.

Constructor Detail

WireRingLattice

public WireRingLattice(java.lang.String prefix)
Standard constructor that reads the configuration parameters. Invoked by the simulation engine.

Parameters:
prefix - the configuration prefix for this class
Method Detail

wire

public void wire(Graph g)
calls GraphFactory.wireRingLattice(peersim.graph.Graph, int).

Specified by:
wire in class WireGraph