|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.autonomy.situation.FailedActionContext
public class FailedActionContext
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 |
---|
public java.lang.String agentName
public java.lang.String failedAction
public double maxValue
public int adjustmentChoiceNumber
public java.lang.String[] adjustmentChoiceList
public int actionAchievabilityStatusNumber
public java.lang.String[] actionAchievabilityStatusList
public int actionCapabilityStatusNumber
public java.lang.String[] actionCapabilityStatusList
public int resourceAndServiceStateNumber
public java.lang.String[] resourceAndServiceStateList
public boolean includeResourceNode
public int resourceNumber
public java.lang.String[] resourceList
public java.lang.String[] resourceStatus
public double[] resourceCost
public boolean includeServiceNode
public int serviceNumber
public java.lang.String[] serviceList
public java.lang.String[] serviceStatus
public double[] serviceCost
public boolean quantitativeRisk
public boolean qualitativeRisk
public double[] riskCost
public int valueLevelNumber
public int riskLevelNumber
public double[] delegationCost
public double[] adjustmentCost
public boolean includeDelegationCostNode
public boolean includeAdjustmentCostNode
public boolean nonRecoverableFailure
Constructor Detail |
---|
public FailedActionContext()
Method Detail |
---|
public void setFailedAction(java.lang.String name, java.lang.String action)
name
- Name of actoraction
- Name of actionpublic void setAdjustmentChoiceNumber(int num)
num
- Number of AA choicespublic void addAdjustmentChoice(int index, java.lang.String adjustmentChoice)
index
- Array indexadjustmentChoice
- AA choicespublic void setActionAchievabilityStatusNumber(int num)
num
- Number of action statuspublic void addActionAchievabilityStatus(int index, java.lang.String actionAchievabilityStatus)
index
- Array indexactionAchievabilityStatus
- action statuspublic void setActionCapabilityStatusNumber(int num)
num
- Number of action statuspublic void addActionCapabilityStatus(int index, java.lang.String actionCapabilityStatus)
index
- Array indexactionCapabilityStatus
- action statuspublic void setResourceAndServiceStateNumber(int num)
num
- Number of resource/service statespublic void addResourceAndServiceState(int index, java.lang.String state)
index
- Array indexadjustmentChoice
- resource or service statepublic void setResourceNumber(int num)
num
- Number of resourcespublic void addResource(int index, java.lang.String resourceToAdd)
index
- Array indexresourceToAdd
- Resource to be added into resource listpublic void setResourceStatus(int index, java.lang.String statusToSet)
index
- Array indexresourceToAdd
- Resource status to be setpublic void setResourceCost(int index, double costToSet)
index
- Array indexresourceToAdd
- Resource cost to be setpublic void setServiceNumber(int num)
num
- Number of servicespublic void addService(int index, java.lang.String serviceToAdd)
index
- Array indexresourceToAdd
- Service to be added into resource listpublic void setServiceStatus(int index, java.lang.String statusToSet)
index
- Array indexresourceToAdd
- Service status to be setpublic void setServiceCost(int index, double costToSet)
index
- Array indexresourceToAdd
- Service cost to be setpublic void setRiskType(java.lang.String type)
type
- Risk type
Qualitative risk can be handled as a special case of quantitative risk:
E.g., 0 - high risk, 1 - low risk, etc.public void setRiskCost(int index, double cost)
index
- Array indexresourceToAdd
- Risk cost to be setpublic void setMaxValue(double max)
max
- Max cost valuepublic void setValueLevelNumber(int num)
num
- Level numbers in discretization...public void setRiskLevelNumber(int num)
num
- Level numbers in discretization: this can be different from cost level numberspublic void addDelegationCostNode()
public void addAdjustmentCostNode()
public void setDelegationCost(int index, double cost)
index
- Array indexresourceToAdd
- Risk cost to be set for each AA choicepublic void setAdjustmentCost(int index, double cost)
index
- Array indexresourceToAdd
- AA cost to be set for each AA choice
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |