i3.dragos.gm.core
Interface Edge

All Superinterfaces:
ExistenceCheckable, GraphEntity, MetaAttributable
All Known Implementing Classes:
EdgeProxy

public interface Edge
extends GraphEntity

The Edge interface represents a simple binary relation. Edges may be directed or not.

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

Method Summary
 EdgeClass getEdgeClass()
          Returns the type of the edge.
 GraphEntity getSource()
          Returns the source graph element.
 GraphEntity getTarget()
          Returns the target graph element.
 boolean isDirected()
          Returns true if the edge is directed and false otherwise.
 void setSource(GraphEntity g)
          Sets the source graph element.
 void setTarget(GraphEntity g)
          Sets the target graph element.
 
Methods inherited from interface i3.dragos.gm.core.GraphEntity
equals, getAdjacentGraphEntities, getAdjacentRelations, getAdjacentRelations, getAllValidAttributeValues, getAttributeValue, getDataSourceURL, getEdges, getEdges, getGraphEntityClass, getInternalIdentifier, getParent, getRelationEnds, getRelationEnds, getRelationEnds, getWrappedGraphEntity, hashCode, isAttributeValid, isIncident, isIncident, putAttributeValue, setAttributeInvalid
 
Methods inherited from interface i3.dragos.gm.core.schema.MetaAttributable
getAllMetaAttributes, getMetaAttribute, isMetaAttributeKeyReserved, isMetaAttributeSet, setMetaAttribute, unsetMetaAttribute
 
Methods inherited from interface i3.dragos.gm.core.schema.ExistenceCheckable
checkExistence, checkExistenceOptional
 

Method Detail

getEdgeClass

EdgeClass getEdgeClass()
                       throws DragosException
Returns the type of the edge.

Actually, this method is just a correctly typed wrapper for calling GraphEntity.getGraphEntityClass().

Returns:
the edge class of the edge.
Throws:
DragosException - if something went wrong.

setSource

void setSource(GraphEntity g)
               throws EntityNotFoundException,
                      DragosException
Sets the source graph element.

Parameters:
g - the source graph element (may be null).
Throws:
EntityNotFoundException - if the source was not null and could not be found.
DragosException - if something went wrong.

getSource

GraphEntity getSource()
                      throws DragosException
Returns the source graph element.

Returns:
the source graph element.
Throws:
DragosException - if something went wrong.

setTarget

void setTarget(GraphEntity g)
               throws EntityNotFoundException,
                      DragosException
Sets the target graph element.

Parameters:
g - the target graph element (may be null).
Throws:
EntityNotFoundException - if the target was not null and could not be found.
DragosException - if something went wrong.

getTarget

GraphEntity getTarget()
                      throws DragosException
Returns the target graph element.

Returns:
the target graph element.
Throws:
DragosException - if something went wrong.

isDirected

boolean isDirected()
                   throws DragosException
Returns true if the edge is directed and false otherwise.

Returns:
true if the edge is directed and false otherwise.
Throws:
DragosException - if something went wrong.


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