public class Node extends Object
Constructor and Description |
---|
Node(String name,
int lineNumber,
NodeType type) |
Node(String name,
int lineNumber,
NodeType type,
Node parent) |
Modifier and Type | Method and Description |
---|---|
void |
addSuspiciousnessValue(String formulaName,
Double suspiciousnessValue) |
boolean |
equals(Object obj) |
Node |
getChild(String name) |
List<Node> |
getChildren() |
int |
getDepth() |
List<Node> |
getLeafNodes() |
int |
getLineNumber() |
String |
getName() |
String |
getNameWithLineNumber() |
NodeType |
getNodeType() |
int |
getNumberOfSuspiciousnessValues() |
Node |
getParent() |
String |
getShortName() |
Double |
getSuspiciousnessValue(String formulaName) |
Map<String,Double> |
getSuspiciousnessValues() |
boolean |
hasChildrenOfType(NodeType type) |
int |
hashCode() |
boolean |
hasSuspiciousnessValues() |
boolean |
isLeaf() |
boolean |
isRoot() |
void |
setName(String name) |
void |
setNodeType(NodeType type) |
void |
setParent(Node parent) |
String |
toString() |
public String getName()
public void setName(String name)
name
- public String getShortName()
public String getNameWithLineNumber()
public int getLineNumber()
public NodeType getNodeType()
public void setNodeType(NodeType type)
type
- public int getDepth()
public void setParent(Node parent)
parent
- public Node getParent()
public boolean isRoot()
public boolean hasChildrenOfType(NodeType type)
type
- public boolean isLeaf()
public void addSuspiciousnessValue(String formulaName, Double suspiciousnessValue)
formulaName
- suspiciousnessValue
- public boolean hasSuspiciousnessValues()
public Double getSuspiciousnessValue(String formulaName)
formulaName
- public int getNumberOfSuspiciousnessValues()
Copyright © 2010–2019 GZoltar. All rights reserved.