kaos.core.csi
Interface AgentCapability

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AgentCapabilityImpl

public interface AgentCapability
extends java.io.Serializable

Defines the operations to store and access information about a capability an agent offers.


Method Summary
 boolean containedInCapability(AgentCapability other)
          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.
 

Method Detail

setName

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

Parameters:
name - String containing the name of the AgentCapability.

getName

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

Returns:
String containing the name of the AgentCapability.

setKeywords

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

Parameters:
keywords - List of Strings containing keywords to be used in search for this capability.

getKeywords

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

Returns:
List containing Strings to describe this capability.

setCost

void setCost(double cost)
Set the capability cost

Parameters:
cost - double containing the cost of this capability.

getCost

double getCost()
Obtain the capability cost.

Returns:
double containing the cost of this capability.

setRequestForInfo

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

Parameters:
requestForInfo - List of String describing how to request this capabiity.

getRequestForInfo

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

Returns:
List containing String to request this capability from an agent.

setReliability

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

Parameters:
reliability - double specifying the reliability of the capability.

getReliability

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

Returns:
double conatining the the reliability of the capability.

containedInCapability

boolean containedInCapability(AgentCapability other)
Determine if this AgentCapability is contained in the other AgentCapability, meaning that all properties of this AgentCapability are present in the other.

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