kaos.autonomy.situation
Class FailedActionContext

java.lang.Object
  extended by kaos.autonomy.situation.FailedActionContext

public class FailedActionContext
extends java.lang.Object


Field Summary
 java.lang.String[] actionAchievabilityStatusList
           
 int actionAchievabilityStatusNumber
           
 java.lang.String[] actionCapabilityStatusList
           
 int actionCapabilityStatusNumber
           
 java.lang.String[] adjustmentChoiceList
           
 int adjustmentChoiceNumber
           
 double[] adjustmentCost
           
 java.lang.String agentName
           
 double[] delegationCost
           
 java.lang.String failedAction
           
 boolean includeAdjustmentCostNode
           
 boolean includeDelegationCostNode
           
 boolean includeResourceNode
           
 boolean includeServiceNode
           
 double maxValue
           
 boolean nonRecoverableFailure
           
 boolean qualitativeRisk
           
 boolean quantitativeRisk
           
 java.lang.String[] resourceAndServiceStateList
           
 int resourceAndServiceStateNumber
           
 double[] resourceCost
           
 java.lang.String[] resourceList
           
 int resourceNumber
           
 java.lang.String[] resourceStatus
           
 double[] riskCost
           
 int riskLevelNumber
           
 double[] serviceCost
           
 java.lang.String[] serviceList
           
 int serviceNumber
           
 java.lang.String[] serviceStatus
           
 int valueLevelNumber
           
 
Constructor Summary
FailedActionContext()
           
 
Method Summary
 void addActionAchievabilityStatus(int index, java.lang.String actionAchievabilityStatus)
          set action achievability status choice
 void addActionCapabilityStatus(int index, java.lang.String actionCapabilityStatus)
          set action capability status choice
 void addAdjustmentChoice(int index, java.lang.String adjustmentChoice)
          set AA choice
 void addAdjustmentCostNode()
          add AA cost node into Netica net
 void addDelegationCostNode()
          add delegation cost node into Netica net
 void addResource(int index, java.lang.String resourceToAdd)
          add a resource to resource list
 void addResourceAndServiceState(int index, java.lang.String state)
          set resource/service state
 void addService(int index, java.lang.String serviceToAdd)
          add a serive to service list
 void setActionAchievabilityStatusNumber(int num)
          set action achievability status number
 void setActionCapabilityStatusNumber(int num)
          set action capability status number
 void setAdjustmentChoiceNumber(int num)
          set AA choice number
 void setAdjustmentCost(int index, double cost)
          set AA cost
 void setDelegationCost(int index, double cost)
          set delegation cost
 void setFailedAction(java.lang.String name, java.lang.String action)
          set agent name and action name for the current context
 void setMaxValue(double max)
          set max cost value
 void setResourceAndServiceStateNumber(int num)
          set the number of resource/service states
 void setResourceCost(int index, double costToSet)
          set the resource cost
 void setResourceNumber(int num)
          set the number of resources
 void setResourceStatus(int index, java.lang.String statusToSet)
          set the resource status
 void setRiskCost(int index, double cost)
          set the risk cost
 void setRiskLevelNumber(int num)
          set the number of risk levels
 void setRiskType(java.lang.String type)
          set the type of risks
 void setServiceCost(int index, double costToSet)
          set the service cost
 void setServiceNumber(int num)
          set the number of services
 void setServiceStatus(int index, java.lang.String statusToSet)
          set the service status
 void setValueLevelNumber(int num)
          set the number of cost levels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentName

public java.lang.String agentName

failedAction

public java.lang.String failedAction

maxValue

public double maxValue

adjustmentChoiceNumber

public int adjustmentChoiceNumber

adjustmentChoiceList

public java.lang.String[] adjustmentChoiceList

actionAchievabilityStatusNumber

public int actionAchievabilityStatusNumber

actionAchievabilityStatusList

public java.lang.String[] actionAchievabilityStatusList

actionCapabilityStatusNumber

public int actionCapabilityStatusNumber

actionCapabilityStatusList

public java.lang.String[] actionCapabilityStatusList

resourceAndServiceStateNumber

public int resourceAndServiceStateNumber

resourceAndServiceStateList

public java.lang.String[] resourceAndServiceStateList

includeResourceNode

public boolean includeResourceNode

resourceNumber

public int resourceNumber

resourceList

public java.lang.String[] resourceList

resourceStatus

public java.lang.String[] resourceStatus

resourceCost

public double[] resourceCost

includeServiceNode

public boolean includeServiceNode

serviceNumber

public int serviceNumber

serviceList

public java.lang.String[] serviceList

serviceStatus

public java.lang.String[] serviceStatus

serviceCost

public double[] serviceCost

quantitativeRisk

public boolean quantitativeRisk

