scratch.danyel.lazy
Class LazySparseVertex

java.lang.Object
  extended by edu.uci.ics.jung.utils.UserDataDelegate
      extended by edu.uci.ics.jung.graph.impl.AbstractElement
          extended by edu.uci.ics.jung.graph.impl.AbstractArchetypeVertex
              extended by edu.uci.ics.jung.graph.impl.AbstractSparseVertex
                  extended by edu.uci.ics.jung.graph.impl.SimpleSparseVertex
                      extended by edu.uci.ics.jung.graph.impl.SparseVertex
                          extended by scratch.danyel.lazy.LazySparseVertex
All Implemented Interfaces:
ArchetypeVertex, Element, Vertex, UserDataContainer, Cloneable

public class LazySparseVertex
extends SparseVertex
implements Vertex

Author:
danyelf

Nested Class Summary
 
Nested classes/interfaces inherited from interface edu.uci.ics.jung.utils.UserDataContainer
UserDataContainer.CopyAction
 
Field Summary
protected  String current_status
           
static String STATUS_COMPLETE
           
static String STATUS_NAME_KNOWN_BUT_EMPTY
           
static String STATUS_READ_BUT_NOT_NEIGHBORS
           
 
Fields inherited from class edu.uci.ics.jung.graph.impl.SimpleSparseVertex
mNeighborsToEdges, mPredsToInEdges, mSuccsToOutEdges
 
Fields inherited from class edu.uci.ics.jung.graph.impl.AbstractElement
id, m_Graph
 
Fields inherited from class edu.uci.ics.jung.utils.UserDataDelegate
factory, udc_delegate
 
Constructor Summary
LazySparseVertex(Object uniqueID, LazySparseVertexFactory lsvf)
           
 
Method Summary
protected  void addNeighbor_internal(Edge e, Vertex v)
          Adds the specified edge e and vertex v to the internal data structures of this vertex.
protected  Map getNeighborsToEdges()
          Returns a map from the successors of this vertex to its outgoing edges.
protected  Map getPredsToInEdges()
          Returns a map from the predecessors of this vertex to its incoming edges.
protected  Map getSuccsToOutEdges()
          Returns a map from the successors of this vertex to its outgoing edges.
 Object getUniqueID()
           
 void readVertexAnnotation()
           
 void readVertexData()
           
 
Methods inherited from class edu.uci.ics.jung.graph.impl.SparseVertex
findEdge, findEdgeSet, getEdges_internal, getInEdges, getOutEdges, removeNeighbor_internal
 
Methods inherited from class edu.uci.ics.jung.graph.impl.SimpleSparseVertex
getNeighbors_internal, getPredecessors, getSuccessors, inDegree, initialize, isDest, isPredecessorOf, isSource, isSuccessorOf, numPredecessors, numSuccessors, outDegree, setNeighborsToEdges, setPredsToInEdges, setSuccsToOutEdges
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractSparseVertex
copy, findEdge, findEdgeSet, toString
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractArchetypeVertex
degree, equals, getEqualVertex, getEquivalentVertex, getIncidentEdges, getIncidentElements, getNeighbors, isIncident, isNeighborOf, numNeighbors
 
Methods inherited from class edu.uci.ics.jung.graph.impl.AbstractElement
addGraph_internal, getGraph, hashCode, removeGraph_internal
 
Methods inherited from class edu.uci.ics.jung.utils.UserDataDelegate
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDataFactory, setUserDatum
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.uci.ics.jung.graph.Vertex
findEdge, findEdgeSet, getInEdges, getOutEdges, getPredecessors, getSuccessors, inDegree, isDest, isPredecessorOf, isSource, isSuccessorOf, numPredecessors, numSuccessors, outDegree
 
Methods inherited from interface edu.uci.ics.jung.graph.ArchetypeVertex
copy, degree, findEdge, findEdgeSet, getEqualVertex, getEquivalentVertex, getIncidentEdges, getNeighbors, isIncident, isNeighborOf, numNeighbors
 
Methods inherited from interface edu.uci.ics.jung.graph.Element
getGraph, getIncidentElements
 
Methods inherited from interface edu.uci.ics.jung.utils.UserDataContainer
addUserDatum, clone, containsUserDatumKey, getUserDatum, getUserDatumCopyAction, getUserDatumKeyIterator, importUserData, removeUserDatum, setUserDatum
 

Field Detail

STATUS_NAME_KNOWN_BUT_EMPTY

public static final String STATUS_NAME_KNOWN_BUT_EMPTY
See Also:
Constant Field Values

STATUS_READ_BUT_NOT_NEIGHBORS

public static final String STATUS_READ_BUT_NOT_NEIGHBORS
See Also:
Constant Field Values

STATUS_COMPLETE

public static final String STATUS_COMPLETE
See Also:
Constant Field Values

current_status

protected String current_status
Constructor Detail

LazySparseVertex

public LazySparseVertex(Object uniqueID,
                        LazySparseVertexFactory lsvf)
Method Detail

getNeighborsToEdges

protected Map getNeighborsToEdges()
Returns a map from the successors of this vertex to its outgoing edges. If this map has not yet been created, it creates it. This method should not be directly accessed by users.

Overrides:
getNeighborsToEdges in class SimpleSparseVertex

getSuccsToOutEdges

protected Map getSuccsToOutEdges()
Returns a map from the successors of this vertex to its outgoing edges. If this map has not yet been created, it creates it. This method should not be directly accessed by users.

Overrides:
getSuccsToOutEdges in class SimpleSparseVertex

getPredsToInEdges

protected Map getPredsToInEdges()
Description copied from class: SimpleSparseVertex
Returns a map from the predecessors of this vertex to its incoming edges. If this map has not yet been created, it creates it. This map should not be directly accessed by users.

Overrides:
getPredsToInEdges in class SimpleSparseVertex

readVertexAnnotation

public void readVertexAnnotation()

readVertexData

public void readVertexData()

addNeighbor_internal

protected void addNeighbor_internal(Edge e,
                                    Vertex v)
Description copied from class: AbstractSparseVertex
Adds the specified edge e and vertex v to the internal data structures of this vertex.

Overrides:
addNeighbor_internal in class SparseVertex
Parameters:
e - the new incident edge of this vertex
v - the new neighbor of this vertex
See Also:
AbstractSparseVertex.addNeighbor_internal(Edge, Vertex)

getUniqueID

public Object getUniqueID()
Returns:
Returns the uniqueID.