public class Conductor_Matrix_Model extends AbstractTableModel implements TableModelListener
Each column of the matrix table is for a theater location. Each row is for a Conductor name. Each cell contains the number of Conductors having the row name operating on the theater location of the column name.
Modifier and Type | Class and Description |
---|---|
class |
Conductor_Matrix_Model.Count
A Count contains table cell Conductor processing state count values.
|
Modifier and Type | Field and Description |
---|---|
static String |
CONDUCTORS_COLUMN_NAME |
static int |
HALTED
Index for arrays of processing state information.
|
static int |
HALTED_STATE |
static String |
ID
Class identification name with source code version and date.
|
static int |
POLLING
Index for arrays of processing state information.
|
static int |
POLLING_STATE |
static int |
RUN_TO_WAIT_STATE |
static int |
RUNNING
Index for arrays of processing state information.
|
static int |
RUNNING_STATE |
static int |
TOTAL
Index for arrays of processing state information.
|
static String |
TOTALS_NAME |
static int |
UNKNOWN
Index for arrays of processing state information.
|
static int |
WAITING
Index for arrays of processing state information.
|
static int |
WAITING_STATE |
listenerList
Constructor and Description |
---|
Conductor_Matrix_Model(Conductor_Table_Model table_model) |
Modifier and Type | Method and Description |
---|---|
protected void |
Add_to(int column,
String theater_location,
int row,
String conductor_name,
int processing_state) |
protected Conductor_Matrix_Model |
Add(Message identity) |
int |
Column(Message identity)
Get the table column index for a Conductor identity.
|
Conductor_Matrix_Model.Count |
Count(int row,
int column) |
Conductor_Matrix_Model.Count |
Count(Message identity) |
int |
findColumn(String theater_location) |
int |
findRow(String conductor_name) |
Class |
getColumnClass(int column) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
Object |
getValueAt(int row,
int column) |
protected void |
Rebuild(Conductor_Table_Model model) |
protected void |
Removing(Message identity)
Adjust the model based on the removal of a Conductor identity.
|
int |
Row(Message identity)
Get the table row index for a Conductor identity.
|
void |
tableChanged(TableModelEvent event) |
int |
Total(int row,
int column) |
int |
Total(Message identity) |
int |
Total(String theater_location,
String conductor_name) |
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final String ID
public static final String CONDUCTORS_COLUMN_NAME
public static final String TOTALS_NAME
public static final int RUN_TO_WAIT_STATE
public static final int RUNNING_STATE
public static final int POLLING_STATE
public static final int WAITING_STATE
public static final int HALTED_STATE
public static final int RUNNING
public static final int POLLING
public static final int WAITING
public static final int HALTED
public static final int TOTAL
public static final int UNKNOWN
public Conductor_Matrix_Model(Conductor_Table_Model table_model)
public int findColumn(String theater_location)
findColumn
in class AbstractTableModel
public int findRow(String conductor_name)
public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public int getRowCount()
getRowCount
in interface TableModel
public Object getValueAt(int row, int column)
getValueAt
in interface TableModel
public int Column(Message identity)
Theater location
not present in this table.public int Row(Message identity)
Conductor name
not present in this table.public Conductor_Matrix_Model.Count Count(int row, int column)
public Conductor_Matrix_Model.Count Count(Message identity)
public int Total(int row, int column)
public int Total(Message identity)
protected Conductor_Matrix_Model Add(Message identity)
protected void Add_to(int column, String theater_location, int row, String conductor_name, int processing_state)
protected void Rebuild(Conductor_Table_Model model)
protected void Removing(Message identity)
If the identity can be associated with a table cell its
Count values are decremented
.
identity
- A Conductor identity Message.public void tableChanged(TableModelEvent event)
tableChanged
in interface TableModelListener