edu.jhu.ece.iacl.jist.pipeline.gui
Class ProcessManagerTable.ProcessTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by edu.jhu.ece.iacl.jist.pipeline.gui.ProcessManagerTable.ProcessTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
ProcessManagerTable

public class ProcessManagerTable.ProcessTableModel
extends javax.swing.table.AbstractTableModel

The Class ProcessTableModel.

See Also:
Serialized Form

Field Summary
protected  java.lang.Class[] columnClasses
          The column classes.
protected  java.lang.String[] columnNames
          The column names.
 java.util.Vector<ExecutionContext> rows
          The rows.
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ProcessManagerTable.ProcessTableModel()
          Instantiates a new process table model.
 
Method Summary
 ProcessManagerTable.TimeStampWrapper createCpuTime(ExecutionContext context)
          Creates the cpu time.
 ProcessManagerTable.MemoryStampWrapper createMemory(ExecutionContext context)
          Creates the memory.
 java.lang.Object createPipeView(ExecutionContext context)
          Creates the pipe view.
 java.lang.Object createProcessView(ExecutionContext context)
          Creates the process view.
 java.lang.Object createProgress(ExecutionContext context)
          Creates the progress.
 java.lang.Object createQueueView(ExecutionContext context)
          Creates the queue view.
 java.lang.Object createStatus(ExecutionContext context)
          Creates the status.
 java.lang.Object createTypeView(ExecutionContext context)
          Creates the type view.
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 ExecutionContext getRow(int row)
          Gets the row.
 int getRowCount()
           
 java.util.Vector<ExecutionContext> getRows()
          Gets the rows.
 java.lang.Object getValueAt(int row, int col)
           
 void updateRow(ExecutionContext context)
          Update row.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

protected java.lang.String[] columnNames
The column names.


columnClasses

protected java.lang.Class[] columnClasses
The column classes.


rows

public java.util.Vector<ExecutionContext> rows
The rows.

Constructor Detail

ProcessManagerTable.ProcessTableModel

public ProcessManagerTable.ProcessTableModel()
Instantiates a new process table model.

Method Detail

createCpuTime

public ProcessManagerTable.TimeStampWrapper createCpuTime(ExecutionContext context)
Creates the cpu time.

Parameters:
context - the context
Returns:
the object

createMemory

public ProcessManagerTable.MemoryStampWrapper createMemory(ExecutionContext context)
Creates the memory.

Parameters:
context - the context
Returns:
the object

createPipeView

public java.lang.Object createPipeView(ExecutionContext context)
Creates the pipe view.

Parameters:
context - the context
Returns:
the object

createProcessView

public java.lang.Object createProcessView(ExecutionContext context)
Creates the process view.

Parameters:
context - the context
Returns:
the object

createProgress

public java.lang.Object createProgress(ExecutionContext context)
Creates the progress.

Parameters:
context - the context
Returns:
the object

createQueueView

public java.lang.Object createQueueView(ExecutionContext context)
Creates the queue view.

Parameters:
context - the context
Returns:
the object

createStatus

public java.lang.Object createStatus(ExecutionContext context)
Creates the status.

Parameters:
context - the context
Returns:
the object

createTypeView

public java.lang.Object createTypeView(ExecutionContext context)
Creates the type view.

Parameters:
context - the context
Returns:
the object

getColumnClass

public java.lang.Class getColumnClass(int c)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int col)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getRow

public ExecutionContext getRow(int row)
Gets the row.

Parameters:
row - the row
Returns:
the row

getRowCount

public int getRowCount()

getRows

public java.util.Vector<ExecutionContext> getRows()
Gets the rows.

Returns:
the rows

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)

updateRow

public void updateRow(ExecutionContext context)
Update row.

Parameters:
context - the context