Class AiModelTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
uno.anahata.asi.swing.provider.AiModelTableModel
- All Implemented Interfaces:
Serializable, TableModel
A specialized
TableModel for rendering the technical
specification and capabilities of AI models.
This model translates AbstractModel entities into a tabular format,
exposing critical parameters like token limits, supported actions, and
sampling defaults (temperature, Top-P, etc.).
- Author:
- anahata
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String[]The ordered set of column headers reflecting model specifications.private final List<AbstractModel> The backing list of model entities.Fields inherited from class AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionAiModelTableModel(List<AbstractModel> models) Constructs a new ModelTableModel. -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnName(int column) getModelAt(int rowIndex) Gets the model at the specified row index.intgetValueAt(int rowIndex, int columnIndex) Methods inherited from class AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
columnNames
The ordered set of column headers reflecting model specifications. -
models
The backing list of model entities.
-
-
Constructor Details
-
AiModelTableModel
Constructs a new ModelTableModel.- Parameters:
models- The list of models to display.
-
-
Method Details
-
getModelAt
Gets the model at the specified row index.- Parameters:
rowIndex- The row index.- Returns:
- The AbstractModel, or null if the index is out of bounds.
-
getRowCount
public int getRowCount()Returns the total number of registered models in the registry.
-
getColumnCount
public int getColumnCount()Returns the number of technical parameters exposed by the model.
-
getColumnName
Provides the descriptive header for the technical parameter column.
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getValueAt
Extracts and formats specific technical attributes from the
AbstractModelentity based on the column index.
-

