|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.treetable.AbstractTreeTableModel
org.jdesktop.swingx.treetable.DefaultTreeTableModel
org.keridwen.modelling.monitoring.model.AbstractMonitoringModel
public abstract class AbstractMonitoringModel
This abstract class is the model used to monitor simulation in real time to know informations about convergence parameters.
| Field Summary |
|---|
| Fields inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel |
|---|
columnIdentifiers |
| Fields inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel |
|---|
modelSupport |
| Constructor Summary | |
|---|---|
AbstractMonitoringModel()
Constructor of AbstractMonitoringModel. |
|
| Method Summary | |
|---|---|
void |
addCategoryMonitoringNode(CategoryMonitoringNode currentNode)
Add a category node in the monitoring model. |
void |
addChartViewerConfigurationListener(ChartViewerConfigurationListener chartViewerConfigurationListener)
Add a ChartViewerConfigurationListener which listen the model. |
void |
addModelListener(MonitoringModelListener listener)
Add an object which listen the monitoring model. |
void |
addNewCurves(MonitoringNode monitoringNode,
String visualizerName,
String curveName,
String xUnitName,
String yUnitName,
String zUnitName,
String chartTitle,
String tabTitle)
Add a new curve to the MonitoringModelListeners stored in this AbstractMonitoringModel. |
void |
addVisualizer(Visualizer visualizer)
Add the visualizer(which displays the curves, spectrograms, ...) to the current perspective. |
void |
addVisualizerListener(Visualizer listener)
Add an object which listen the monitoring model. |
void |
clearModel()
Clear the MonitoringModel. |
void |
exportAll()
Export all MonitoringNode contains in MonitoringModel. |
protected List<CategoryMonitoringNode> |
getCategoryMonitoringNodeList()
|
int |
getLastCurveId()
|
Map<URI,com.artenum.penelope.mesh.interfaces.Mesh> |
getMeshMap()
|
protected List<MonitoringModelListener> |
getMonitoringModelListenerList()
|
List<MonitoringNode> |
getSelectedMonitoringNodes()
|
protected List<Visualizer> |
getVisualizerListenerList()
|
Iterator<CategoryMonitoringNode> |
iterator()
|
void |
notifyLastMeasuresRemoved()
Notify the last measures recorded must be removed. |
void |
notifyMeasuresCleaned()
Re-initialize all measures considered like last measures. |
void |
notifyModelChanged()
Notify the model changed (add/removed node, ...). |
void |
notifyNewCurveAdded(MonitoringNode monitoringNode)
Notify a new curve has been added to the mode. |
void |
notifyNewMeasure(int curveId,
double time,
double doubleValue,
String curveName,
MonitoringNode monitoringNode,
String xUnitName,
String yUnitName)
Notify all listeners, a new measure is done. |
void |
notifyVisibilityChanged(MonitoringNode monitoringNode,
boolean visibility)
Notify the visibility of a node has been changed. |
void |
removeCategoryMonitoringNode(CategoryMonitoringNode categoryMonitoringNode)
|
boolean |
removeMonitoringNode(MonitoringNode monitoringNode)
Remove a MonitoringNode stores in the MonitoringNode. |
void |
removeVisualizerListener(Visualizer listener)
Remove an object which listen the monitoring model. |
void |
setSelectedNodes(List<MonitoringNode> node)
|
| Methods inherited from class org.jdesktop.swingx.treetable.DefaultTreeTableModel |
|---|
getChild, getChildCount, getColumnCount, getColumnName, getIndexOfChild, getPathToRoot, getRoot, getValueAt, insertNodeInto, isCellEditable, isLeaf, removeNodeFromParent, setColumnIdentifiers, setRoot, setUserObject, setValueAt, valueForPathChanged |
| Methods inherited from class org.jdesktop.swingx.treetable.AbstractTreeTableModel |
|---|
addTreeModelListener, getColumnClass, getHierarchicalColumn, getTreeModelListeners, removeTreeModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jdesktop.swingx.treetable.TreeTableModel |
|---|
getColumnClass, getColumnCount, getColumnName, getHierarchicalColumn, getValueAt, isCellEditable, setValueAt |
| Methods inherited from interface javax.swing.tree.TreeModel |
|---|
addTreeModelListener, getChild, getChildCount, getIndexOfChild, getRoot, isLeaf, removeTreeModelListener, valueForPathChanged |
| Constructor Detail |
|---|
public AbstractMonitoringModel()
AbstractMonitoringModel.
| Method Detail |
|---|
protected List<Visualizer> getVisualizerListenerList()
protected List<MonitoringModelListener> getMonitoringModelListenerList()
public Map<URI,com.artenum.penelope.mesh.interfaces.Mesh> getMeshMap()
getMeshMap in interface MonitoringModelpublic void addChartViewerConfigurationListener(ChartViewerConfigurationListener chartViewerConfigurationListener)
MonitoringModelChartViewerConfigurationListener which listen the model. For example when a new
CategoryMonitoringNode is added.
addChartViewerConfigurationListener in interface MonitoringModelchartViewerConfigurationListener - the ChartViewerConfigurationListener which must be added.public void addCategoryMonitoringNode(CategoryMonitoringNode currentNode)
MonitoringModel
addCategoryMonitoringNode in interface MonitoringModelcurrentNode - the CategoryMonitoringNode which must be added.public void addModelListener(MonitoringModelListener listener)
MonitoringModel
addModelListener in interface MonitoringModellistener - the MonitoringModelListener which must be added.public void addVisualizerListener(Visualizer listener)
MonitoringModel
addVisualizerListener in interface MonitoringModellistener - the Visualizer which must be added.public void removeVisualizerListener(Visualizer listener)
MonitoringModel
removeVisualizerListener in interface MonitoringModellistener - the MonitoringModelListener which must be removed.public Iterator<CategoryMonitoringNode> iterator()
iterator in interface Iterable<CategoryMonitoringNode>protected List<CategoryMonitoringNode> getCategoryMonitoringNodeList()
CategoryMonitoringNode stored in the AbstractMonitoringModel.
public void notifyNewMeasure(int curveId,
double time,
double doubleValue,
String curveName,
MonitoringNode monitoringNode,
String xUnitName,
String yUnitName)
MonitoringModel
notifyNewMeasure in interface MonitoringModelcurveId - the id of the curve plotted in the JFreeChart object.time - the new time measure done.doubleValue - the new valued computed associated to the time.curveName - the name of the curve.public void setSelectedNodes(List<MonitoringNode> node)
setSelectedNodes in interface MonitoringModelnode - The selected MonitoringNodes.public List<MonitoringNode> getSelectedMonitoringNodes()
getSelectedMonitoringNodes in interface MonitoringModelMonitoringNode selected.public void exportAll()
MonitoringModelMonitoringNode contains in MonitoringModel.
exportAll in interface MonitoringModelpublic void removeCategoryMonitoringNode(CategoryMonitoringNode categoryMonitoringNode)
public void clearModel()
MonitoringModelMonitoringModel. It will be empty after this method.
clearModel in interface MonitoringModelpublic boolean removeMonitoringNode(MonitoringNode monitoringNode)
MonitoringModelMonitoringNode stores in the MonitoringNode.
removeMonitoringNode in interface MonitoringModelmonitoringNode - the MonitoringNode which must be removed.
MonitoringNode is correctly removed, else return false.public void addVisualizer(Visualizer visualizer)
MonitoringModel
addVisualizer in interface MonitoringModelvisualizer - is the Visualizer which must be added.
public void addNewCurves(MonitoringNode monitoringNode,
String visualizerName,
String curveName,
String xUnitName,
String yUnitName,
String zUnitName,
String chartTitle,
String tabTitle)
MonitoringModelListeners stored in this AbstractMonitoringModel.
monitoringNode - the MonitoringNode which contains informations ( DataField ) used to create the new
curve.visualizerName - the name of the visualizer used to know where the new curves must be added.curveName - the name of the curve used to define the legend.xUnitName - the name of the x-axis of the new curve.yUnitName - the name of the y-axis of the new curve.zUnitName - the name of the z-axis of the new curve.tabTitle - the name of the tab where is strored this visualizer. It is used to know if you must add the new curve
in this visualizer or not.public int getLastCurveId()
public void notifyModelChanged()
MonitoringModel
notifyModelChanged in interface MonitoringModelpublic void notifyLastMeasuresRemoved()
public void notifyMeasuresCleaned()
public void notifyVisibilityChanged(MonitoringNode monitoringNode,
boolean visibility)
MonitoringModel
notifyVisibilityChanged in interface MonitoringModelmonitoringNode - the MonitoringNode which has the visibility changed.visibility - the new visibility of the MonitoringNode. True if the node must be visible, false if the node
must NOT be visible.public void notifyNewCurveAdded(MonitoringNode monitoringNode)
MonitoringModel
notifyNewCurveAdded in interface MonitoringModelmonitoringNode - the new MonitoringNode added.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||