kaos.core.csi
Class AgentCapabilityImpl

java.lang.Object
  extended by JasBeanImpl
      extended by kaos.core.csi.AgentCapabilityImpl
All Implemented Interfaces:
java.io.Serializable, AgentCapability

public class AgentCapabilityImpl
extends JasBeanImpl
implements AgentCapability

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

AgentCapabilityImpl

public AgentCapabilityImpl()
Instantiates AgentCapability.


AgentCapabilityImpl

public AgentCapabilityImpl(java.lang.String name)
Instantiates AgentCapability.

Method Detail

capabilitiesMatch

public static boolean capabilitiesMatch(java.util.List requestedCapabilities,
                                        java.util.List actualCapabilities)

setName

public void setName(java.lang.String name)
Set the name of this AgentCapability.

Specified by:
setName in interface AgentCapability
Parameters:
name - String containing the name of the AgentCapability.

getName

public java.lang.String getName()
Obtain the AgentCapability name.

Specified by:
getName in interface AgentCapability
Returns:
String containing the name of the AgentCapability.

setKeywords

public void setKeywords(java.util.List keywords)
Set the keywords used to search for this capability.

Specified by:
setKeywords in interface AgentCapability
Parameters:
keywords - List of Strings containing keywords to be used in search for this capability.

getKeywords

public java.util.List getKeywords()
Obtain a List of String describing keywords to be used in search for this capability.

Specified by:
getKeywords in interface AgentCapability
Returns:
List containing Strings to describe this capability.

setCost

public void setCost(double cost)
Set the capability cost

Specified by:
setCost in interface AgentCapability
Parameters:
cost - double containing the cost of this capability.

getCost

public double getCost()
Obtain the capability cost.

Specified by:
getCost in interface AgentCapability
Returns:
double containing the cost of this capability.

setRequestForInfo

public void setRequestForInfo(java.util.List requestForInfo)
Set a List of Strings describing how an agent requests another agent to perform the capability.

Specified by:
setRequestForInfo in interface AgentCapability
Parameters:
requestForInfo - List of String describing how to request this capabiity.

getRequestForInfo

public java.util.List getRequestForInfo()
Return Strings describing how to request this capabiity from an agent.

Specified by:
getRequestForInfo in interface AgentCapability
Returns:
List containing String to request this capability from an agent.

setReliability

public void setReliability(double reliability)
Set the reliability of the capability (double/percentage).

Specified by:
setReliability in interface AgentCapability
Parameters:
reliability - double specifying the reliability of the capability.

getReliability

public double getReliability()
Obtain a double specifying the reliability of the capability (double/percentage).

Specified by:
getReliability in interface AgentCapability
Returns:
double conatining the the reliability of the capability.

containedInCapability

public 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.

Specified by:
containedInCapability in interface AgentCapability
Parameters:
other - AgentCapability to compare this AgentCapability with.
Returns:
boolean indicating if the properties of this AgentCapabilities are present in the other AgentCapability.

toString

public java.lang.String toString()