org.keridwen.modelling.monitoring.model
Interface MonitoringModel

All Superinterfaces:
Iterable<CategoryMonitoringNode>, TreeModel, org.jdesktop.swingx.treetable.TreeTableModel
All Known Implementing Classes:
AbstractMonitoringModel, DataMiningMonitoringModel, LiveMonitoringModel

public interface MonitoringModel
extends org.jdesktop.swingx.treetable.TreeTableModel, Iterable<CategoryMonitoringNode>

This interface is the model used to monitor simulation.


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 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.
 Map<URI,com.artenum.penelope.mesh.interfaces.Mesh> getMeshMap()
           
 List<MonitoringNode> getSelectedMonitoringNodes()
           
 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.
 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> nodes)
           
 
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
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

addChartViewerConfigurationListener

void addChartViewerConfigurationListener(ChartViewerConfigurationListener chartViewerConfigurationListener)
Add a ChartViewerConfigurationListener which listen the model. For example when a new CategoryMonitoringNode is added.

Parameters:
chartViewerConfigurationListener - the ChartViewerConfigurationListener which must be added.

addCategoryMonitoringNode

void addCategoryMonitoringNode(CategoryMonitoringNode currentNode)
Add a category node in the monitoring model.

Parameters:
currentNode - the CategoryMonitoringNode which must be added.

addModelListener

void addModelListener(MonitoringModelListener listener)
Add an object which listen the monitoring model.

Parameters:
listener - the MonitoringModelListener which must be added.

addVisualizerListener

void addVisualizerListener(Visualizer listener)
Add an object which listen the monitoring model.

Parameters:
listener - the Visualizer which must be added.

removeVisualizerListener

void removeVisualizerListener(Visualizer listener)
Remove an object which listen the monitoring model.

Parameters:
listener - the MonitoringModelListener which must be removed.

notifyNewMeasure

void notifyNewMeasure(int curveId,
                      double time,
                      double doubleValue,
                      String curveName,
                      MonitoringNode monitoringNode,
                      String xUnitName,
                      String yUnitName)
Notify all listeners, a new measure is done.

Parameters:
curveId - 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.

setSelectedNodes

void setSelectedNodes(List<MonitoringNode> nodes)
Parameters:
nodes - The selected MonitoringNodes.

getSelectedMonitoringNodes

List<MonitoringNode> getSelectedMonitoringNodes()
Returns:
The MonitoringNode selected.

exportAll

void exportAll()
Export all MonitoringNode contains in MonitoringModel.


getMeshMap

Map<URI,com.artenum.penelope.mesh.interfaces.Mesh> getMeshMap()

clearModel

void clearModel()
Clear the MonitoringModel. It will be empty after this method.


removeMonitoringNode

boolean removeMonitoringNode(MonitoringNode monitoringNode)
Remove a MonitoringNode stores in the MonitoringNode.

Parameters:
monitoringNode - the MonitoringNode which must be removed.
Returns:
true if the MonitoringNode is correctly removed, else return false.

addVisualizer

void addVisualizer(Visualizer visualizer)
Add the visualizer(which displays the curves, spectrograms, ...) to the current perspective.

Parameters:
visualizer - is the Visualizer which must be added.

notifyModelChanged

void notifyModelChanged()
Notify the model changed (add/removed node, ...).


notifyVisibilityChanged

void notifyVisibilityChanged(MonitoringNode monitoringNode,
                             boolean visibility)
Notify the visibility of a node has been changed.

Parameters:
monitoringNode - 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.

notifyNewCurveAdded

void notifyNewCurveAdded(MonitoringNode monitoringNode)
Notify a new curve has been added to the mode.

Parameters:
monitoringNode - the new MonitoringNode added.


Copyright © 2012-2013 Artenum. All Rights Reserved.