JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.graph
Class DirectedVertex

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

public class DirectedVertex
extends Vertex

See Also:
Serialized Form

Field Summary
protected  ExtendedVector inputEdges
           
protected  ExtendedVector outputEdges
           
 
Fields inherited from class gov.nasa.javaGenes.graph.Vertex
edges, extendedTypeCache, number, xyz
 
Constructor Summary
DirectedVertex()
           
 
Method Summary
 void add(Edge edge)
          not implemented
 void addInputEdge(DirectedEdge edge)
           
 void addOutputEdge(DirectedEdge edge)
           
 boolean canAcceptEdge()
           
 boolean canAcceptEdge(Edge e)
          if an error to call this
 boolean canAcceptInputEdge()
           
 boolean canAcceptOutputEdge()
           
 java.lang.Object clone()
          restore from checkpoint file
 DirectedEdge getInputEdge(int i)
           
 EdgeIterator getInputEdgeIterator()
           
 DirectedEdge getOutputEdge(int i)
           
 EdgeIterator getOutputEdgeIterator()
           
 boolean hasInputEdgeFrom(DirectedVertex vertex)
           
 boolean hasInputEdges()
           
 boolean hasOutputEdges()
           
 boolean hasOutputEdgeTo(DirectedVertex vertex)
           
 void removeEdge(Edge edge)
           
 void stealEdges(Vertex v)
          if an error to call this
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.graph.Vertex
canAcceptEdgesOf, getAngleBetween, getDistanceTo, getEdge, getEdgeIterator, getExtendedTypeObject, getExtendedTypeString, getLocationVector, getNumber, getTypeString, getXyz, hasEdgeTo, isSame, moveInsideInterval, scaleBy, setNumber, setXyz, setXyz, shallowCopyVertex, stateChange, translate, walkAll, walkVertices
 
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
 

Field Detail

inputEdges

protected ExtendedVector inputEdges

outputEdges

protected ExtendedVector outputEdges
Constructor Detail

DirectedVertex

public DirectedVertex()
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
restore from checkpoint file

Overrides:
clone in class Vertex
Throws:
java.lang.CloneNotSupportedException

getInputEdge

public DirectedEdge getInputEdge(int i)

getOutputEdge

public DirectedEdge getOutputEdge(int i)

add

public void add(Edge edge)
not implemented

Overrides:
add in class Vertex

addInputEdge

public void addInputEdge(DirectedEdge edge)

addOutputEdge

public void addOutputEdge(DirectedEdge edge)

removeEdge

public void removeEdge(Edge edge)
Overrides:
removeEdge in class Vertex

hasOutputEdgeTo

public boolean hasOutputEdgeTo(DirectedVertex vertex)

hasInputEdgeFrom

public boolean hasInputEdgeFrom(DirectedVertex vertex)

hasOutputEdges

public boolean hasOutputEdges()

hasInputEdges

public boolean hasInputEdges()

getInputEdgeIterator

public EdgeIterator getInputEdgeIterator()

getOutputEdgeIterator

public EdgeIterator getOutputEdgeIterator()

stealEdges

public void stealEdges(Vertex v)
if an error to call this

Overrides:
stealEdges in class Vertex

canAcceptEdge

public boolean canAcceptEdge()
Overrides:
canAcceptEdge in class Vertex
Returns:
true if another edge can be added

canAcceptEdge

public boolean canAcceptEdge(Edge e)
if an error to call this

Overrides:
canAcceptEdge in class Vertex
Returns:
true. Subclasses should return true if Edge e can be added

canAcceptInputEdge

public boolean canAcceptInputEdge()

canAcceptOutputEdge

public boolean canAcceptOutputEdge()

toString

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

JavaGenes, NASA Ames. Written largely by Al Globus