edu.mit.sketch.ddg
Class ConstraintGraphEdgeLabelled

java.lang.Object
  extended by edu.mit.sketch.ddg.ConstraintGraphEdge
      extended by edu.mit.sketch.ddg.ConstraintGraphEdgeLabelled
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class ConstraintGraphEdgeLabelled
extends ConstraintGraphEdge
implements java.io.Serializable

Represents a directed edge from one Primitive to another in the constraint graph. In addition to a regular constraint edge, stores the name of the constraint that it belongs to.

ConstraintGraphEdgeLabelled.java Created: Sat Nov 21 18:26:00 2001

Author:
Olya Veselova
See Also:
Serialized Form

Constructor Summary
ConstraintGraphEdgeLabelled(ConstraintGraphEdge edge, Constraint constraint)
          Constructs an edge from a given edge, given the name of the constraint
 
Method Summary
 java.lang.Object clone()
          Clone the edge
 Constraint constraint()
          Get the constraint
 java.lang.String constraintClass()
          Get the type of the constraint
 java.lang.String constraintName()
          Get the name of the constraint
 
Methods inherited from class edu.mit.sketch.ddg.ConstraintGraphEdge
confidence, endPrimitive, equals, print, relevance, setConfidence, setEndPrimitive, setRelevance, setStartPrimitive, startPrimitive
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintGraphEdgeLabelled

public ConstraintGraphEdgeLabelled(ConstraintGraphEdge edge,
                                   Constraint constraint)
Constructs an edge from a given edge, given the name of the constraint

Method Detail

constraintName

public java.lang.String constraintName()
Get the name of the constraint


constraintClass

public java.lang.String constraintClass()
Get the type of the constraint


constraint

public Constraint constraint()
Get the constraint


clone

public java.lang.Object clone()
Clone the edge

Overrides:
clone in class ConstraintGraphEdge