|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmain.SophiaNodesEdgesMap
public class SophiaNodesEdgesMap
The SophiaNodesEdgesMap class stores a collection of nodes and edges
representing properties of the PlanetLab network. This class contains methods
that receive information from the DataGatherer and store it as nodes
and edges.
| Field Summary | |
|---|---|
private java.util.ArrayList<Edge> |
edges
|
private java.util.ArrayList<DrawableLabel> |
labels
|
private java.util.ArrayList<Node> |
nodes
|
| Constructor Summary | |
|---|---|
SophiaNodesEdgesMap(java.lang.String nodeResults,
java.lang.String edgeResults)
Creates a new SophiaNodesEdgesMap from a DataGatherer. |
|
| Method Summary | |
|---|---|
java.util.ArrayList<Edge> |
getEdges()
Returns an ArrayList of Edges that
represent pairs PlanetLab of computers and properties of interactions
between them. |
java.util.ArrayList<DrawableLabel> |
getLabels()
Returns an ArrayList of DrawableLabels that
represent text-labels that can be drawn on the map. |
java.util.ArrayList<Node> |
getNodes()
Returns an ArrayList of Nodes that
represent PlanetLab computers and their properties. |
private void |
parseAndSetEdges(java.lang.String edgeResults)
|
private void |
parseAndSetNodes(java.lang.String nodeResults)
|
private java.util.StringTokenizer |
parseQuery(java.lang.String results)
|
private java.lang.Double |
returnDoubleParameter(java.lang.String value)
|
private java.lang.Integer |
returnIntegerParameter(java.lang.String value)
|
java.lang.String |
toString()
Returns a string representation of the SophiaNodesEdgesMap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<Node> nodes
private java.util.ArrayList<Edge> edges
private java.util.ArrayList<DrawableLabel> labels
| Constructor Detail |
|---|
public SophiaNodesEdgesMap(java.lang.String nodeResults,
java.lang.String edgeResults)
throws java.text.ParseException
SophiaNodesEdgesMap from a DataGatherer.
Stores the nodes and edges in the map by parsing the information stored
in the DataGatherer.
nodeResults - a String that contains the node result of a
Sophia node queryedgeResults - a String that contains the edge result of a
Sophia edge query
java.text.ParseException - if a parse error occurs| Method Detail |
|---|
public java.util.ArrayList<Node> getNodes()
NodeEdgeMapArrayList of Nodes that
represent PlanetLab computers and their properties.
getNodes in interface NodeEdgeMappublic java.util.ArrayList<DrawableLabel> getLabels()
NodeEdgeMapArrayList of DrawableLabels that
represent text-labels that can be drawn on the map.
getLabels in interface NodeEdgeMappublic java.util.ArrayList<Edge> getEdges()
NodeEdgeMapArrayList of Edges that
represent pairs PlanetLab of computers and properties of interactions
between them.
getEdges in interface NodeEdgeMap
private void parseAndSetNodes(java.lang.String nodeResults)
throws java.text.ParseException
java.text.ParseException
private void parseAndSetEdges(java.lang.String edgeResults)
throws java.text.ParseException
java.text.ParseExceptionprivate java.util.StringTokenizer parseQuery(java.lang.String results)
private java.lang.Double returnDoubleParameter(java.lang.String value)
throws java.text.ParseException
java.text.ParseException
private java.lang.Integer returnIntegerParameter(java.lang.String value)
throws java.text.ParseException
java.text.ParseExceptionpublic java.lang.String toString()
SophiaNodesEdgesMap.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||