org.keridwen.modelling.monitoring.model
Class CategoryMonitoringNode

java.lang.Object
  extended by org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
      extended by org.jdesktop.swingx.treetable.DefaultMutableTreeTableNode
          extended by 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.


Field Summary
 
Fields inherited from class org.jdesktop.swingx.treetable.AbstractMutableTreeTableNode
allowsChildren, children, parent, userObject
 
Constructor Summary
CategoryMonitoringNode(String nodeName)
          /** Constructor of CategoryMonitoringNode.
 
Method Summary
 boolean addMonitoringNode(MonitoringNode monitoringNode)
          Add a MonitoringNode in this node.
 int compareTo(CategoryMonitoringNode categoryMonitoringNode)
           
 MonitoringModel getMonitoringModel()
           
 MonitoringNode getMonitoringNode(int index)
           
 String getNodeName()
           
 Iterator<MonitoringNode> iterator()
           
 MonitoringNode removeMonitoringNode(int index)
          Remove a MonitoringNode in this node.
 boolean removeMonitoringNode(MonitoringNode monitoringNode)
          Remove a MonitoringNode in this node.
 void setMonitoringModel(MonitoringModel monitoringModel)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CategoryMonitoringNode

public CategoryMonitoringNode(String nodeName)
/** Constructor of CategoryMonitoringNode.

Parameters:
nodeName - is the name of this node.
Method Detail

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.