|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.MemGraph
nz.ac.waikato.mcennis.rat.graph.Tree
public class Tree
Class for describing a tree. Does not enforce acyclic condition. Subclass
of MemGraph with MemGraph indexing.
FIXME: Serialization not implemented - needs its own parser and output function.
| Field Summary |
|---|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Constructor Summary | |
|---|---|
Tree()
|
|
| Method Summary | |
|---|---|
void |
addRoot(Actor a)
Add a root to the list of roots of this tree (forest) |
java.util.Collection<Actor> |
getRoots()
Lists all the roots of this acyclic graph. |
void |
remove(Actor a)
Identifies the given user and removes it and all links involving it from the graph. |
| Methods inherited from class nz.ac.waikato.mcennis.rat.graph.MemGraph |
|---|
add, add, add, add, add, addChild, anonymize, close, commit, escapeXML, getActor, getActor, getActor, getActorCount, getActorIterator, getActorTypes, getChildren, getChildren, getGraphs, getID, getLink, getLink, getLink, getLinkByDestination, getLinkByDestination, getLinkBySource, getLinkBySource, getLinkTypes, getParameters, getParent, getPathSet, getPathSet, getProperty, getProperty, getSubGraph, getSubGraph, init, outputXML, remove, setID, setSubGraph, setWriter |
| Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
addListener, fireChange |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Constructor Detail |
|---|
public Tree()
| Method Detail |
|---|
public java.util.Collection<Actor> getRoots()
public void addRoot(Actor a)
a - root actor to be addedpublic void remove(Actor a)
Graph
remove in interface Graphremove in class MemGrapha - user to be removed from the graph.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||