|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object BasicAgentDescription kaos.core.service.directory.DefaultKAoSEntityDescription kaos.core.service.directory.DefaultKAoSAgentDescription
public class DefaultKAoSAgentDescription
Implements the operations to access information about a KAoS agent. The information includes the ids of Guards guarding the agent, the id of the container the agent is running in, the agent's nickname, security status, and whether the agent supports conversations.
Field Summary |
---|
Fields inherited from interface kaos.core.service.directory.KAoSAgentDescription |
---|
AGENT_CAPABILITIES, AGENT_CONTAINER, AGENT_GUARD_IDS, AGENT_NICKNAME, AGENT_SECURITY_STATUS, AGENT_SUPPORTS_CONVERSATIONS, BasicAgentDescription_LOCATORS, BasicAgentDescription_NAME, HIDDEN_KEY_NAMES, IS_GOVERNABLE |
Fields inherited from interface kaos.core.service.directory.KAoSEntityDescription |
---|
CONCEPT_MAPPING_NAME, ENTITY_DAML_S_TYPES, ENTITY_DOMAIN_NAMES, ENTITY_HOST_ADDRESS, ENTITY_HOST_NAME, ENTITY_ONTOLOGICAL_TYPE_NAMES, ENTITY_ONTOLOGICAL_TYPES, ENTITY_TYPE, EXECUTION_ENVIRONMENT, FULL_SEARCH, IS_ENTITY_POLICY_SUBJECT, IS_ENTITY_RUNNING, SEARCH_PARAMS |
Constructor Summary | |
---|---|
DefaultKAoSAgentDescription()
|
Method Summary | |
---|---|
void |
addCapability(AgentCapability capability)
Add an AgentCapability to this description. |
void |
addGuardID(java.lang.String id)
Set the id of a Guard that is guarding the agent's execution environment. |
java.lang.String |
getAgentContainer()
Obtain the id of agent's container. |
java.lang.String |
getAgentNickname()
Obtain the agent's nickname property contained by this KAoSAgentDescription. |
java.util.List |
getCapabilities()
Obtain the collection of AgentCapabilities of this agent. |
java.util.List |
getGuardIDs()
Obtain the ids of the Guards that are guarding the agent's execution environment. |
java.lang.String |
getSecurityStatus()
Obtain the GUARDED/UNGUARDE security status of the agent. |
boolean |
getSupportsConversations()
Obtain the property indicating whether the agent supports KAoS conversations. |
boolean |
removeCapability(AgentCapability capability)
Remove the specified AgentCapability from the collection of this agent's capabilities. |
boolean |
removeGuardID(java.lang.String id)
Remove a Guard id from the collection of Guard ids held by this KAoSAgentDescription. |
void |
setAgentContainer(java.lang.String container)
Set the id of the container the agent is running in. |
void |
setAgentName(AgentName agentName)
Set the agent name. |
void |
setAgentNickname(java.lang.String name)
Set the agent's nickname. |
void |
setCapabilities(java.util.List capabilities)
Set the collection of AgentCapabilities of this agent. |
void |
setSecurityStatus(java.lang.String status)
Set agent's security status. |
void |
setSupportsConversations(boolean supports)
Set the property telling whether the agent supports conversations. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultKAoSAgentDescription()
Method Detail |
---|
public void setAgentContainer(java.lang.String container)
setAgentContainer
in interface KAoSAgentDescription
container
- The id of the container in which the agent is running.public java.lang.String getAgentContainer()
getAgentContainer
in interface KAoSAgentDescription
public void setAgentName(AgentName agentName)
name
- public void setAgentNickname(java.lang.String name)
setAgentNickname
in interface KAoSAgentDescription
name
- The nickname the agent is using in addition to its name (GUID).public java.lang.String getAgentNickname()
getAgentNickname
in interface KAoSAgentDescription
public void addGuardID(java.lang.String id)
addGuardID
in interface KAoSAgentDescription
id
- The id of one of the agent's Guard.public java.util.List getGuardIDs()
getGuardIDs
in interface KAoSAgentDescription
public boolean removeGuardID(java.lang.String id)
removeGuardID
in interface KAoSAgentDescription
name
- The id of a Guard to be removed from the collection of Guard ids.
public void setSupportsConversations(boolean supports)
setSupportsConversations
in interface KAoSAgentDescription
supports
- The supports argument indicates whether the agent supports KAoS conversations.public boolean getSupportsConversations()
getSupportsConversations
in interface KAoSAgentDescription
public void setSecurityStatus(java.lang.String status)
setSecurityStatus
in interface KAoSAgentDescription
name
- The GUARDED/UNGUARDED security status of the agent.public java.lang.String getSecurityStatus()
getSecurityStatus
in interface KAoSAgentDescription
public void addCapability(AgentCapability capability)
addCapability
in interface KAoSAgentDescription
capability
- AgentCapability describing individual capability of this agent.public boolean removeCapability(AgentCapability capability)
removeCapability
in interface KAoSAgentDescription
capability
- The AgentCapability to be added to the collection of this agent's capabilities.
public void setCapabilities(java.util.List capabilities)
setCapabilities
in interface KAoSAgentDescription
capabilities
- List containing the AgentCapabilities of this agent.public java.util.List getCapabilities()
getCapabilities
in interface KAoSAgentDescription
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |