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.


Variable Index

 o ADD
 o AVG
 o DIV
 o MAX
 o MIN
 o MLT
 o POW
 o SUB

Constructor Index

 o 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.

Method Index

 o addCriteria(ChannelReference, float)
Used to add a Criteria.
 o getChannel(ChannelContainer)
Constructs an SFFloatChannel whose value is a rating of the ChannelContainer argument, and
 o rate(ChannelContainer)

Variables

 o ADD
 public static final int ADD
 o SUB
 public static final int SUB
 o MLT
 public static final int MLT
 o DIV
 public static final int DIV
 o MIN
 public static final int MIN
 o MAX
 public static final int MAX
 o AVG
 public static final int AVG
 o POW
 public static final int POW

Constructors

 o 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.

Methods

 o getChannel
 public Channel getChannel(ChannelContainer p)
Constructs an SFFloatChannel whose value is a rating of the ChannelContainer argument, and @return it as an Channel

 o addCriteria
 public void addCriteria(ChannelReference p,
                         float infl)
Used to add a Criteria.

 o 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