JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class DirectedEdge

java.lang.Object
  extended bygov.nasa.alsUtility.Mark
      extended bygov.nasa.javaGenes.graph.GraphElement
          extended bygov.nasa.javaGenes.graph.Edge
              extended bygov.nasa.javaGenes.graph.DirectedEdge
All Implemented Interfaces:
java.lang.Cloneable, Compatible, java.io.Serializable

public class DirectedEdge
extends Edge

See Also:
Serialized Form

Field Summary
 
Fields inherited from class gov.nasa.javaGenes.graph.Edge
vertices
 
Constructor Summary
DirectedEdge()
           
 
Method Summary
 DirectedVertex getInVertex()
           
 DirectedVertex getOutVertex()
           
 boolean isInVertex(Vertex vertex)
           
 boolean isOutVertex(Vertex vertex)
           
 void setDirectedVertices(DirectedVertex in, DirectedVertex out)
           
 void setInVertex(DirectedVertex vertex)
           
 void setOutVertex(DirectedVertex vertex)
           
 void setVertices(Vertex in, Vertex out)
          not implemented
 void stealVertices(Edge e)
          it is an error to call this
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.graph.Edge
canAcceptVerticesOf, clone, commonVertex, dissimilarEdgeCompatibleWithVertices, doesConnect, getTypeString, getVertex, isCompatible, isLegal, isSame, makeCompatibleWithVertices, otherVertex, removeVertices, replaceVertex, shallowCopyEdge
 
Methods inherited from class gov.nasa.alsUtility.Mark
getMark, isMarked, setMark
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DirectedEdge

public DirectedEdge()
Method Detail

setVertices

public void setVertices(Vertex in,
                        Vertex out)
not implemented

Overrides:
setVertices in class Edge

setDirectedVertices

public void setDirectedVertices(DirectedVertex in,
                                DirectedVertex out)

setInVertex

public void setInVertex(DirectedVertex vertex)

setOutVertex

public void setOutVertex(DirectedVertex vertex)

getInVertex

public DirectedVertex getInVertex()

getOutVertex

public DirectedVertex getOutVertex()

isInVertex

public boolean isInVertex(Vertex vertex)

isOutVertex

public boolean isOutVertex(Vertex vertex)

toString

public java.lang.String toString()
Overrides:
toString in class Edge

stealVertices

public void stealVertices(Edge e)
it is an error to call this

Overrides:
stealVertices in class Edge
Parameters:
e - will lose its vertices! Be careful using it after this call.

JavaGenes, NASA Ames. Written largely by Al Globus