kaos.autonomy.utility
Class UtilityComputation

java.lang.Object
  extended by kaos.autonomy.utility.UtilityComputation

public class UtilityComputation
extends java.lang.Object


Constructor Summary
UtilityComputation(Kaa k, KaaGUI g, KaaRepository kr)
           
 
Method Summary
 float costOfDecisionChoice(ActionInstanceDescription aid, java.lang.String policyType, java.lang.String decisionChoice)
          select the cost of a decision choice
 java.lang.String selectBestAction(ActionInstanceDescription aid, java.lang.String policyType)
          select the best AA choice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UtilityComputation

public UtilityComputation(Kaa k,
                          KaaGUI g,
                          KaaRepository kr)
Method Detail

costOfDecisionChoice

public float costOfDecisionChoice(ActionInstanceDescription aid,
                                  java.lang.String policyType,
                                  java.lang.String decisionChoice)
                           throws java.lang.Exception
select the cost of a decision choice

Parameters:
aid - Action Instance Description
Returns:
A string for the best AA choice
Throws:
java.lang.Exception

selectBestAction

public java.lang.String selectBestAction(ActionInstanceDescription aid,
                                         java.lang.String policyType)
                                  throws java.lang.Exception
select the best AA choice

Parameters:
aid - Action Instance Description
Returns:
A string for the best AA choice
Throws:
java.lang.Exception