be.ac.ucl.ingi.totem.repository
Class RttMeasurementReportInterpreter

java.lang.Object
  extended by be.ac.ucl.ingi.totem.repository.RttMeasurementReportInterpreter

public class RttMeasurementReportInterpreter
extends java.lang.Object

The RttMeasurementReportInterpreter object represents the results of running the tests defined using the RttMeasurementRequestGeneration. Specified with a directory, containing the results and requests made, it analyzed the results with respect to the requests (IE: which nodes wanted to probe which subnet, and the importance of that subnet). It stores the results in lists for the the whole topology and for each individual source node. It contains a method to print out those lists in the directory to that the data can be used in another location.

Author:
Thomas Dekens

Nested Class Summary
 class RttMeasurementReportInterpreter.RttResult
           
 
Field Summary
static java.lang.String AGGREGATE
           
static java.lang.String nodesDirName
           
static java.lang.String reportFilename
           
static java.lang.String requestDirName
           
static java.lang.String requestFilename
           
static java.lang.String resultsFilename
           
 
Constructor Summary
RttMeasurementReportInterpreter(java.lang.String baseDirName)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.util.Set<java.lang.String> getNodeNames()
           
 java.util.List<RttMeasurementReportInterpreter.RttResult> getRttResult(java.lang.String node)
          This method is used to retrieve the List of RttResults for a specified node.
static void main(java.lang.String[] args)
           
 void setDescription(java.lang.String description)
           
 void writeResults()
          This method prints out the results represented by RTTMeasurementReportInterpreter in the directories for each node and in the base directory for the aggregate data in the file specified by REPORT_FILENAME The file contains a row for each subnet with columns of the tye: SUBNET WEIGHT AVGRTT MAXRTT MINRTT MAD AVGStandardDeviation NUM SUC NUM and SUC are not relevant in the agregate format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

requestDirName

public static final java.lang.String requestDirName
See Also:
Constant Field Values

nodesDirName

public static final java.lang.String nodesDirName
See Also:
Constant Field Values

resultsFilename

public static final java.lang.String resultsFilename
See Also:
Constant Field Values

reportFilename

public static final java.lang.String reportFilename
See Also:
Constant Field Values

requestFilename

public static final java.lang.String requestFilename
See Also:
Constant Field Values

AGGREGATE

public static final java.lang.String AGGREGATE
See Also:
Constant Field Values
Constructor Detail

RttMeasurementReportInterpreter

public RttMeasurementReportInterpreter(java.lang.String baseDirName)
                                throws javax.xml.bind.JAXBException
Parameters:
baseDirName -
Throws:
javax.xml.bind.JAXBException
Method Detail

getRttResult

public java.util.List<RttMeasurementReportInterpreter.RttResult> getRttResult(java.lang.String node)
This method is used to retrieve the List of RttResults for a specified node. If the specified node is null then the aggregate of all the RttResults contained in this object is returned.

Parameters:
node - the name of the node for which the list of RttResult is requested
Returns:
the aggregate RttResult for this object if node is null, the list of RttResult corresponding to node if it exists or null if this node does not have RttResults

getNodeNames

public java.util.Set<java.lang.String> getNodeNames()

writeResults

public void writeResults()
This method prints out the results represented by RTTMeasurementReportInterpreter in the directories for each node and in the base directory for the aggregate data in the file specified by REPORT_FILENAME The file contains a row for each subnet with columns of the tye: SUBNET WEIGHT AVGRTT MAXRTT MINRTT MAD AVGStandardDeviation NUM SUC NUM and SUC are not relevant in the agregate format


main

public static void main(java.lang.String[] args)
                 throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.