edu.mit.sketch.system.constraints
Class AcuteMeetCalculator
java.lang.Object
edu.mit.sketch.system.constraints.AcuteMeetCalculator
- All Implemented Interfaces:
- ConstraintCalculator
public class AcuteMeetCalculator
- extends java.lang.Object
- implements ConstraintCalculator
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AcuteMeetCalculator
public AcuteMeetCalculator()
getConstraintType
public BBItemType getConstraintType()
- 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
calculateValue
public java.lang.Integer calculateValue(Constraint c,
BBSketchItem item)
- Calculates the value of this constraint. For now it is a discrete value
with lower values being more likely. 0 is always most likely.
- Specified by:
calculateValue in interface ConstraintCalculator
calculateValue
public java.lang.Integer calculateValue(Constraint c,
java.util.List slots,
java.util.List items)
- Calc the value of this contraint using the slots and objects
to fill in any missing bindings.
- Specified by:
calculateValue in interface ConstraintCalculator
generateCPD
public CPDistribution generateCPD(Constraint c)
- Specified by:
generateCPD in interface ConstraintCalculator
isValid
public boolean isValid(BBItem item)
- Specified by:
isValid in interface ConstraintCalculator
isValid
public boolean isValid(BBItem item1,
BBItem item2)
- Specified by:
isValid in interface ConstraintCalculator
createItemConstraint
public ItemConstraint createItemConstraint(BBItem item1,
BBItem item2)
- Specified by:
createItemConstraint in interface ConstraintCalculator
createItemConstraint
public ItemConstraint createItemConstraint(BBItem item1)
- Specified by:
createItemConstraint in interface ConstraintCalculator
isTransitive
public boolean isTransitive()
- Specified by:
isTransitive in interface ConstraintCalculator