i3.dragos.gm.core.id
Class RelationID

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

public class RelationID
extends GraphEntityID

A RelationID is used to uniquely identify a relation.

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
RelationID(DataSourceURL dataSourceURL, java.io.Serializable internalIdentifier, RelationClassID type)
          Constructs a new ID representing a relation.
 
Method Summary
 Relation getRelation()
          Returns the relation referenced by this ID.
 RelationClassID getRelationClassID()
          Returns the relation's type.
 
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

RelationID

public RelationID(DataSourceURL dataSourceURL,
                  java.io.Serializable internalIdentifier,
                  RelationClassID type)
Constructs a new ID representing a relation.

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

getRelation

public Relation getRelation()
                     throws DragosException
Returns the relation referenced by this ID.

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

getRelationClassID

public RelationClassID getRelationClassID()
Returns the relation's type.

Returns:
the relation's type.


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