Package edu.umd.cs.findbugs.plan
Class ConstraintEdge
java.lang.Object
edu.umd.cs.findbugs.graph.AbstractEdge<ConstraintEdge,DetectorNode>
edu.umd.cs.findbugs.plan.ConstraintEdge
- All Implemented Interfaces:
GraphEdge<ConstraintEdge,
,DetectorNode> Comparable<ConstraintEdge>
Edge in a ConstraintGraph. Edges flow from earlier detectors to later
detectors.
- Author:
- David Hovemeyer
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Determine whether or not this ConstraintEdge resulted from an ordering constraint having a single detector as its source (earlier detector).void
setConstraint
(DetectorOrderingConstraint constraint) Set the DetectorOrderingConstraint that created this edge.
-
Constructor Details
-
ConstraintEdge
Constructor.- Parameters:
source
- the source vertex (earlier Detector)target
- the target vertex (later Detector)
-
-
Method Details
-
setConstraint
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 (earlier 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)
-