peersim.dynamics
Class WireStar

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

public class WireStar
extends WireGraph

Takes a Linkable protocol and adds connection which for a star topology. No connections are removed, they are only added. So it can be used in combination with other initializers.

See Also:
GraphFactory.wireStar(peersim.graph.Graph)

Field Summary
 
Fields inherited from class peersim.dynamics.WireGraph
g, pid, undir
 
Constructor Summary
WireStar(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 void wire(Graph g)
          Calls GraphFactory.wireStar(peersim.graph.Graph).
 
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
 

Constructor Detail

WireStar

public WireStar(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.wireStar(peersim.graph.Graph).

Specified by:
wire in class WireGraph