All Packages Class Hierarchy This Package Previous Next Index
Class improv.actor.behavior.CombinedCriteria
java.lang.Object
|
+----improv.actor.behavior.CombinedCriteria
- public final class CombinedCriteria
- extends Object
- implements ChannelReference
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, ChannelReference[], float[], int)
- Constructs a CombinedCriteria Object given a name(when used as a channel) an array of ChannelReferences, an array of
weights associated with the ChannelReferences and a composite type.
-
addCriteria(ChannelReference, float)
- Used to add a Criteria.
-
getChannel(ChannelContainer)
- Constructs an SFFloatChannel whose value is a rating of the ChannelContainer argument, and
-
rate(ChannelContainer)
-
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,
ChannelReference p[],
float weights[],
int type)
- Constructs a CombinedCriteria Object given a name(when used as a channel) an array of ChannelReferences, an array of
weights associated with the ChannelReferences and a composite type.
getChannel
public Channel getChannel(ChannelContainer p)
- Constructs an SFFloatChannel whose value is a rating of the ChannelContainer argument, and @return it as
an Channel
addCriteria
public void addCriteria(ChannelReference p,
float infl)
- Used to add a Criteria.
rate
public double rate(ChannelContainer p)
- Returns:
- the rating of the ChannelContainer, based on the criteria.
All Packages Class Hierarchy This Package Previous Next Index