edu.sdsc.grid.io
Class MetaDataTable

java.lang.Object
  extended by edu.sdsc.grid.io.MetaDataTable

public class MetaDataTable
extends java.lang.Object


Constructor Summary
MetaDataTable(int[] operators, java.lang.String[][] values)
           
 
Method Summary
 void addRow(java.lang.String[] values, int operator)
          Adds these values to this table, as the new last row.
 boolean equals(java.lang.Object obj)
           
 int getColumnCount()
           
 float getFloatValue(int row, int column)
           
 int getIntValue(int row, int column)
           
 int getOperator(int index)
           
 int[] getOperators()
           
 int getRowCount()
           
 java.lang.String getStringValue(int row, int column)
           
 java.lang.String getStringValue(java.lang.String match)
           
 java.lang.String getStringValue(java.lang.String match, int column)
           
 void removeRow(int index)
          Removes the row specified by index from this table.
 void setStringValue(int i, int j, java.lang.String value)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaDataTable

public MetaDataTable(int[] operators,
                     java.lang.String[][] values)
Method Detail

setStringValue

public void setStringValue(int i,
                           int j,
                           java.lang.String value)

getOperators

public int[] getOperators()

getOperator

public int getOperator(int index)

getIntValue

public int getIntValue(int row,
                       int column)

getFloatValue

public float getFloatValue(int row,
                           int column)

getStringValue

public java.lang.String getStringValue(int row,
                                       int column)

getStringValue

public java.lang.String getStringValue(java.lang.String match)
Returns:
The string matching the second column, the "value" column, from the row that's first column, the "attribute" column, equals match.

getStringValue

public java.lang.String getStringValue(java.lang.String match,
                                       int column)
Returns:
The string matching the column index from the row that's first column equals match.

getRowCount

public int getRowCount()

getColumnCount

public int getColumnCount()

addRow

public void addRow(java.lang.String[] values,
                   int operator)
Adds these values to this table, as the new last row.


removeRow

public void removeRow(int index)
Removes the row specified by index from this table.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object