All Packages Class Hierarchy This Package Previous Next Index
Class improv.actor.behavior.CombinedCriteria
java.lang.Object
|
+----improv.event.ImprovObservable
|
+----improv.actor.behavior.ImprovProperty
|
+----improv.actor.behavior.CombinedCriteria
- public final class CombinedCriteria
- extends ImprovProperty
- implements PropertyReference
The CombinedCriteria object is used in to combine the results of multiple criteria,
and control their respective influence over the final value.
-
ADD
-
-
AVG
-
-
DIV
-
-
MAX
-
-
MIN
-
-
MLT
-
-
POW
-
-
SUB
-
-
CombinedCriteria(String, PropertyReference[], float[], int)
- Constructs a CombinedCriteria Object given a name(when used as a property) an array of PropertyReferences, an array of
weights associated with the PropertyReferences and a composite type.
-
addCriteria(PropertyReference, float)
- Used to add a Criteria.
-
getProperty(PropertyContainer)
- Constructs an SFFloatProperty whose value is a rating of the PropertyContainer argument, and
-
rate(PropertyContainer)
-
ADD
public static final int ADD
SUB
public static final int SUB
MLT
public static final int MLT
DIV
public static final int DIV
MIN
public static final int MIN
MAX
public static final int MAX
AVG
public static final int AVG
POW
public static final int POW
CombinedCriteria
public CombinedCriteria(String s,
PropertyReference p[],
float weights[],
int type)
- Constructs a CombinedCriteria Object given a name(when used as a property) an array of PropertyReferences, an array of
weights associated with the PropertyReferences and a composite type.
getProperty
public ImprovProperty getProperty(PropertyContainer p)
- Constructs an SFFloatProperty whose value is a rating of the PropertyContainer argument, and @return it as
an ImprovProperty
- Overrides:
- getProperty in class ImprovProperty
addCriteria
public void addCriteria(PropertyReference p,
float infl)
- Used to add a Criteria.
rate
public double rate(PropertyContainer p)
- Returns:
- the rating of the PropertyContainer, based on the criteria.
All Packages Class Hierarchy This Package Previous Next Index