edu.mit.sketch.system.constraints
Class AlignedCalculator

java.lang.Object
  extended by edu.mit.sketch.system.constraints.TwoItemCalculator
      extended by edu.mit.sketch.system.constraints.AlignedCalculator
All Implemented Interfaces:
ConstraintCalculator

public class AlignedCalculator
extends TwoItemCalculator

Created: Fri Jul 26 10:36:01 2002
Copyright: Copyright (C) 2001 by MIT. All rights reserved.

Version:
$Id: AlignedCalculator.html,v 1.3 2007-11-25 20:52:42 bpaulson Exp $
Author:
christine alvarado

Constructor Summary
AlignedCalculator()
           
 
Method Summary
 java.lang.Integer calculate(BBSketchItem item1, BBSketchItem item2)
           
 CPDistribution generateCPD(Constraint c)
           
 BBItemType getConstraintType()
          What type of constraint does this EC know how to deal with? There can only be one EC per type of constraint.
 boolean isCacheable()
           
 boolean isTransitive()
           
 
Methods inherited from class edu.mit.sketch.system.constraints.TwoItemCalculator
calculateValue, calculateValue, createItemConstraint, createItemConstraint, isValid, isValid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlignedCalculator

public AlignedCalculator()
Method Detail

getConstraintType

public BBItemType getConstraintType()
Description copied from interface: ConstraintCalculator
What type of constraint does this EC know how to deal with? There can only be one EC per type of constraint.

Specified by:
getConstraintType in interface ConstraintCalculator
Specified by:
getConstraintType in class TwoItemCalculator
Returns:

isCacheable

public boolean isCacheable()
Specified by:
isCacheable in class TwoItemCalculator

isTransitive

public boolean isTransitive()
Specified by:
isTransitive in interface ConstraintCalculator
Specified by:
isTransitive in class TwoItemCalculator

calculate

public java.lang.Integer calculate(BBSketchItem item1,
                                   BBSketchItem item2)
Specified by:
calculate in class TwoItemCalculator

generateCPD

public CPDistribution generateCPD(Constraint c)
Specified by:
generateCPD in interface ConstraintCalculator
Specified by:
generateCPD in class TwoItemCalculator
Parameters:
c -
Returns: