|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.platform.AbleEServerCapability
The AbleEServerCapability class defines a capabilty of an AbleEServerAgent. A capability of an agent defines a role or behavior that the agent will take on. An example might be a "DASD Monitor" capability. The agent might do many different things for this capability. It might continually monitor the DASD and other system properties and act on problem situations that it notices.
Each AbleEServerCapability will have some AbleEServerSituations that it will watch for. A situation of the "DASD Monitor" capability might be "DASD too high". The agent would know how to handle this situation, but would act in a way that the autonomy level of this capability would dictate.
The default actions of each autonomy level of a capability are as follows:
These only define the default behavior of each automation level. It is up to the agent to act however it wants to at each level.
The autonomy level of a capability will default to NO.
Field Summary | |
static int |
ASK_CAPABILITY
|
static int |
NO_CAPABILITY
|
static int |
YES_CAPABILITY
These are the three possible autonomy levels of a capability |
Constructor Summary | |
AbleEServerCapability(AbleEServerCapability theAbleEServerCapability)
Creates an AbleEServerCapability based off another AbleEServerCapability. |
|
AbleEServerCapability(java.io.Serializable theCapabilityIdentifier,
com.ibm.able.AbleMessageContainer theCapabilityName,
int theAutonomyLevel,
java.util.HashMap theSituations)
Create an AbleEServerCapability |
Method Summary | |
static java.lang.String |
Copyright()
Gets the copyright of this class. |
java.lang.String |
debugString()
Returns a translated representation of this AbleEServerCapability. |
boolean |
equals(java.lang.Object o)
Compares this AbleEServerCapability with another to determine if the situations are equal. |
int |
getAutonomyLevel()
Method getAutonomyLevel |
java.io.Serializable |
getCapabilityIdentifier()
Method getCapabilityIdentifier |
com.ibm.able.AbleMessageContainer |
getName()
Method getName |
AbleEServerSituation |
getSituation(java.io.Serializable theSituationIdentifier)
Method getSituation |
java.util.HashMap |
getSituations()
Method getSituations |
int |
hashCode()
Return the hashCode for an AbleEServerCapability |
void |
setAutonomyLevel(int theAutonomyLevel)
Method setAutonomyLevel |
java.lang.String |
toString()
Returns a brief description of this AbleEServerCapability. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int YES_CAPABILITY
public static final int NO_CAPABILITY
public static final int ASK_CAPABILITY
Constructor Detail |
public AbleEServerCapability(java.io.Serializable theCapabilityIdentifier, com.ibm.able.AbleMessageContainer theCapabilityName, int theAutonomyLevel, java.util.HashMap theSituations)
An AbleEServerCapability class defines a capabilty of an AbleEServerAgent. A capability of an agent defines a role or behavior that the agent will take on.
theCapabilityIdentifier
- An identifier for this capability.
theCapabilityName
- The name of this capability.
theAutonomyLevel
- The autonomy level of this capability.
theSituations
- The situations of this capabilitypublic AbleEServerCapability(AbleEServerCapability theAbleEServerCapability)
An AbleEServerCapability class defines a capabilty of an AbleEServerAgent. A capability of an agent defines a role or behavior that the agent will take on. This constructor should be used as a copy constructor.
theAbleEServerSituation
- The AbleEServerCapability
to create a new AbleEServerCapability based off of.Method Detail |
public java.io.Serializable getCapabilityIdentifier()
public java.util.HashMap getSituations()
public AbleEServerSituation getSituation(java.io.Serializable theSituationIdentifier)
theSituationIdentifier
- The identifier of the situation that is to be returned.
theSituationIdentifier
.public com.ibm.able.AbleMessageContainer getName()
public int getAutonomyLevel()
public void setAutonomyLevel(int theAutonomyLevel)
theAutonomyLevel
- The autonomy level this capability is to be set to.public java.lang.String debugString()
public static java.lang.String Copyright()
public boolean equals(java.lang.Object o)
AbleEServerCapability are equal if their internal, private, immutable handles are equal.
equals
in class java.lang.Object
o
- An instance of an AbleEServerCapability that is to
be compared to this AbleEServerCapability.
AbleEServerCapability are equal if their internal, private, immutable handles are equal.
public int hashCode()
The hashCode of an AbleEServerCapability is the sum of the hashCodes of all of the the internal, private, immutable handles of this Object.
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |