public abstract class HlddNode
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
HlddNode.NodeType
Type of a node.
|
Modifier and Type | Method and Description |
---|---|
abstract HlddNode |
deepCopy()
Makes a deep copy of the node.
|
boolean |
equals(java.lang.Object object) |
int |
getLevel()
Returns the level of this node.
|
HlddNode |
getParent()
Returns the parent of the node.
|
HlddNode.NodeType |
getType()
Returns the type of the node.
|
int |
hashCode() |
boolean |
isCondition()
Indicates whether the node is a condition.
|
boolean |
isEdge()
Indicates whether the node is an edge.
|
abstract boolean |
isNonTerminal()
Indicates whether the node is non-terminal.
|
boolean |
isTerminal()
Indicates whether the node is terminal.
|
void |
setLevel(int level)
Sets the level of this node.
|
void |
setParent(HlddNode parent)
Sets the specified
HlddNode as the parent node. |
java.lang.String |
toString() |
public boolean isTerminal()
true
if the node is terminal, false
otherwise.public boolean isCondition()
true
if the node is a condition, false
otherwise.public boolean isEdge()
true
if the node is an edge, false
otherwise.public int getLevel()
public void setLevel(int level)
level
- - the specified level in the diagram.public HlddNode.NodeType getType()
HlddNode.NodeType
.public HlddNode getParent()
public void setParent(HlddNode parent)
HlddNode
as the parent node.parent
- - the specified parent node.public abstract boolean isNonTerminal()
true
if the node is non-terminal, false
otherwise.public abstract HlddNode deepCopy()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object