All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class improv.actor.behavior.FuzzyComparison
java.lang.Object
   |
   +----improv.event.ImprovObservable
           |
           +----improv.actor.behavior.ImprovProperty
                   |
                   +----improv.actor.behavior.FuzzyComparison
  -  public final class FuzzyComparison
  
-  extends ImprovProperty
  
-  implements PropertyReference
   
The Fuzzy Comparison represents a comparison between two property references which returns a value between 
0 and 1, based on how close the two values are to each other.  In addition to the two references a Curve
is supplied to specify how the returned value varies as the two referenced values diverge.
  
  -  
	FuzzyComparison(PropertyReference, PropertyReference, Curve)
   -  
 
  
  -  
	getProperty(PropertyContainer)
   -  
  
 -  
	rate(PropertyContainer)
   -  
 
  
FuzzyComparison
 public FuzzyComparison(PropertyReference p1,
                        PropertyReference p2,
                        Curve c)
  
getProperty
 public ImprovProperty getProperty(PropertyContainer propertyContainer)
  
    -  Parameters:
    
 -  propertyContainer - the thing being rated.
    
 -  Returns:
    
 -  an ImprovProperty (SFFloatProperty) whose value is the value of the comparison
    
 -  Overrides:
    
 -  getProperty in class ImprovProperty
  
 
 
rate
 public double rate(PropertyContainer p)
  
    -  Returns:
    
 -  the rating of the PropertyContainer
  
 
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index