public class Hldd
extends java.lang.Object
Constructor and Description |
---|
Hldd()
Constructs a new HLDD.
|
Hldd(ru.ispras.fortress.expression.NodeVariable variable)
Constructs a new HLDD using the specified variable.
|
Hldd(ru.ispras.fortress.expression.NodeVariable variable,
java.util.Collection<HlddNode> nodes)
Constructs a new HLDD using the specified values.
|
Modifier and Type | Method and Description |
---|---|
void |
addNode(HlddNode node)
Adds the specified node to the diagram.
|
void |
addNodes(java.util.Collection<HlddNode> nodes)
Adds the collection of nodes to the diagram.
|
Hldd |
getCopy()
Returns a deep copy of the diagram using the specified associated variable.
|
java.util.Collection<HlddNode> |
getNodes()
Returns the diagram's nodes.
|
HlddNode |
getRootNode()
Returns the root node.
|
java.util.Collection<HlddNode> |
getTerminalNodes()
Returns the terminal nodes.
|
ru.ispras.fortress.expression.NodeVariable |
getVariable()
Returns the associated variable.
|
boolean |
isImmediateAssignment()
Shows whether the HLDD implements an immediate assignment.
|
void |
setImmediateAssignment(boolean isGuard)
Sets an immediate assignment property.
|
void |
setRootNode(HlddNode root)
Sets the root node.
|
void |
setVariable(ru.ispras.fortress.expression.NodeVariable variable)
Sets the associated variable.
|
public Hldd(ru.ispras.fortress.expression.NodeVariable variable)
variable
- - the specified variable.public Hldd(ru.ispras.fortress.expression.NodeVariable variable, java.util.Collection<HlddNode> nodes)
variable
- - the specified variable.nodes
- - the specified collection of nodes.public Hldd()
public void setRootNode(HlddNode root)
root
- - the specified node.public HlddNode getRootNode()
public void addNode(HlddNode node)
node
- - the specified node.public void addNodes(java.util.Collection<HlddNode> nodes)
nodes
- - the specified collection of nodes.public java.util.Collection<HlddNode> getNodes()
public java.util.Collection<HlddNode> getTerminalNodes()
public Hldd getCopy()
public ru.ispras.fortress.expression.NodeVariable getVariable()
public void setVariable(ru.ispras.fortress.expression.NodeVariable variable)
variable
- - the specified variable.public boolean isImmediateAssignment()
true
if the HLDD implements condition, false
otherwise.public void setImmediateAssignment(boolean isGuard)
isGuard
- - the specified value.