com.ewasystems.data.nn
Class NNDataView

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--com.ewasystems.data.nn.NNDataView
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Direct Known Subclasses:
NeuralNetworkSubRowData, NNDataTable

public abstract class NNDataView
extends javax.swing.table.AbstractTableModel

Neural Network Data View

Description: Generic Neural Network Data Interface

Copyright: (c) 1998 - 2005

Company: EWA Systems

See Also:
Serialized Form

Constructor Summary
NNDataView()
           
 
Method Summary
 java.lang.Class getColumnClass(int colIndex)
          Gets the Specified Column Class
abstract  int getColumnCount()
          Gets the Table Column Count
abstract  java.lang.String getColumnName(int colIndex)
          Gets the Specified Column Name
abstract  double getDoubleAt(int rowIndex, int colIndex)
          Gets the Double Value at the Specified Row and Column Indices
abstract  int getRowCount()
          Gets the Table Row Count
abstract  java.lang.Object getValueAt(int rowIndex, int colIndex)
          Gets the Raw Object at the Specified Row and Column Indices
abstract  NNVector getVector(int rowIndex)
          Gets a Vector
abstract  boolean isCellEditable(int rowIndex, int colIndex)
          Returns if the Cell is Editable
abstract  void setDoubleAt(double value, int rowIndex, int colIndex)
          Sets the Double Value at the Specified Row and Column Indices
abstract  void setValueAt(java.lang.Object value, int rowIndex, int colIndex)
          Sets the Raw Object at the Specified Row and Column Indices
abstract  void setVector(int rowIndex, NNVector vector)
          Sets a Vector
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NNDataView

public NNDataView()
Method Detail

getVector

public abstract NNVector getVector(int rowIndex)
Gets a Vector
Parameters:
rowIndex - The Row Index of the Vector
Returns:
The Vector

setVector

public abstract void setVector(int rowIndex,
                               NNVector vector)
Sets a Vector
Parameters:
rowIndex - The Row Index of the Vector
vector - The Vector

getRowCount

public abstract int getRowCount()
Gets the Table Row Count
Overrides:
getRowCount in class javax.swing.table.AbstractTableModel
Returns:
int: The Row Count

getColumnCount

public abstract int getColumnCount()
Gets the Table Column Count
Overrides:
getColumnCount in class javax.swing.table.AbstractTableModel
Returns:
int: The Column Count

getColumnName

public abstract java.lang.String getColumnName(int colIndex)
Gets the Specified Column Name
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel
Parameters:
colIndex - The Column Index
Returns:
String: The Column Name

getColumnClass

public java.lang.Class getColumnClass(int colIndex)
Gets the Specified Column Class
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel
Parameters:
colIndex - The Column Index
Returns:
Class: The Column Class

isCellEditable

public abstract boolean isCellEditable(int rowIndex,
                                       int colIndex)
Returns if the Cell is Editable
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel
Parameters:
rowIndex - The Row Index
colIndex - The Column Index
Returns:
boolean: True if Editable

getValueAt

public abstract java.lang.Object getValueAt(int rowIndex,
                                            int colIndex)
Gets the Raw Object at the Specified Row and Column Indices
Overrides:
getValueAt in class javax.swing.table.AbstractTableModel
Parameters:
rowIndex - The Row Index
colIndex - The Col Index
Returns:
Object: The Object

setValueAt

public abstract void setValueAt(java.lang.Object value,
                                int rowIndex,
                                int colIndex)
Sets the Raw Object at the Specified Row and Column Indices
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel
Parameters:
value - The Object
rowIndex - The Row Index
colIndex - The Column Index

getDoubleAt

public abstract double getDoubleAt(int rowIndex,
                                   int colIndex)
Gets the Double Value at the Specified Row and Column Indices
Parameters:
rowIndex - The Row Index
colIndex - The Col Index
Returns:
double: The Double Value

setDoubleAt

public abstract void setDoubleAt(double value,
                                 int rowIndex,
                                 int colIndex)
Sets the Double Value at the Specified Row and Column Indices
Parameters:
double - The Double Value
rowIndex - The Row Index
colIndex - The Col Index