public class GraphTree extends Object implements Iterable<GraphTree>, Comparable<GraphTree>
Constructor and Description |
---|
GraphTree()
Constructor GraphTree
|
GraphTree(GraphLogEntry logEntry)
Constructor GraphTree
|
GraphTree(GraphLogEntry logEntry,
GraphTree subtree)
Constructor GraphTree
|
GraphTree(GraphLogEntry logEntry,
List<GraphTree> subtree)
Constructor GraphTree
|
GraphTree(String label)
Constructor GraphTree
|
GraphTree(String label,
GraphTree subtree)
Constructor GraphTree
|
Modifier and Type | Method and Description |
---|---|
GraphTree |
add(GraphLogEntry logEntry)
Method add
|
GraphTree |
add(GraphTree tree)
Method add
|
int |
compareTo(GraphTree o)
Method compareTo
|
GraphTree |
getChildAt(int index)
Method getChildAt
|
String |
getLabel()
Method getLabel
|
GraphLogEntry |
getLogEntry()
Method getLogEntry
|
int |
getNumberChildren()
Method getNumberChildren
|
boolean |
isLabel()
Method isLabel
|
boolean |
isLeaf()
Method isLeaf
|
Iterator<GraphTree> |
iterator()
Method iterator
|
void |
setLogEntry(GraphLogEntry logEntry)
Method setLogEntry
|
String |
toString()
Method toString
|
public GraphTree()
public GraphTree(GraphLogEntry logEntry)
logEntry
- public GraphTree(String label)
label
- public GraphTree(String label, GraphTree subtree)
label
- subtree
- public GraphTree(GraphLogEntry logEntry, GraphTree subtree)
logEntry
- subtree
- public GraphTree(GraphLogEntry logEntry, List<GraphTree> subtree)
logEntry
- subtree
- public void setLogEntry(GraphLogEntry logEntry)
logEntry
- public GraphTree add(GraphLogEntry logEntry)
logEntry
- public boolean isLeaf()
public boolean isLabel()
public int getNumberChildren()
public GraphTree getChildAt(int index)
index
- public String getLabel()
public GraphLogEntry getLogEntry()
public int compareTo(GraphTree o)
compareTo
in interface Comparable<GraphTree>
o
- Copyright © 2015 sd-svn. All rights reserved.