public class CalculationStepNode<T>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
CalculationStepNode()
Instantiates a new temporary calculation step node.
|
|
CalculationStepNode(javax.swing.tree.DefaultMutableTreeNode groupTreeNode,
java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> inNodeStates,
T outNodeState)
Instantiates a new sequential network calculation step.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.tree.DefaultMutableTreeNode |
getGroupTreeNode()
Gets the group tree node.
|
GroupTreeNodeObject |
getGroupTreeNodeObject()
Gets the group tree node object.
|
java.lang.String |
getId()
Returns the id of this CalculationStepNode.
|
java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> |
getInNodeStates()
Returns the in-node state HashMap, where the key represents the group tree node and the value the actual instance of the intermediate data model.
|
T |
getOutNodeState()
Gets the out node state.
|
T |
getOutNodeState(AbstractGroupTreeAction groupTreeAction,
AbstractGroupEvaluationStrategy groupStrategy,
java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> newInNodeStates,
java.util.Vector<CalculationStepNode<T>> nextCalcStepNodes)
Calculates and return the out-node state based on the specified in-node states.
|
java.awt.geom.Point2D |
getPosition()
Gets the position within the visualisation.
|
void |
setGroupTreeNode(javax.swing.tree.DefaultMutableTreeNode groupTreeNode)
Sets the group tree node.
|
void |
setInNodeState(java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> inNodeStates)
Sets the in-node state HashMap, where the key represents the group tree node and the value the actual instance of the intermediate data model.
|
void |
setOutNodeState(T outNodeState)
Sets the out node state.
|
void |
setPosition(java.awt.geom.Point2D position)
Sets the position.
|
java.lang.String |
toString() |
protected CalculationStepNode()
public CalculationStepNode(javax.swing.tree.DefaultMutableTreeNode groupTreeNode, java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> inNodeStates, T outNodeState)
groupTreeNode
- the group tree node from the GroupTreeModel
inNodeStates
- the in-node statesoutNodeState
- the out-node statepublic javax.swing.tree.DefaultMutableTreeNode getGroupTreeNode()
public void setGroupTreeNode(javax.swing.tree.DefaultMutableTreeNode groupTreeNode)
groupTreeNode
- the new group tree nodepublic GroupTreeNodeObject getGroupTreeNodeObject()
public java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> getInNodeStates()
public void setInNodeState(java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> inNodeStates)
inNodeStates
- the inNodeStates to setpublic T getOutNodeState()
public void setOutNodeState(T outNodeState)
outNodeState
- the new out node statepublic T getOutNodeState(AbstractGroupTreeAction groupTreeAction, AbstractGroupEvaluationStrategy groupStrategy, java.util.HashMap<javax.swing.tree.DefaultMutableTreeNode,T> newInNodeStates, java.util.Vector<CalculationStepNode<T>> nextCalcStepNodes)
null
if the inNodeStates are null
or empty.
groupTreeAction
- the current group tree actiongroupStrategy
- the group strategynewInNodeStates
- the in node statesnextCalcStepNodes
- the Vector of next / subsequent CalculationStepNode
getInNodeStates()
,
getOutNodeState()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getId()
public java.awt.geom.Point2D getPosition()
public void setPosition(java.awt.geom.Point2D position)
position
- the new position