HiRISE

HiRISE.HiColor
Class JitStat

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by HiRISE.HiColor.JitStat
All Implemented Interfaces:
Serializable, TableModel

public class JitStat
extends DefaultTableModel

Implements a table model for the jitter registration of a particular set of observations. Also can be used as a GUI to show the jitter statistics.

See Also:
Serialized Form

Field Summary
static String ID
          CVS ID
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
JitStat()
          Create a new instance using the default configuration.
JitStat(JitParser jitParser)
          Create a new instance a pre-configured parser.
JitStat(String config)
          Create a new instance with a particular configuration.
 
Method Summary
 void addObservation(Observation observation)
          Add a new observation to the table model, parsing and data collection begins immediately
 void addObservation(Observation observation, Map<CCD,JitData> map)
          Add a new observation to the table model, providing the parsed data.
protected  void addRow(CCD ccd, JitData data)
          Add the data for a particular CCD to the table model.
 boolean isCellEditable(int row, int col)
          Our data is read-only so no cell will be editable.
static void main(String[] args)
          Command-line JitStat, fires up the table.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

JitStat

public JitStat()
        throws Exception
Create a new instance using the default configuration.

Throws:
Exception - Invalid config file

JitStat

public JitStat(String config)
        throws Exception
Create a new instance with a particular configuration.

Parameters:
config - Path to config file
Throws:
Exception - Invalid config file

JitStat

public JitStat(JitParser jitParser)
Create a new instance a pre-configured parser.

Parameters:
jitParser - The parser instance to use
Method Detail

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Our data is read-only so no cell will be editable.

Specified by:
isCellEditable in interface TableModel
Overrides:
isCellEditable in class DefaultTableModel
Parameters:
row - The cell row
col - The cell col

addObservation

public void addObservation(Observation observation)
                    throws PVL_Exception,
                           Invalid_Argument_Exception,
                           IOException
Add a new observation to the table model, parsing and data collection begins immediately

Parameters:
observation - The observation to use
Throws:
PVL_Exception - Files not in expected formats
Invalid_Argument_Exception - Bad observation ID or CCD names
IOException - Files could not be parsed

addObservation

public void addObservation(Observation observation,
                           Map<CCD,JitData> map)
                    throws Invalid_Argument_Exception
Add a new observation to the table model, providing the parsed data.

Parameters:
observation - The observation for which the data belongs
map - Collected jitter data for each available CCD
Throws:
Invalid_Argument_Exception - Bad observation ID or CCD name

addRow

protected void addRow(CCD ccd,
                      JitData data)
Add the data for a particular CCD to the table model.

Parameters:
ccd - The CCD to which the data pertains
data - The collected jitter data

main

public static void main(String[] args)
Command-line JitStat, fires up the table.

Parameters:
args - Intended for testing purposes

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona