edu.washington.cs.supple.render.utility
Class BooleanFactor

java.lang.Object
  extended byedu.washington.cs.supple.render.utility.Factor
      extended byedu.washington.cs.supple.render.utility.BooleanFactor
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class BooleanFactor
extends Factor

Author:
kgajos
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.washington.cs.supple.render.utility.Factor
applicableWidgetTypes, name, weight
 
Constructor Summary
BooleanFactor(java.lang.String name, FactorWeight weight, java.lang.Class widgetType)
           
BooleanFactor(java.lang.String name, FactorWeight weight, java.lang.Class[] widgetTypes)
           
 
Method Summary
 double getValue(SuppleType type, UiObject object, WidgetDescriptor descriptor)
          Returns the value of this factor
 
Methods inherited from class edu.washington.cs.supple.render.utility.Factor
clone, getName, getValue, getWeight, isApplcableType, isApplicable, isApplicable, isApplicable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanFactor

public BooleanFactor(java.lang.String name,
                     FactorWeight weight,
                     java.lang.Class widgetType)
Parameters:
name -
weight -
widgetType -

BooleanFactor

public BooleanFactor(java.lang.String name,
                     FactorWeight weight,
                     java.lang.Class[] widgetTypes)
Parameters:
name -
weight -
widgetTypes -
Method Detail

getValue

public double getValue(SuppleType type,
                       UiObject object,
                       WidgetDescriptor descriptor)
Description copied from class: Factor
Returns the value of this factor

Specified by:
getValue in class Factor
Parameters:
type - underlying supple type
object - underlying ui object
descriptor - descriptor of the widget to apply this factor to
Returns:
the value of this factor