edu.mit.sketch.system.constraints
Class AlignedCalculator
java.lang.Object
edu.mit.sketch.system.constraints.TwoItemCalculator
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlignedCalculator
public AlignedCalculator()
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: