public class EvaluationGraphNode
extends java.lang.Object
| Constructor and Description |
|---|
EvaluationGraphNode(EvaluationGraph evaluationGraph)
Instantiates a new evaluation graph node that only can be used as
temporary node for actions within the visualisation !!!.
|
EvaluationGraphNode(OptionModelController optionModelController,
EvaluationGraph evaluationGraph,
TechnicalSystemState technicalSystemState)
Instantiates a new evaluation graph node.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addOutgoingEdge(EvaluationGraphEdge outgoingEdge)
Adds the specified outgoing edge.
|
EvaluationGraph |
getEvaluationGraph()
Gets the evaluation graph.
|
int |
getGraphNodeKey()
Returns the graph node key that allow its unique identification
depending on the
EvaluationGraph.IntendedUse. |
java.util.concurrent.ConcurrentHashMap<java.lang.Integer,EvaluationGraphEdge> |
getHashMapOfOutgoingEdges()
Returns the HashMap of outgoing edges.
|
EvaluationGraph.IntendedUse |
getIntendedUse()
Returns the intended use of this GraphNode.
|
java.util.Collection<EvaluationGraphEdge> |
getOutgoingEdges()
Gets the outgoing edges.
|
java.awt.geom.Point2D |
getPosition()
Returns the position.
|
StateEvaluator |
getStateEvaluator()
Returns the
StateEvaluator. - Use case EvaluationGraph.IntendedUse.StateVariability. |
TechnicalSystemState |
getTechnicalSystemState()
Returns the TechnicalSystemState that describes the current node.
|
boolean |
isLockNode()
Checks if is node is locked .
|
boolean |
setLockNode(boolean doLockNode,
java.lang.Thread lockOwner)
Sets the node locked or unlocked.
|
void |
setPosition(java.awt.geom.Point2D point2d)
Sets the position of this GraphNode.
|
void |
setStateEvaluator(StateEvaluator newStateEvaluator)
Sets the
StateEvaluator for this GraphNode. - Use case EvaluationGraph.IntendedUse.StateVariability. |
void |
setTechnicalSystemState(TechnicalSystemState technicalSystemState)
Sets the TechnicalSystemState that describes the current node.
|
public EvaluationGraphNode(EvaluationGraph evaluationGraph)
evaluationGraph - the current EvaluationGraphpublic EvaluationGraphNode(OptionModelController optionModelController, EvaluationGraph evaluationGraph, TechnicalSystemState technicalSystemState)
optionModelController - the option model controllerevaluationGraph - the evaluation graphtechnicalSystemState - the technical system statepublic EvaluationGraph getEvaluationGraph()
public EvaluationGraph.IntendedUse getIntendedUse()
public void setTechnicalSystemState(TechnicalSystemState technicalSystemState)
EvaluationGraph.IntendedUse.StateVariability, the StateEvaluator
will be created and set.technicalSystemState - the new TechnicalSystemStatepublic TechnicalSystemState getTechnicalSystemState()
public int getGraphNodeKey()
EvaluationGraph.IntendedUse.public void setStateEvaluator(StateEvaluator newStateEvaluator)
StateEvaluator for this GraphNode. - Use case EvaluationGraph.IntendedUse.StateVariability.newStateEvaluator - the new StateEvaluatorpublic StateEvaluator getStateEvaluator()
StateEvaluator. - Use case EvaluationGraph.IntendedUse.StateVariability.public boolean isLockNode()
public boolean setLockNode(boolean doLockNode,
java.lang.Thread lockOwner)
doLockNode - the new lock node statelockOwner - the lock ownerpublic java.util.concurrent.ConcurrentHashMap<java.lang.Integer,EvaluationGraphEdge> getHashMapOfOutgoingEdges()
public void addOutgoingEdge(EvaluationGraphEdge outgoingEdge)
outgoingEdge - the outgoing edgepublic java.util.Collection<EvaluationGraphEdge> getOutgoingEdges()
public void setPosition(java.awt.geom.Point2D point2d)
point2d - the position to setpublic java.awt.geom.Point2D getPosition()