example.hot
Class InetObserver

java.lang.Object
  extended by peersim.reports.GraphObserver
      extended by example.hot.InetObserver
All Implemented Interfaces:
Control

public class InetObserver
extends GraphObserver

This class prints to files the topology wiring using a Gnuplot friendly syntax. Uses the Graph interface to visit the topology.


Parameter Summary
file_base
          The filename base to print out the topology relations.
coord_protocol
          The coordinate protocol to look at.
 
Parameters inherited from class peersim.reports.GraphObserver
undir
 
Field Summary
 
Fields inherited from class peersim.reports.GraphObserver
g, ga, name, pid, undir
 
Constructor Summary
InetObserver(java.lang.String prefix)
          Standard constructor that reads the configuration parameters.
 
Method Summary
 boolean execute()
          Performs arbitrary modifications or reports arbitrary information over the components.
 
Methods inherited from class peersim.reports.GraphObserver
updateGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

file_base

The filename base to print out the topology relations.


coord_protocol

The coordinate protocol to look at.

Constructor Detail

InetObserver

public InetObserver(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

execute

public boolean execute()
Description copied from interface: Control
Performs arbitrary modifications or reports arbitrary information over the components.

Returns:
true if the simulation has to be stopped, false otherwise.