org.graffiti.graph
Class FastEdge

java.lang.Object
  extended by org.graffiti.attributes.AbstractAttributable
      extended by org.graffiti.graph.AbstractGraphElement
          extended by org.graffiti.graph.AbstractEdge
              extended by org.graffiti.graph.FastEdge
All Implemented Interfaces:
Attributable, Edge, GraphElement, MultiLinkable<FastEdge,org.graffiti.graph.FastEdge.End>

public class FastEdge
extends AbstractEdge
implements MultiLinkable<FastEdge,org.graffiti.graph.FastEdge.End>

Version:
$Revision: 5767 $ $Date: 2009-06-24 00:16:53 +0200 (Mi, 24 Jun 2009) $
Author:
forster

Field Summary
 
Fields inherited from interface org.graffiti.graph.Edge
DIRECTED, UNDIRECTED
 
Constructor Summary
FastEdge(Graph graph, FastNode source, FastNode target, boolean directed, CollectionAttribute coll)
           
 
Method Summary
 MultiLinkNode<FastEdge> getLinkNode(org.graffiti.graph.FastEdge.End incidency)
          Returns the link node corresponding to the list identified by the given link type.
 Node getSource()
          Returns the source of the current Edge.
 Node getTarget()
          Returns the target of the current Edge.
 boolean isDirected()
          Returns true, if the Edge is directed, false otherwise.
 void setLinkNode(org.graffiti.graph.FastEdge.End e, MultiLinkNode<FastEdge> l)
          Sets the link node corresponding to the list identified by the given link type.
 
Methods inherited from class org.graffiti.graph.AbstractEdge
reverse, setDirected, setSource, setTarget
 
Methods inherited from class org.graffiti.graph.AbstractGraphElement
getGraph, getListenerManager, remove, toString
 
Methods inherited from class org.graffiti.attributes.AbstractAttributable
addAttribute, addBoolean, addByte, addDouble, addFloat, addInteger, addLong, addShort, addString, changeBoolean, changeByte, changeDouble, changeFloat, changeInteger, changeLong, changeShort, changeString, containsAttribute, getAttribute, getAttributes, getBoolean, getByte, getDouble, getFloat, getInteger, getLong, getShort, getString, removeAttribute, setBoolean, setByte, setDouble, setFloat, setInteger, setLong, setShort, setString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.graffiti.graph.GraphElement
getGraph, remove
 
Methods inherited from interface org.graffiti.attributes.Attributable
addAttribute, addBoolean, addByte, addDouble, addFloat, addInteger, addLong, addShort, addString, changeBoolean, changeByte, changeDouble, changeFloat, changeInteger, changeLong, changeShort, changeString, containsAttribute, getAttribute, getAttributes, getBoolean, getByte, getDouble, getFloat, getInteger, getListenerManager, getLong, getShort, getString, removeAttribute, setBoolean, setByte, setDouble, setFloat, setInteger, setLong, setShort, setString
 

Constructor Detail

FastEdge

public FastEdge(Graph graph,
                FastNode source,
                FastNode target,
                boolean directed,
                CollectionAttribute coll)
Method Detail

getLinkNode

public MultiLinkNode<FastEdge> getLinkNode(org.graffiti.graph.FastEdge.End incidency)
Description copied from interface: MultiLinkable
Returns the link node corresponding to the list identified by the given link type.

Specified by:
getLinkNode in interface MultiLinkable<FastEdge,org.graffiti.graph.FastEdge.End>
Parameters:
incidency - Identification of the respective list.
Returns:
The corresponding link node.

getSource

public Node getSource()
Description copied from interface: Edge
Returns the source of the current Edge.

Specified by:
getSource in interface Edge
Returns:
the source of the current Edge.

getTarget

public Node getTarget()
Description copied from interface: Edge
Returns the target of the current Edge.

Specified by:
getTarget in interface Edge
Returns:
the target of the current Edge.

isDirected

public boolean isDirected()
Description copied from interface: Edge
Returns true, if the Edge is directed, false otherwise.

Specified by:
isDirected in interface Edge
Returns:
true, if the Edge is directed, false otherwise.

setLinkNode

public void setLinkNode(org.graffiti.graph.FastEdge.End e,
                        MultiLinkNode<FastEdge> l)
Description copied from interface: MultiLinkable
Sets the link node corresponding to the list identified by the given link type.

Specified by:
setLinkNode in interface MultiLinkable<FastEdge,org.graffiti.graph.FastEdge.End>
Parameters:
e - Identification of the respective list.
l - The corresponding link node.


Generated at 2012-05-30 11:00:14 PM CEST