kaos.autonomy.utility
Class UtilityComputation

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

public class UtilityComputation
extends java.lang.Object


Constructor Summary
UtilityComputation(KaaGUI g)
           
 
Method Summary
 void createInfluenceDiagram(Net net, FailedActionContext tempContext, int decisionCount)
          create decision networks
 java.lang.String selectBestAction(int decisionCount, FailedActionContext tempContext)
          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(KaaGUI g)
Method Detail

createInfluenceDiagram

public void createInfluenceDiagram(Net net,
                                   FailedActionContext tempContext,
                                   int decisionCount)
create decision networks

Parameters:
net - Bayesian network
tempContext - Current context of a failed action

selectBestAction

public java.lang.String selectBestAction(int decisionCount,
                                         FailedActionContext tempContext)
                                  throws java.lang.Exception
select the best AA choice

Parameters:
tempContext - Current context of a failed action
Returns:
A string for the best AA choice
Throws:
java.lang.Exception