JLogView_.datastructs
Class LGTable

java.lang.Object
  extended by JLogView_.datastructs.LGTable

public class LGTable
extends java.lang.Object

LGTable is a class representing the table data structure. It reflects the log file definition. A table can contains n number of graph definitions.


Constructor Summary
LGTable(java.lang.String n)
          This is the default constructor of LGTable
 
Method Summary
 void addGraph(LGGraph g)
          This adds a graph definition to this table.
 LGGraph getGraph(int index)
          This methods enables you to find a graph object using its index
 LGGraph getGraph(java.lang.String name)
          This methods enables you to find a graph object using its name.
 java.lang.String[] getGraphNames()
          This methods returns all the graph names from the graphs in this table
 LGGraph[] getGraphs()
          This methods returns all the graph definitions from this table
 java.lang.String getName()
          This method returns the table name
 void setGraphs(LGGraph[] g)
          This methods sets all the graph definition of this table in one go using an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LGTable

public LGTable(java.lang.String n)
This is the default constructor of LGTable

Parameters:
n - a String representing the table name
See Also:
String
Method Detail

getName

public java.lang.String getName()
This method returns the table name

Returns:
a String representing the table name
See Also:
String

addGraph

public void addGraph(LGGraph g)
This adds a graph definition to this table.

Parameters:
g - an LGGraph object representing the graph to be added
See Also:
LGGraph

setGraphs

public void setGraphs(LGGraph[] g)
This methods sets all the graph definition of this table in one go using an array.

Parameters:
g - an array of LGGraph object representing all the graphs
See Also:
LGGraph

getGraph

public LGGraph getGraph(java.lang.String name)
This methods enables you to find a graph object using its name.

Parameters:
name - a String representing the name of the graph
See Also:
LGGraph, String

getGraph

public LGGraph getGraph(int index)
This methods enables you to find a graph object using its index

Parameters:
index - an integer, the index in the array of graphs
See Also:
LGGraph

getGraphs

public LGGraph[] getGraphs()
This methods returns all the graph definitions from this table

Returns:
an array of LGGraph objects containing all graphs
See Also:
LGGraph

getGraphNames

public java.lang.String[] getGraphNames()
This methods returns all the graph names from the graphs in this table

Returns:
an array of String containing all graph names
See Also:
String