org.caida.otter
Class LibSeaToPlotPaths
java.lang.Object
|
+--org.caida.otter.LibSeaToPlotPaths
- public class LibSeaToPlotPaths
- extends java.lang.Object
Class that bridges the LibSea graph format to the data structures
that exist in PlotPaths.
Method Summary |
void |
addLibSeaAttributes(org.caida.libsea.Graph LibSea_Graph,
DisplayObjects Display_Graph)
One stop shopping for all the attributes that need to be added
in order to create an otter file. |
PathSet |
loadPaths(org.caida.libsea.Graph LibSea_Graph,
GetOpts CmdOpts)
Extracts the path infomation from the LibSea graph file
and adds the proper information into the PathSet data structures
that originally were written for PlotPaths. |
PathSet |
setColumnAttribute(org.caida.libsea.Graph LibSea_Graph,
PathSet graph,
java.lang.String COLUMN_ATTRIBUTE)
Sets the column attribute that will be used to reference the columns. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
LibSeaToPlotPaths
public LibSeaToPlotPaths()
loadPaths
public PathSet loadPaths(org.caida.libsea.Graph LibSea_Graph,
GetOpts CmdOpts)
- Extracts the path infomation from the LibSea graph file
and adds the proper information into the PathSet data structures
that originally were written for PlotPaths.
POSSIBLE MODIFICATIONS:
- UNKNOWN_NODE_NAME may need to be replaced or done away with.
It is a relic of the original PlotPaths.
- Parameters:
LibSea_Graph
- LibSea graph fileUNKNOWN_NODE_NAME
- The string representation of an
unknown node.- Returns:
- A PathSet graph file with the paths given in unique
LibSea graph file ID values and AS numbers associated with
each ID.
setColumnAttribute
public PathSet setColumnAttribute(org.caida.libsea.Graph LibSea_Graph,
PathSet graph,
java.lang.String COLUMN_ATTRIBUTE)
- Sets the column attribute that will be used to reference the columns.
Type Summary:
Boolean = 0;
Integer = 1;
Float = 2;
Double = 3;
String = 4;
Float3 = 5;
Double3 = 6;
Enumeration = 7;
- Parameters:
LibSea_Graph
- The LibSea graph object.graph
- The PathSet graph object.COLUMN_ATTRIBUTE
- The attribute that the columns will be seperated into.- Returns:
- The PathSet graph object with the nodes set to the COLUMN_ATTRIBUTE.
addLibSeaAttributes
public void addLibSeaAttributes(org.caida.libsea.Graph LibSea_Graph,
DisplayObjects Display_Graph)
- One stop shopping for all the attributes that need to be added
in order to create an otter file.
- Parameters:
LibSea_Graph
- LibSea graph object that will be modified.Display_Graph
- Display Object that contains the node info.