public class JitStat
extends javax.swing.table.DefaultTableModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
CVS ID
|
Constructor and Description |
---|
JitStat()
Create a new instance using the default configuration.
|
JitStat(JitParser jitParser)
Create a new instance a pre-configured parser.
|
JitStat(java.lang.String config)
Create a new instance with a particular configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addObservation(Observation observation)
Add a new observation to the table model, parsing and data collection
begins immediately
|
void |
addObservation(Observation observation,
java.util.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(java.lang.String[] args)
Command-line JitStat, fires up the table.
|
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
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
public static final java.lang.String ID
public JitStat() throws java.lang.Exception
java.lang.Exception
- Invalid config filepublic JitStat(java.lang.String config) throws java.lang.Exception
config
- Path to config filejava.lang.Exception
- Invalid config filepublic JitStat(JitParser jitParser)
jitParser
- The parser instance to usepublic boolean isCellEditable(int row, int col)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
row
- The cell rowcol
- The cell colpublic void addObservation(Observation observation) throws PIRL.PVL.PVL_Exception, Invalid_Argument_Exception, java.io.IOException
observation
- The observation to usePIRL.PVL.PVL_Exception
- Files not in expected formatsInvalid_Argument_Exception
- Bad observation ID or CCD namesjava.io.IOException
- Files could not be parsedpublic void addObservation(Observation observation, java.util.Map<CCD,JitData> map) throws Invalid_Argument_Exception
observation
- The observation for which the data belongsmap
- Collected jitter data for each available CCDInvalid_Argument_Exception
- Bad observation ID or CCD nameprotected void addRow(CCD ccd, JitData data)
ccd
- The CCD to which the data pertainsdata
- The collected jitter datapublic static void main(java.lang.String[] args)
args
- Intended for testing purposesCopyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona