kaos.core.service.directory
Class DefaultKAoSAgentContainerDescription

java.lang.Object
  extended by BasicAgentDescription
      extended by kaos.core.service.directory.DefaultKAoSEntityDescription
          extended by kaos.core.service.directory.DefaultKAoSAgentContainerDescription
All Implemented Interfaces:
KAoSAgentContainerDescription, KAoSEntityDescription

public class DefaultKAoSAgentContainerDescription
extends DefaultKAoSEntityDescription
implements KAoSAgentContainerDescription

Implements the operations to access information about a KAoS agent container The information includes the ids of Guards guarding the agent, security status


Field Summary
 
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
DefaultKAoSAgentContainerDescription()
           
 
Method Summary
 void addGuardID(java.lang.String id)
          Set the id of a Guard that is guarding the agent's execution environment.
 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 removeGuardID(java.lang.String id)
          Remove a Guard id from the collection of Guard ids held by this KAoSAgentDescription.
 void setSecurityStatus(java.lang.String status)
          Set agent's security status.
 
Methods inherited from class kaos.core.service.directory.DefaultKAoSEntityDescription
addDomainName, addEntityDAMLSType, addEntityOntologicalType, clearLocators, getConceptMappingName, getDomainNames, getEntityDAMLSTypeNames, getEntityDAMLSTypes, getEntityNameAsString, getEntityOntologicalType, getEntityOntologicalTypeNames, getEntityOntologicalTypes, getEntityType, getExecutionEnv, getHostAddress, getHostName, getLocators, initialize, isEntityPolicySubject, isEntityRunning, logMessage, modifyProperties, removeDomainName, removeEntityDAMLSType, removeEntityOntologicalType, removeExecutionEnv, removeHostAddress, removeHostName, setConceptMappingName, setDomainNames, setEntityDAMLSTypes, setEntityNameAsString, setEntityOntologicalType, setEntityOntologicalTypes, setEntityType, setExecutionEnv, setHostAddress, setHostName, setIsEntityPolicySubject, setIsEntityRunning, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface kaos.core.service.directory.KAoSEntityDescription
addDomainName, addEntityDAMLSType, addEntityOntologicalType, clearLocators, getConceptMappingName, getDomainNames, getEntityDAMLSTypeNames, getEntityDAMLSTypes, getEntityNameAsString, getEntityOntologicalType, getEntityOntologicalTypeNames, getEntityOntologicalTypes, getEntityType, getExecutionEnv, getHostAddress, getHostName, isEntityPolicySubject, isEntityRunning, modifyProperties, removeDomainName, removeEntityDAMLSType, removeEntityOntologicalType, removeExecutionEnv, removeHostAddress, removeHostName, setConceptMappingName, setDomainNames, setEntityDAMLSTypes, setEntityNameAsString, setEntityOntologicalType, setEntityOntologicalTypes, setEntityType, setExecutionEnv, setHostAddress, setHostName, setIsEntityPolicySubject, setIsEntityRunning
 

Constructor Detail

DefaultKAoSAgentContainerDescription

public DefaultKAoSAgentContainerDescription()
Method Detail

addGuardID

public void addGuardID(java.lang.String id)
Set the id of a Guard that is guarding the agent's execution environment. (Agent may be guarded by more than one Guard).

Specified by:
addGuardID in interface KAoSAgentContainerDescription
Parameters:
id - The id of one of the agent's Guard.

getGuardIDs

public java.util.List getGuardIDs()
Obtain the ids of the Guards that are guarding the agent's execution environment.

Specified by:
getGuardIDs in interface KAoSAgentContainerDescription
Returns:
List containing the ids of Guards guarding the agent.

removeGuardID

public boolean removeGuardID(java.lang.String id)
Remove a Guard id from the collection of Guard ids held by this KAoSAgentDescription.

Specified by:
removeGuardID in interface KAoSAgentContainerDescription
Parameters:
name - The id of a Guard to be removed from the collection of Guard ids.
Returns:
true if the collection of Guard ids contained the specified id; otherwise return false.

setSecurityStatus

public void setSecurityStatus(java.lang.String status)
Set agent's security status.

Specified by:
setSecurityStatus in interface KAoSAgentContainerDescription
Parameters:
name - The GUARDED/UNGUARDED security status of the agent.

getSecurityStatus

public java.lang.String getSecurityStatus()
Obtain the GUARDED/UNGUARDE security status of the agent.

Specified by:
getSecurityStatus in interface KAoSAgentContainerDescription
Returns:
String containing the agent's security status.