net.xqhs.graphs.pattern
Class EdgeP

java.lang.Object
  extended by net.xqhs.graphs.representation.AbstractVisualizableGraphComponent
      extended by net.xqhs.graphs.graph.SimpleEdge
          extended by net.xqhs.graphs.pattern.EdgeP
All Implemented Interfaces:
Edge, GraphComponent, VisualizableGraphComponent

public class EdgeP
extends SimpleEdge

The EdgeP is an edge that is part of a GraphPattern and may be generic (used in graph matching to one or a series of more edges).

Currently, the generic aspect is not implemented. //FIXME Implement the generic aspect for edges.

Author:
Andrei Olaru

Field Summary
(package private)  boolean generic
          Indicates that the edge is generic.
 
Fields inherited from class net.xqhs.graphs.graph.SimpleEdge
from, label, to
 
Fields inherited from class net.xqhs.graphs.representation.AbstractVisualizableGraphComponent
representations
 
Constructor Summary
EdgeP(NodeP fromNode, NodeP toNode, java.lang.String edgeLabel)
          A constructor that replicates the one in SimpleEdge.
 
Method Summary
 boolean isGeneric()
           
 
Methods inherited from class net.xqhs.graphs.graph.SimpleEdge
getFrom, getLabel, getTo, toString, toStringShort, toStringShort
 
Methods inherited from class net.xqhs.graphs.representation.AbstractVisualizableGraphComponent
addRepresentation, getFirstRepresentationForRoot, getRepresentations, getRepresentationsForRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

generic

boolean generic
Indicates that the edge is generic.

Constructor Detail

EdgeP

public EdgeP(NodeP fromNode,
             NodeP toNode,
             java.lang.String edgeLabel)
A constructor that replicates the one in SimpleEdge.

Parameters:
fromNode - : the source Node; the edge is added to the node's outEdges list
toNode - : the destination Node; the edge is added to the node's inEdges list
edgeLabel - : the label of the edge
Method Detail

isGeneric

public boolean isGeneric()
Returns:
true if the edge is generic.