peersim.transport
Class TriangularMatrixParser

java.lang.Object
  extended by peersim.transport.TriangularMatrixParser
All Implemented Interfaces:
Control

public class TriangularMatrixParser
extends java.lang.Object
implements Control

Initializes static singleton E2ENetwork by reading a trace file containing the latency distance measured between a set of "virtual" routers. Latency is assumed to be symmetric, so the latency between x and y is equal to the latency to y and x. The format of the file is as follows: all values are stored as integers. The first value is the number of nodes considered. The rest of the values correspond to a "strictly upper triangular matrix" (see this link), ordered first by row than by column.


Parameter Summary
file
          This configuration parameter identifies the filename of the file containing the measurements.
ratio
          The ratio between the time units used in the configuration file and the time units used in the Peersim simulator.
 
Constructor Summary
TriangularMatrixParser(java.lang.String prefix)
          Read the configuration parameters.
 
Method Summary
 boolean execute()
          Initializes static singleton E2ENetwork by reading a king data set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Parameter Detail

file

This configuration parameter identifies the filename of the file containing the measurements. First, the file is used as a pathname in the local file system. If no file can be identified in this way, the file is searched in the local classpath. If the file cannot be identified again, an error message is reported.


ratio

The ratio between the time units used in the configuration file and the time units used in the Peersim simulator.

Constructor Detail

TriangularMatrixParser

public TriangularMatrixParser(java.lang.String prefix)
Read the configuration parameters.

Method Detail

execute

public boolean execute()
Initializes static singleton E2ENetwork by reading a king data set.

Specified by:
execute in interface Control
Returns:
always false