|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.platform.AbleAgentCapability
The AbleAgentCapability class defines a role or behavior that an AblePlatformDefaultAgent can take on. An example of an AgentCapability might be "DASD Monitor". An agent with such a capability may be able do many different things while monitoring DASD. For example, it might continually monitor the DASD and other system properties and act on problem situations that it encounters.
Each AgentCapability has one or more AgentSituations for which it watches. An example of an AgentSituation for a "DASD Monitor" AgentCapability might be "DASD is thrashing". An agent typically knows how to handle this situation, but a well behaved agent acts in the way that the autonomy level of this AgentCapability dictates.
Default actions for each autonomy level of an AgentCapability are as follows:
The above define an agent's recommended default behavior for each automation level. An agent may ignore these settings and act in a manner of its own choosing.
The default autonomy level of an AgentCapability is NO.
| Field Summary | |
|---|---|
static int |
ASK_CAPABILITY
Autonomy level: ASK. |
static int |
NO_CAPABILITY
Autonomy level: NO. |
static int |
YES_CAPABILITY
Autonomy level: YES. |
| Constructor Summary | |
|---|---|
AbleAgentCapability(AbleAgentCapability theAgentCapability)
Creates an AgentCapability from another AgentCapability (copy constructor). |
|
AbleAgentCapability(java.io.Serializable theCapabilityIdentifier,
AbleMessageContainer theCapabilityName,
int theAutonomyLevel,
java.util.HashMap theSituations)
Creates an AgentCapability. |
|
| Method Summary | |
|---|---|
java.lang.String |
debugString()
Returns a translated representation of this AgentCapability. |
boolean |
equals(java.lang.Object theObject)
Compares this AgentCapability with another to determine if the situations are equal. |
int |
getAutonomyLevel()
Method getAutonomyLevel |
java.io.Serializable |
getCapabilityIdentifier()
Method getCapabilityIdentifier |
AbleMessageContainer |
getName()
Method getName |
AbleAgentSituation |
getSituation(java.io.Serializable theSituationIdentifier)
Gets the AgentSituation specified by the situation identifier. |
java.util.HashMap |
getSituations()
Method getSituations |
int |
hashCode()
Return the hashCode for an AgentCapability. |
void |
setAutonomyLevel(int theAutonomyLevel)
Method setAutonomyLevel |
java.lang.String |
toString()
Returns a brief description of this AgentCapability. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int YES_CAPABILITY
An agent, on its own, takes any and all actions it deems appropriate when encountering an AgentSituation defined for this AgentCapability.
public static final int NO_CAPABILITY
An agent does not take any action when encountering an AgentSituation defined for this AgentCapability.
public static final int ASK_CAPABILITY
An agent asks for permission to perform any actions that it would normally take when encountering an AgentSituation defined for this capability.
Agents ask for permission by logging a request AgentSituationReport to the AgentLoggingService, where these requests may be picked up and answered by another agent or a human being.
| Constructor Detail |
public AbleAgentCapability(java.io.Serializable theCapabilityIdentifier,
AbleMessageContainer theCapabilityName,
int theAutonomyLevel,
java.util.HashMap theSituations)
An AgentCapability class defines a capabilty of an AblePlatformDefaultAgent. A capability of an agent defines a role or behavior that the agent can take on.
theCapabilityIdentifier - An identifier for this AgentCapability.theCapabilityName - The name of this AgentCapability.theAutonomyLevel - The autonomy level of this AgentCapability. Must be
one of:
theSituations - A map of AgentSituations that this AgentCapability may
encounter. The key to the map is each situation's
SituationIdentifier.public AbleAgentCapability(AbleAgentCapability theAgentCapability)
An AgentCapability class defines a capabilty of an AblePlatformDefaultAgent. A capability of an agent defines a role or behavior that the agent can take on.
theAgentCapability - The AgentCapability with which to create a new
AgentCapability.| Method Detail |
public java.io.Serializable getCapabilityIdentifier()
public AbleMessageContainer getName()
public void setAutonomyLevel(int theAutonomyLevel)
theAutonomyLevel - The autonomy level to which this AgentCapability is to
be set. Must be one of:
public int getAutonomyLevel()
public java.util.HashMap getSituations()
public AbleAgentSituation getSituation(java.io.Serializable theSituationIdentifier)
theSituationIdentifier - The identifier of the AgentSituation that is to be
returned.
theSituationIdentifier.public java.lang.String debugString()
public boolean equals(java.lang.Object theObject)
AgentCapability are equal if their Identifiers, Names, Autonomy Levels, and contained Situations are all equal.
theObject - An instance of an AgentCapability that is to
be compared to this AgentCapability.
public int hashCode()
The hashCode of an AgentCapability is the sum of the hashCodes of all of the the internal, private, immutable handles of this Object.
public java.lang.String toString()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||