|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.autonomy.situation.DataRepository
public class DataRepository
Constructor Summary | |
---|---|
DataRepository(Kaa currentKaaReasoner)
|
Method Summary | |
---|---|
java.lang.String |
delegateToWhichAgent(java.lang.String agentName,
java.lang.String currentAction)
check to which agent a given action can be delegated |
java.lang.String[] |
getActionAchievabilityStatusList()
get the list of action achievability status |
java.lang.String[] |
getActionCapabilityStatusList()
get the list of action capability status |
java.util.Set |
getActionsForAgent(java.lang.String agentID)
get the actions an agent can perform |
java.lang.String[] |
getAdjustmentChoiceList(java.lang.String policyType,
boolean addDelegationAction)
get the list of AA choices |
double |
getAdjustmentCost(java.lang.String adjustmentAction)
get the cost of autonomy adjustment |
java.util.List |
getAllAgentsInDirectory()
get all agents currently registered in D.S. |
double |
getDelegationCost(java.lang.String action)
get the cost of delegation |
double |
getMaxValue()
get the max cost value |
java.lang.String[] |
getResourceAndServiceStateList()
get the list of resource/serive states |
java.lang.String[] |
getResourceList(java.lang.String action)
get the list of resources |
double |
getResourceOrServiceCost(java.lang.String name,
java.lang.String status)
get the number of risk cost values |
java.lang.String |
getResourceOrServiceStatus(java.lang.String name)
get the status of a given resource/service |
double |
getRiskCost(java.lang.String adjustmentAction,
java.lang.String failedAction)
gets the cost of risk |
int |
getRiskLevelNumber()
get the number of risk cost values |
java.lang.String[] |
getServiceList(java.lang.String action)
get the list of services |
int |
getValueLevelNumber()
get the number of numeric cost values |
boolean |
isAdjustmentCostIncluded()
checks whether AA cost is included or not |
boolean |
isDelegable(java.lang.String agentName,
java.lang.String currentAction)
check whether a given action is delegable or not |
boolean |
isDelegationIncluded(java.lang.String[] actionList)
checks whether delegation is in the AA choice list or not |
boolean |
isQuantitativeRiskType()
tells whether risk is quantitative or not |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRepository(Kaa currentKaaReasoner)
Method Detail |
---|
public java.lang.String[] getAdjustmentChoiceList(java.lang.String policyType, boolean addDelegationAction)
addDelegationAction
- Whether to include delegation or not
public java.lang.String[] getActionAchievabilityStatusList()
public java.lang.String[] getActionCapabilityStatusList()
public java.lang.String[] getResourceList(java.lang.String action)
action
- Action name
public java.lang.String[] getServiceList(java.lang.String action)
action
- Action name
public java.lang.String[] getResourceAndServiceStateList()
public java.lang.String getResourceOrServiceStatus(java.lang.String name)
name
- Name of resource or service
public double getMaxValue()
public int getValueLevelNumber()
public int getRiskLevelNumber()
public double getResourceOrServiceCost(java.lang.String name, java.lang.String status)
name
- Name of resource or servicestatus
- Status of a given resource or service
public double getAdjustmentCost(java.lang.String adjustmentAction)
action
- AA choice
public boolean isQuantitativeRiskType()
public double getRiskCost(java.lang.String adjustmentAction, java.lang.String failedAction)
action
- Name of action
public boolean isDelegationIncluded(java.lang.String[] actionList)
actionList
- List of actions
public boolean isAdjustmentCostIncluded()
public java.util.Set getActionsForAgent(java.lang.String agentID) throws UnknownConceptException, DirectoryFailure
agentID
- A String specifying the agent by its unique GUID
UnknownConceptException
- If the agent is not found
DirectoryFailure
- If error in the D.S.public java.util.List getAllAgentsInDirectory() throws DirectoryFailure
DirectoryFailure
- If error in the D.S.public boolean isDelegable(java.lang.String agentName, java.lang.String currentAction) throws DirectoryFailure
agentName
- Name of actorcurrentAction
- Name of action to check
DirectoryFailure
- If error in the D.S.public java.lang.String delegateToWhichAgent(java.lang.String agentName, java.lang.String currentAction) throws DirectoryFailure
agentName
- Name of actorcurrentAction
- Name of action to check
DirectoryFailure
- If error in the D.S.public double getDelegationCost(java.lang.String action)
action
- Name of action to check cost
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |