vitro.graph
Class Node

java.lang.Object
  extended by vitro.graph.Node

public abstract class Node
extends Object


Field Summary
 Set<Actor> actors
           
 Set<Edge> edges
           
protected  Set<Actor> internalActors
           
protected  Set<Edge> internalEdges
           
protected  Graph model
           
 
Constructor Summary
Node(Set<Edge> edges, Set<Actor> actors, boolean modifiable, Graph model)
           
Node(Set<Edge> edges, Set<Actor> actors, Graph model)
           
 
Method Summary
 Graph model()
           
 List<Edge> path(Actor goal)
           
 List<Edge> path(Node destination)
           
 List<Node> pathNodes(Node destination)
           
 Set<Node> reachable()
           
 Set<Node> reachable(int depth)
           
 Set<Actor> reachableActors()
           
 Set<Actor> reachableActors(int depth)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

edges

public final Set<Edge> edges

actors

public final Set<Actor> actors

internalEdges

protected final Set<Edge> internalEdges

internalActors

protected final Set<Actor> internalActors

model

protected final Graph model
Constructor Detail

Node

public Node(Set<Edge> edges,
            Set<Actor> actors,
            boolean modifiable,
            Graph model)

Node

public Node(Set<Edge> edges,
            Set<Actor> actors,
            Graph model)
Method Detail

model

public Graph model()

path

public List<Edge> path(Node destination)

path

public List<Edge> path(Actor goal)

pathNodes

public List<Node> pathNodes(Node destination)

reachable

public Set<Node> reachable()

reachable

public Set<Node> reachable(int depth)

reachableActors

public Set<Actor> reachableActors()

reachableActors

public Set<Actor> reachableActors(int depth)

toString

public String toString()
Overrides:
toString in class Object