qualitativeRisk

public boolean qualitativeRisk

riskCost

public double[] riskCost

valueLevelNumber

public int valueLevelNumber

riskLevelNumber

public int riskLevelNumber

delegationCost

public double[] delegationCost

adjustmentCost

public double[] adjustmentCost

includeDelegationCostNode

public boolean includeDelegationCostNode

includeAdjustmentCostNode

public boolean includeAdjustmentCostNode

nonRecoverableFailure

public boolean nonRecoverableFailure
Constructor Detail

FailedActionContext

public FailedActionContext()
Method Detail

setFailedAction

public void setFailedAction(java.lang.String name,
                            java.lang.String action)
set agent name and action name for the current context

Parameters:
name - Name of actor
action - Name of action

setAdjustmentChoiceNumber

public void setAdjustmentChoiceNumber(int num)
set AA choice number

Parameters:
num - Number of AA choices

addAdjustmentChoice

public void addAdjustmentChoice(int index,
                                java.lang.String adjustmentChoice)
set AA choice

Parameters:
index - Array index
adjustmentChoice - AA choices

setActionAchievabilityStatusNumber

public void setActionAchievabilityStatusNumber(int num)
set action achievability status number

Parameters:
num - Number of action status

addActionAchievabilityStatus

public void addActionAchievabilityStatus(int index,
                                         java.lang.String actionAchievabilityStatus)
set action achievability status choice

Parameters:
index - Array index
actionAchievabilityStatus - action status

setActionCapabilityStatusNumber

public void setActionCapabilityStatusNumber(int num)
set action capability status number

Parameters:
num - Number of action status

addActionCapabilityStatus

public void addActionCapabilityStatus(int index,
                                      java.lang.String actionCapabilityStatus)
set action capability status choice

Parameters:
index - Array index
actionCapabilityStatus - action status

setResourceAndServiceStateNumber

public void setResourceAndServiceStateNumber(int num)
set the number of resource/service states

Parameters:
num - Number of resource/service states

addResourceAndServiceState

public void addResourceAndServiceState(int index,
                                       java.lang.String state)
set resource/service state

Parameters:
index - Array index
adjustmentChoice - resource or service state

setResourceNumber

public void setResourceNumber(int num)
set the number of resources

Parameters:
num - Number of resources

addResource

public void addResource(int index,
                        java.lang.String resourceToAdd)
add a resource to resource list

Parameters:
index - Array index
resourceToAdd - Resource to be added into resource list

setResourceStatus

public void setResourceStatus(int index,
                              java.lang.String statusToSet)
set the resource status

Parameters:
index - Array index
resourceToAdd - Resource status to be set

setResourceCost

public void setResourceCost(int index,
                            double costToSet)
set the resource cost

Parameters:
index - Array index
resourceToAdd - Resource cost to be set

setServiceNumber

public void setServiceNumber(int num)
set the number of services

Parameters:
num - Number of services

addService

public void addService(int index,
                       java.lang.String serviceToAdd)
add a serive to service list

Parameters:
index - Array index
resourceToAdd - Service to be added into resource list

setServiceStatus

public void setServiceStatus(int index,
                             java.lang.String statusToSet)
set the service status

Parameters:
index - Array index
resourceToAdd - Service status to be set

setServiceCost

public void setServiceCost(int index,
                           double costToSet)
set the service cost

Parameters:
index - Array index
resourceToAdd - Service cost to be set

setRiskType

public void setRiskType(java.lang.String type)
set the type of risks

Parameters:
type - Risk type Qualitative risk can be handled as a special case of quantitative risk: E.g., 0 - high risk, 1 - low risk, etc.

setRiskCost

public void setRiskCost(int index,
                        double cost)
set the risk cost

Parameters:
index - Array index
resourceToAdd - Risk cost to be set

setMaxValue

public void setMaxValue(double max)
set max cost value

Parameters:
max - Max cost value

setValueLevelNumber

public void setValueLevelNumber(int num)
set the number of cost levels

Parameters:
num - Level numbers in discretization...

setRiskLevelNumber

public void setRiskLevelNumber(int num)
set the number of risk levels

Parameters:
num - Level numbers in discretization: this can be different from cost level numbers

addDelegationCostNode

public void addDelegationCostNode()
add delegation cost node into Netica net


addAdjustmentCostNode

public void addAdjustmentCostNode()
add AA cost node into Netica net


setDelegationCost

public void setDelegationCost(int index,
                              double cost)
set delegation cost

Parameters:
index - Array index
resourceToAdd - Risk cost to be set for each AA choice

setAdjustmentCost

public void setAdjustmentCost(int index,
                              double cost)
set AA cost

Parameters:
index - Array index
resourceToAdd - AA cost to be set for each AA choice