i3.dragos.gm.core.id
Class RelationEndID

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

public class RelationEndID
extends GraphEntityID

A RelationEndID is used to uniquely identify a relation end.

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
RelationEndID(DataSourceURL dataSourceURL, java.io.Serializable internalIdentifier, RelationID relationID, RelationEndClassID typeID)
          Constructs a new ID representing a relation end.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks for equality with another object.
 RelationEnd getRelationEnd()
          Returns the relation end referenced by this ID.
 RelationEndClassID getRelationEndClassID()
          Returns the relation end's type.
 RelationID getRelationID()
          Returns the relation this relation end participates in.
 
Methods inherited from class i3.dragos.gm.core.id.GraphEntityID
getDataSourceURL, getGraphEntity, getGraphEntityClassID, getInternalIdentifier, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RelationEndID

public RelationEndID(DataSourceURL dataSourceURL,
                     java.io.Serializable internalIdentifier,
                     RelationID relationID,
                     RelationEndClassID typeID)
Constructs a new ID representing a relation end.

Parameters:
dataSourceURL - The DataSourceURL of the GraphPool containing this entity.
internalIdentifier - Internal RelationEnd ID.
relationID - GraphID of the "parent" relation.
typeID - TypeID of this RelationEnd's type.
Method Detail

getRelationEnd

public RelationEnd getRelationEnd()
                           throws DragosException
Returns the relation end referenced by this ID.

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

getRelationID

public RelationID getRelationID()
Returns the relation this relation end participates in.

Returns:
the relation this relation end participates in.

getRelationEndClassID

public RelationEndClassID getRelationEndClassID()
Returns the relation end's type.

Returns:
the relation end's type.

equals

public boolean equals(java.lang.Object o)
Checks for equality with another object.

This object is considered equal if all of the following conditions are met:

Subclasses and implementations might want to extend this list by adding assertions comparing additional or internal data (e.g. the type of the graph entity). However, equality must only be determined by the above rules, preferably by using super.equals(o), and any difference in the additional data for two equal IDs is an error.

Overrides:
equals in class GraphEntityID
Parameters:
o - The Object to compare to.
Returns:
true if o is equal according to above rules, false otherwise.


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