mwalk Platform 0.3.0

mwalk.app
Class Builder

java.lang.Object
  |
  +--mwalk.app.Builder

public class Builder
extends java.lang.Object

A runnable class that builds the tree from mtraces and receiver interval information.

Version:
1.0
Author:
Robert Chalmers

Field Summary
protected  int graphEdges
          Number of total edges in graph
protected  int otherSources
          Number of other sources seen when building paths
protected  int pathlessEdges
          Number of edges removed due to not having a path back to the source
protected  int pathlessNodes
          Number of nodes removed due to not having a path back to the source
protected  int pathlessReceivers
          Number of receivers removed due to not having a path back to the source
protected  int sourcePaths
          Number of paths ignored do to gateway-only restrictions
protected  int treeLinks
          Number of primary links in the tree
 
Constructor Summary
Builder()
          Default constructor.
 
Method Summary
 void addPaths(Tree tree)
          Add paths to tree from parsed mtrace logs.
 void addReceivers(Tree tree)
          Add receivers to tree from parsed RTCP logs.
 Tree build()
          Build tree from supplied logs.
 void cleanPaths(Tree tree)
          Remove nodes and links from the tree if they have no path back to the source.
static void main(java.lang.String[] args)
          Main application method.
 void markPrimaryPaths(Tree tree)
          Mark primary paths for each receiver.
 void mergePeriods(Tree tree)
          Merge overlapping active periods to reduce the size of the period tables.
 void readStats(Tree tree)
          Read statistics file to extract the session time for the given session.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

otherSources

protected int otherSources
Number of other sources seen when building paths

treeLinks

protected int treeLinks
Number of primary links in the tree

graphEdges

protected int graphEdges
Number of total edges in graph

pathlessNodes

protected int pathlessNodes
Number of nodes removed due to not having a path back to the source

pathlessReceivers

protected int pathlessReceivers
Number of receivers removed due to not having a path back to the source

pathlessEdges

protected int pathlessEdges
Number of edges removed due to not having a path back to the source

sourcePaths

protected int sourcePaths
Number of paths ignored do to gateway-only restrictions
Constructor Detail

Builder

public Builder()
Default constructor.
Method Detail

build

public Tree build()
           throws BuildException
Build tree from supplied logs.
Throws:
BuildException - if an error occurred during build

readStats

public void readStats(Tree tree)
               throws BuildException
Read statistics file to extract the session time for the given session.
Parameters:
Tree - active tree
Throws:
BuildException - if session time not available

addReceivers

public void addReceivers(Tree tree)
                  throws BuildException
Add receivers to tree from parsed RTCP logs.
Parameters:
Tree - active tree
Throws:
BuildException - if receivers could not be added

addPaths

public void addPaths(Tree tree)
              throws BuildException
Add paths to tree from parsed mtrace logs.
Parameters:
Tree - active tree
Throws:
BuildException - if paths could not be added

cleanPaths

public void cleanPaths(Tree tree)
                throws BuildException
Remove nodes and links from the tree if they have no path back to the source.
Parameters:
Tree - active tree

mergePeriods

public void mergePeriods(Tree tree)
                  throws BuildException
Merge overlapping active periods to reduce the size of the period tables.
Parameters:
Tree - active tree
Throws:
BuildException - if merge failed

markPrimaryPaths

public void markPrimaryPaths(Tree tree)
                      throws BuildException
Mark primary paths for each receiver. The primary path is the path that is active for the longest time throughout the duration of the session.
Parameters:
Tree - active tree
Throws:
BuildException - if merge failed

main

public static void main(java.lang.String[] args)
Main application method.
Parameters:
String[] - command line arguments.

mwalk Platform 0.3.0

Submit a bug or feature mwalk Platform API Specification 0.3.0
Sensitivity: {Public:Research}
Copyright(c) 2000, Robert Chalmers