org.keridwen.modelling.monitoring.model
Class CategoryMonitoringNode
java.lang.Object
org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
org.keridwen.modelling.monitoring.model.CategoryMonitoringNode
- All Implemented Interfaces:
- Comparable<CategoryMonitoringNode>, Iterable<MonitoringNode>, TreeNode, org.jdesktop.swingx.treetable.MutableTreeTableNode, org.jdesktop.swingx.treetable.TreeTableNode
public class CategoryMonitoringNode
- extends org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
- implements Iterable<MonitoringNode>, Comparable<CategoryMonitoringNode>
This class define the category of nodes in the AbstractMonitoringModel
. These nodes define categories of
instrument which monitor in real time the convergence parameters of the simulation.
Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode |
allowsChildren, children, parent, userObject |
Methods inherited from class org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode |
getColumnCount, getValueAt, isEditable, setValueAt |
Methods inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode |
add, children, createChildrenList, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, getUserObject, insert, isLeaf, remove, remove, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
CategoryMonitoringNode
public CategoryMonitoringNode(String nodeName)
- /** Constructor of
CategoryMonitoringNode
.
- Parameters:
nodeName
- is the name of this node.
addMonitoringNode
public boolean addMonitoringNode(MonitoringNode monitoringNode)
- Add a
MonitoringNode
in this node.
- Parameters:
monitoringNode
- is the MonitoringNode
which must be added.
- Returns:
removeMonitoringNode
public MonitoringNode removeMonitoringNode(int index)
- Remove a
MonitoringNode
in this node.
- Parameters:
index
- is the index of MonitoringNode
which must be removed.
- Returns:
removeMonitoringNode
public boolean removeMonitoringNode(MonitoringNode monitoringNode)
- Remove a
MonitoringNode
in this node.
- Parameters:
monitoringNode
- is the MonitoringNode
which must be removed.
- Returns:
getMonitoringModel
public MonitoringModel getMonitoringModel()
- Returns:
- the reference to the
MonitoringModel
which contains this CategoryMonitoringNode
.
getNodeName
public String getNodeName()
- Returns:
- The name of the node.
getMonitoringNode
public MonitoringNode getMonitoringNode(int index)
- Parameters:
index
- is the index of the MonitoringNode
stored in this CategoryMonitoringNode
.
- Returns:
- the
MonitoringNode
stored at the index gave in input.
setMonitoringModel
public void setMonitoringModel(MonitoringModel monitoringModel)
- Parameters:
monitoringModel
- is the AbstractMonitoringModel
which contains this CategoryMonitoringNode
.
iterator
public Iterator<MonitoringNode> iterator()
- Specified by:
iterator
in interface Iterable<MonitoringNode>
compareTo
public int compareTo(CategoryMonitoringNode categoryMonitoringNode)
- Specified by:
compareTo
in interface Comparable<CategoryMonitoringNode>
Copyright © 2012-2013 Artenum. All Rights Reserved.