FindBugs™ 1.3.9

edu.umd.cs.findbugs.plan
Class ConstraintEdge

java.lang.Object
  extended by edu.umd.cs.findbugs.graph.AbstractEdge<ConstraintEdge,DetectorNode>
      extended by edu.umd.cs.findbugs.plan.ConstraintEdge
All Implemented Interfaces:
GraphEdge<ConstraintEdge,DetectorNode>, java.lang.Comparable<ConstraintEdge>

public class ConstraintEdge
extends AbstractEdge<ConstraintEdge,DetectorNode>

Edge in a ConstraintGraph. Edges flow from earlier detectors to later detectors.

Author:
David Hovemeyer
See Also:
ConstraintGraph, DetectorNode, ExecutionPlan

Constructor Summary
ConstraintEdge(DetectorNode source, DetectorNode target)
          Constructor.
 
Method Summary
 boolean isSingleSource()
          Determine whether or not this ConstraintEdge resulted from an ordering constraint having a single detector as its source (ealier detector).
 void setConstraint(DetectorOrderingConstraint constraint)
          Set the DetectorOrderingConstraint that created this edge.
 
Methods inherited from class edu.umd.cs.findbugs.graph.AbstractEdge
compareTo, equals, getLabel, getSource, getTarget, hashCode, setLabel
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintEdge

public ConstraintEdge(DetectorNode source,
                      DetectorNode target)
Constructor.

Parameters:
source - the source vertex (earlier Detector)
target - the target vertex (later Detector)
Method Detail

setConstraint

public void setConstraint(DetectorOrderingConstraint constraint)
Set the DetectorOrderingConstraint that created this edge.

Parameters:
constraint - the DetectorOrderingConstraint that created this edge

isSingleSource

public boolean isSingleSource()
Determine whether or not this ConstraintEdge resulted from an ordering constraint having a single detector as its source (ealier detector). Such constraints automatically enable the source (earlier) detector if the target (later) detector is enabled.

Returns:
true if this edge has a single detector as its source (earlier detector)

FindBugs™ 1.3.9

FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.