zeus.generator.agent
Class StrategyModel

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byzeus.generator.agent.StrategyModel
All Implemented Interfaces:
javax.swing.event.ChangeListener, java.util.EventListener, java.io.Serializable, javax.swing.table.TableModel

public class StrategyModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.event.ChangeListener

See Also:
Serialized Form

Field Summary
(package private) static int AGENTS
           
(package private) static java.lang.String[] ALL
           
protected  AttributeModel attributeModel
           
protected  javax.swing.event.EventListenerList changeListeners
           
protected  java.lang.String[] columnNames
           
(package private) static int count
           
protected  java.util.Vector data
           
(package private) static int FACT
           
protected  GeneratorModel genmodel
           
(package private) static java.util.Vector INITIATOR_STRATEGY_LIST
           
(package private) static int MODE
           
(package private) static int NO_USE
           
protected  OntologyDb ontologyDb
           
(package private) static int PARAMETERS
           
protected  ProtocolInfo protocol
           
(package private) static int RELATIONS
           
(package private) static java.util.Vector RESPONDENT_STRATEGY_LIST
           
protected  int selectedRow
           
(package private) static int STRATEGY
           
(package private) static int TYPE
           
(package private) static int USE
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
StrategyModel(GeneratorModel genmodel, OntologyDb ontologyDb, AttributeModel attributeModel)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener x)
           
 void addNewRows(java.lang.String[] names)
           
 void addRows(Fact[] input)
           
protected  boolean contains(java.lang.String id)
           
protected  void fireChanged()
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int column)
           
 boolean isCellEditable(int row, int col)
           
 void removeChangeListener(javax.swing.event.ChangeListener x)
           
 void removeRows(int[] rows)
           
 void reset(ProtocolInfo input)
           
 void selectRow(int row)
           
 void setValueAt(java.lang.Object aValue, int row, int column)
           
 void stateChanged(javax.swing.event.ChangeEvent e)
           
 
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

MODE

static final int MODE
See Also:
Constant Field Values

TYPE

static final int TYPE
See Also:
Constant Field Values

AGENTS

static final int AGENTS
See Also:
Constant Field Values

RELATIONS

static final int RELATIONS
See Also:
Constant Field Values

STRATEGY

static final int STRATEGY
See Also:
Constant Field Values

PARAMETERS

static final int PARAMETERS
See Also:
Constant Field Values

FACT

static final int FACT
See Also:
Constant Field Values

USE

static final int USE
See Also:
Constant Field Values

NO_USE

static final int NO_USE
See Also:
Constant Field Values

ALL

static final java.lang.String[] ALL

count

static int count

INITIATOR_STRATEGY_LIST

static java.util.Vector INITIATOR_STRATEGY_LIST

RESPONDENT_STRATEGY_LIST

static java.util.Vector RESPONDENT_STRATEGY_LIST

changeListeners

protected javax.swing.event.EventListenerList changeListeners

columnNames

protected java.lang.String[] columnNames

data

protected java.util.Vector data

selectedRow

protected int selectedRow

attributeModel

protected AttributeModel attributeModel

ontologyDb

protected OntologyDb ontologyDb

protocol

protected ProtocolInfo protocol

genmodel

protected GeneratorModel genmodel
Constructor Detail

StrategyModel

public StrategyModel(GeneratorModel genmodel,
                     OntologyDb ontologyDb,
                     AttributeModel attributeModel)
Method Detail

reset

public void reset(ProtocolInfo input)

removeRows

public void removeRows(int[] rows)

selectRow

public void selectRow(int row)

addNewRows

public void addNewRows(java.lang.String[] names)

addRows

public void addRows(Fact[] input)

contains

protected boolean contains(java.lang.String id)

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

getColumnName

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

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Specified by:
isCellEditable in interface javax.swing.table.TableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt in interface javax.swing.table.TableModel

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener x)

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener x)

fireChanged

protected void fireChanged()


Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.