edu.mit.sketch.ddg
Class PropertyConstraint

java.lang.Object
  extended by edu.mit.sketch.ddg.Constraint
      extended by edu.mit.sketch.ddg.PropertyConstraint
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AspectRatioConstraint, OrientationConstraint

public abstract class PropertyConstraint
extends Constraint
implements java.io.Serializable

This class represents properties of lines, ellipses, and groups. All edge in the constraint graph are self-loops. The class is abstaract. The subclasses should implement different types of property constraints.

PropertyConstraint.java Created: Fri Oct 25 17:00:00 2002

Author:
Olya Veselova
See Also:
Serialized Form

Constructor Summary
PropertyConstraint()
           
 
Method Summary
abstract  java.lang.Object clone()
          Clone the constraint
abstract  java.lang.String name()
          Name of the constraint type.
abstract  boolean orientationInvariant()
          Returns true if the constraint is orinetation invariant
 
Methods inherited from class edu.mit.sketch.ddg.Constraint
constraintGraph, labelledEdgeList, mergeIn, print, removeLowConfidence, removeLowRelevance, renamePrimitives, sameAs, setConstraintGraph, subgraph
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyConstraint

public PropertyConstraint()
Method Detail

name

public abstract java.lang.String name()
Name of the constraint type. Should be a unique identifier of a constraint.

Specified by:
name in class Constraint

clone

public abstract java.lang.Object clone()
Clone the constraint

Specified by:
clone in class Constraint

orientationInvariant

public abstract boolean orientationInvariant()
Returns true if the constraint is orinetation invariant

Specified by:
orientationInvariant in class Constraint