example.hot
Class WireInetTopology

java.lang.Object
  extended by peersim.dynamics.WireGraph
      extended by example.hot.WireInetTopology
All Implemented Interfaces:
Control

public class WireInetTopology
extends WireGraph

This class applies a HOT topology on a any Linkable implementing protocol.


Parameter Summary
alpha
          The alpha parameter.
coord_protocol
          The coordinate protocol to look at.
 
Field Summary
 
Fields inherited from class peersim.dynamics.WireGraph
g, pid, undir
 
Constructor Summary
WireInetTopology(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 void wire(Graph g)
          Performs the actual wiring.
 
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

alpha

The alpha parameter. It affects the distance relevance in the wiring process. Default value: 0.5.


coord_protocol

The coordinate protocol to look at.

Constructor Detail

WireInetTopology

public WireInetTopology(java.lang.String prefix)
Standard constructor that reads the configuration parameters. Normally invoked by the simulation engine.

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

wire

public void wire(Graph g)
Performs the actual wiring.

Specified by:
wire in class WireGraph
Parameters:
g - a Graph interface object to work on.