i3.dragos.gm.core.id
Class EdgeID

java.lang.Object
  extended by i3.dragos.gm.core.id.GraphEntityID
      extended by i3.dragos.gm.core.id.EdgeID
All Implemented Interfaces:
java.io.Serializable

public class EdgeID
extends GraphEntityID

EdgeID s uniquely identify edgeswithin a graph pool.

Author:
Boris Boehlen <boehlen@cs.rwth-aachen.de>, Thorsten Hermes <thermes@i3.informatik.rwth-aachen.de>
See Also:
Core Graph Model , Implementation Issues , Serialized Form

Constructor Summary
EdgeID(DataSourceURL dataSourceURL, java.io.Serializable internalIdentifier, EdgeClassID type)
          Constructs a new ID representing an edge.
 
Method Summary
 Edge getEdge()
          Returns the Edge referenced by this ID.
 EdgeClassID getEdgeClassID()
          Returns the type of the edge.
 
Methods inherited from class i3.dragos.gm.core.id.GraphEntityID
equals, getDataSourceURL, getGraphEntity, getGraphEntityClassID, getInternalIdentifier, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EdgeID

public EdgeID(DataSourceURL dataSourceURL,
              java.io.Serializable internalIdentifier,
              EdgeClassID type)
Constructs a new ID representing an edge.

Parameters:
dataSourceURL - The DataSourceURL where this edge is stored.
internalIdentifier - ID of the edge.
type - Edge's type.
Method Detail

getEdge

public Edge getEdge()
             throws DragosException
Returns the Edge referenced by this ID.

Returns:
The Edge referenced by this ID.
Throws:
DragosException - in case of internal errors.

getEdgeClassID

public EdgeClassID getEdgeClassID()
Returns the type of the edge.

Actually, this method is just a correctly typed wrapper for calling GraphEntityID.getGraphEntityClassID().

Returns:
the edge class ID.


Copyright © 2002-2008 RWTH Aachen, Department of Computer Science 3 (Software Engineering). All Rights Reserved.