exe
Class GAIGSgraph

java.lang.Object
  extended by exe.VisualGraph
      extended by exe.GAIGSgraph
All Implemented Interfaces:
GAIGSdatastr

public class GAIGSgraph
extends VisualGraph
implements GAIGSdatastr

GAIGSgraph extends the VisualGraph class, providing a uniform interface for that class in generating GAIGS XML code. Use the various constructors to specify the general parameters for the graph visualization, and use the toXML method to actually generate the tree XML for snapshots.

All the graph methods themselves are contained within the VisualGraph class. Consult the documentation of that class

Version:
5/28/06
Author:
Andrew Jungwirth (original toXML code), Myles McNally (current version)

Field Summary
 
Fields inherited from class exe.VisualGraph
directed, font_size, heuristics, MAX_NODES, my_edgeset, my_nodeset, num_edges, num_nodes, weighted, x1, x2, y1, y2
 
Fields inherited from interface exe.GAIGSdatastr
DEFAULT_COLOR, DEFAULT_FONT_SIZE, DEFAULT_NAME, DEFAULT_X1, DEFAULT_X2, DEFAULT_Y1, DEFAULT_Y2
 
Constructor Summary
GAIGSgraph()
          Use all default values
GAIGSgraph(boolean weighted, boolean directed, boolean heuristics)
          Set weighted, directed and heuristics, otherwise use all default values
GAIGSgraph(boolean weighted, boolean directed, boolean heuristics, java.lang.String name, java.lang.String color, double x1, double y1, double x2, double y2, double fontSize)
          Set all instance variables.
 
Method Summary
 java.lang.String getName()
          Get the value of the name.
 void setName(java.lang.String name)
          Set the value of the name to be displayed.
 java.lang.String toXML()
          Creates and returns GAIGS XML code for the current state of the graph
 
Methods inherited from class exe.VisualGraph
addEdge, addNode, addNode, allAdjacentNodes, allNodes, clearGraph, edgeExists, edgeWeight, empty, full, fullEdge, gaigsChangeHexEdgeColors, gaigsChangeHexNodeColors, gaigsDistPoints, gaigsIsOverlap, getEdges, getNextNode, getNodes, getNumEdges, getNumNodes, hasHeuristics, initializeEdgeWeights, initializeHValues, isDirected, isWeighted, nodeExists, OLDrandomDAcyclicGraph, organizeCircle, organizeGraph, randomActiveNode, randomAStarSearchGraph, randomCompleteGraph, randomConnectedGraph, randomDAcyclicGraph, randomGAIGSGraph, randomGraph, randomHamiltonianGraph, randomHeuristicGraph, randomNewNode, randomNode, readGAIGSXMLGraph, readStartGoal, removeEdge, removeNode, resetNodes, runAStar, setBounds, setDirected, setEdgeColor, setEdgeWeight, setFontSize, setHeuristics, setLimitedNodePos, setNodeColor, setNodePos, setUndirected, setUnweighted, setWeighted, testAStar, translateCharIndex, translateIndexChar, writeGAIGSGraph, writeGAIGSXMLGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GAIGSgraph

public GAIGSgraph()
Use all default values


GAIGSgraph

public GAIGSgraph(boolean weighted,
                  boolean directed,
                  boolean heuristics)
Set weighted, directed and heuristics, otherwise use all default values

Parameters:
weighted - Weighted edges or not.
directed - Directed edges or not.
heuristics - Use heuristics or not.

GAIGSgraph

public GAIGSgraph(boolean weighted,
                  boolean directed,
                  boolean heuristics,
                  java.lang.String name,
                  java.lang.String color,
                  double x1,
                  double y1,
                  double x2,
                  double y2,
                  double fontSize)
Set all instance variables.

Parameters:
weighted - Weighted edges or not.
directed - Directed edges or not.
heuristics - Use heuristics or not.
name - Display name of this structure.
color - Color for items unless locally overridden.
x1 - Left display bound.
y1 - Bottom display bound.
x2 - Top display bound.
y2 - Right display bound.
fontSize - Font size for display.
Method Detail

setName

public void setName(java.lang.String name)
Set the value of the name to be displayed.

Specified by:
setName in interface GAIGSdatastr
Parameters:
name - The display name.

getName

public java.lang.String getName()
Get the value of the name.

Specified by:
getName in interface GAIGSdatastr
Returns:
The display name.

toXML

public java.lang.String toXML()
Creates and returns GAIGS XML code for the current state of the graph

Specified by:
toXML in interface GAIGSdatastr
Returns:
A String containing GAIGS XML code for the graph