|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JasBeanImpl kaos.core.csi.AgentCapabilityImpl
public class AgentCapabilityImpl
Defines the operations to store and access information about a capability an agent offers.
Constructor Summary | |
---|---|
AgentCapabilityImpl()
Instantiates AgentCapability. |
|
AgentCapabilityImpl(java.lang.String name)
Instantiates AgentCapability. |
Method Summary | |
---|---|
static boolean |
capabilitiesMatch(java.util.List requestedCapabilities,
java.util.List actualCapabilities)
|
boolean |
containedInCapability(AgentCapability otherCapability)
Determine if this AgentCapability is contained in the other AgentCapability, meaning that all properties of this AgentCapability are present in the other. |
double |
getCost()
Obtain the capability cost. |
java.util.List |
getKeywords()
Obtain a List of String describing keywords to be used in search for this capability. |
java.lang.String |
getName()
Obtain the AgentCapability name. |
double |
getReliability()
Obtain a double specifying the reliability of the capability (double/percentage). |
java.util.List |
getRequestForInfo()
Return Strings describing how to request this capabiity from an agent. |
void |
setCost(double cost)
Set the capability cost |
void |
setKeywords(java.util.List keywords)
Set the keywords used to search for this capability. |
void |
setName(java.lang.String name)
Set the name of this AgentCapability. |
void |
setReliability(double reliability)
Set the reliability of the capability (double/percentage). |
void |
setRequestForInfo(java.util.List requestForInfo)
Set a List of Strings describing how an agent requests another agent to perform the capability. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AgentCapabilityImpl()
public AgentCapabilityImpl(java.lang.String name)
Method Detail |
---|
public static boolean capabilitiesMatch(java.util.List requestedCapabilities, java.util.List actualCapabilities)
public void setName(java.lang.String name)
setName
in interface AgentCapability
name
- String containing the name of the AgentCapability.public java.lang.String getName()
getName
in interface AgentCapability
public void setKeywords(java.util.List keywords)
setKeywords
in interface AgentCapability
keywords
- List of Strings containing keywords to be used in search for this capability.public java.util.List getKeywords()
getKeywords
in interface AgentCapability
public void setCost(double cost)
setCost
in interface AgentCapability
cost
- double containing the cost of this capability.public double getCost()
getCost
in interface AgentCapability
public void setRequestForInfo(java.util.List requestForInfo)
setRequestForInfo
in interface AgentCapability
requestForInfo
- List of String describing how to request this capabiity.public java.util.List getRequestForInfo()
getRequestForInfo
in interface AgentCapability
public void setReliability(double reliability)
setReliability
in interface AgentCapability
reliability
- double specifying the reliability of the capability.public double getReliability()
getReliability
in interface AgentCapability
public boolean containedInCapability(AgentCapability otherCapability)
containedInCapability
in interface AgentCapability
other
- AgentCapability to compare this AgentCapability with.
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |