|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectBasicAgentDescription
kaos.core.service.directory.DefaultKAoSEntityDescription
public class DefaultKAoSEntityDescription
Implements the operations to access information about a KAoS entity. The information includes the host name/address, the domain names the entity is member of, the entity type (GUARD or AGENT), and the ID of the execution environmnet the entity is running in.
| Field Summary |
|---|
| Fields inherited from interface kaos.core.service.directory.KAoSEntityDescription |
|---|
ENTITY_DOMAIN_NAMES, ENTITY_HOST_ADDRESS, ENTITY_HOST_NAME, ENTITY_ONTOLOGICAL_TYPE_NAMES, EXECUTION_ENVIRONMENT, FULL_SEARCH, IS_ENTITY_POLICY_SUBJECT, SEARCH_PARAMS |
| Constructor Summary | |
|---|---|
DefaultKAoSEntityDescription()
|
|
| Method Summary | |
|---|---|
void |
addDomainName(java.lang.String name)
Add a domain name to the collection of domain names held by the KAoSEntityDescription. |
void |
addEntityDAMLSType(java.lang.String type,
java.lang.String damlSInterface)
Add DAML-S type to the collection of DAML-S types held by the KAoSEntityDescription. |
void |
addEntityOntologicalType(java.lang.String typeName,
java.lang.String damlDesc)
Add an ontological type to the collection of types held by the KAoSEntityDescription. |
void |
clearLocators()
Clear the locators property contained by this KAoSEntityDescription. |
java.lang.String |
getConceptMappingName()
Get the name of the concept mapping between the entity system's ontological concepts and KAoS ontology. |
java.util.List |
getDomainNames()
Obtain List of names of domains the agent is member of. |
java.util.Enumeration |
getEntityDAMLSTypeNames()
Obtain the collection of just names of DAML-S types of KAoS entity described by this KAoSEntityDescription. |
java.util.Map |
getEntityDAMLSTypes()
Obtain the collection of DAML-S types of KAoS entity described by this KAoSEntityDescription. |
java.lang.String |
getEntityNameAsString()
Obtain the agent's name as String. |
java.lang.String |
getEntityOntologicalType()
Obtain the ontological type of KAoS entity described by this KAoSEntityDescription. |
java.util.Enumeration |
getEntityOntologicalTypeNames()
Obtain the collection of just names of ontological types of KAoS entity described by this KAoSEntityDescription. |
java.util.Map |
getEntityOntologicalTypes()
Obtain the collection of ontological types of KAoS entity described by this KAoSEntityDescription. |
java.lang.String |
getEntityType()
Obtain the type of entity described this KAoSEntityDescription. |
java.lang.String |
getExecutionEnv()
Obtain the id of the execution environment property contained by this KAoSAgentDescription. |
java.lang.String |
getHostAddress()
Obtain the host address property contained by this the KAoSEntityDescription. |
java.lang.String |
getHostName()
Obtain the host name property contained by this KAoSEntityDescription. |
Locator[] |
getLocators()
This method overrides the superclass' getLocators() in order to return empty Locators for virtual(non-running) entities. |
protected void |
initialize()
|
boolean |
isEntityPolicySubject()
Obtain the info whether the entity is a subject of policies. |
boolean |
isEntityRunning()
Obtain the info whether the entity is running or not (virtual). |
protected void |
logMessage(java.lang.String msg)
|
void |
modifyProperties(java.util.List properties)
Modify key-value pairs of this KAoSEntityDescription as specified by the Property objects containted in the given list. |
boolean |
removeDomainName(java.lang.String name)
Remove a domain name from the collection of domain names held by the KAoSAgentDescription. |
boolean |
removeEntityDAMLSType(java.lang.String type)
Remove a DAML-S type from the collection of DAML-S types held by the KAoSEntityDescription. |
boolean |
removeEntityOntologicalType(java.lang.String type)
Remove an ontological type from the collection of types held by the KAoSEntityDescription. |
java.lang.String |
removeExecutionEnv()
Remove the id of the execution environment property contained by this KAoSAgentDescription. |
java.lang.String |
removeHostAddress()
Remove the address of the host. |
java.lang.String |
removeHostName()
Remove the host name property contained by this KAoSEntityDescription. |
void |
setConceptMappingName(java.lang.String mappingName)
Set the name of the concept mapping between the entity system's ontological concepts and KAoS ontology. |
void |
setDomainNames(java.util.List domainNames)
Set names of the domains a given entity is member of. |
void |
setEntityDAMLSTypes(java.util.Map types)
Set the DAML-S types of KAoS entity. |
void |
setEntityNameAsString(java.lang.String name)
Set the name of the entity as String, which is the String representation of AgentName. |
void |
setEntityOntologicalType(java.lang.String type)
Set the ontological type of KAoS entity. |
void |
setEntityOntologicalTypes(java.util.Map types)
Set the ontological types of KAoS entity. |
void |
setEntityType(java.lang.String type)
Set the type of KAoS entity. |
void |
setExecutionEnv(java.lang.String executionEnv)
Set the id of the execution environment the entity is running in. |
void |
setHostAddress(java.lang.String address)
Set the address of the host the agent is running on. |
void |
setHostName(java.lang.String name)
Set the name of the host the agent is running on. |
void |
setIsEntityPolicySubject(boolean isPolicySubject)
Set the indicator of whether the entity will/will not be a policy subject. |
void |
setIsEntityRunning(boolean isEntityRunning)
Set the indicator of whether the entity is running. |
java.lang.String |
toString()
A utility method to create a String representation of the DefaultKAoSEntityDescription. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultKAoSEntityDescription()
| Method Detail |
|---|
public java.lang.String getConceptMappingName()
getConceptMappingName in interface KAoSEntityDescriptionpublic void setConceptMappingName(java.lang.String mappingName)
setConceptMappingName in interface KAoSEntityDescriptionmappingName - The name of the mapping to be used to translate ontological names from
the entity system to KAoS ontologies.public void addDomainName(java.lang.String name)
addDomainName in interface KAoSEntityDescriptionname - The name of a domain to be added to the collection of domain names.public java.util.List getDomainNames()
getDomainNames in interface KAoSEntityDescriptionpublic void setDomainNames(java.util.List domainNames)
setDomainNames in interface KAoSEntityDescriptiondomainNames - The domainNames containing a List of all names of domains a given entity is registered in.public boolean removeDomainName(java.lang.String name)
removeDomainName in interface KAoSEntityDescriptionname - The name of a domain to be removed from the collection of domain names.
public void setExecutionEnv(java.lang.String executionEnv)
setExecutionEnv in interface KAoSEntityDescriptionexecutionEnv - The id of the execution environment in which the entity is running.public java.lang.String getExecutionEnv()
getExecutionEnv in interface KAoSEntityDescriptionpublic java.lang.String removeExecutionEnv()
removeExecutionEnv in interface KAoSEntityDescriptionpublic void setHostAddress(java.lang.String address)
setHostAddress in interface KAoSEntityDescriptionaddress - The address of the host where the agent is running.public java.lang.String removeHostAddress()
removeHostAddress in interface KAoSEntityDescriptionpublic java.lang.String getHostAddress()
getHostAddress in interface KAoSEntityDescriptionpublic void setHostName(java.lang.String name)
setHostName in interface KAoSEntityDescriptionname - The name of the host where the agent is running.public java.lang.String getHostName()
getHostName in interface KAoSEntityDescriptionpublic java.lang.String removeHostName()
removeHostName in interface KAoSEntityDescriptionpublic java.lang.String getEntityNameAsString()
getEntityNameAsString in interface KAoSEntityDescriptionpublic void setEntityNameAsString(java.lang.String name)
setEntityNameAsString in interface KAoSEntityDescriptionname - The name of entity represented as String.public void setEntityType(java.lang.String type)
setEntityType in interface KAoSEntityDescriptionname - The type of of the host where the entity is running.public java.lang.String getEntityType()
getEntityType in interface KAoSEntityDescriptionpublic void setEntityOntologicalType(java.lang.String type)
setEntityOntologicalType in interface KAoSEntityDescriptiontype - The ontological type of the entity this description is associated with.public java.lang.String getEntityOntologicalType()
getEntityOntologicalType in interface KAoSEntityDescription
public void addEntityOntologicalType(java.lang.String typeName,
java.lang.String damlDesc)
addEntityOntologicalType in interface KAoSEntityDescriptiontype - String containing the name of ontological type of the entity described by this description.damlDesc - String containing DAML description of the corresponding ontological type.public boolean removeEntityOntologicalType(java.lang.String type)
removeEntityOntologicalType in interface KAoSEntityDescriptiontype - The name of the ontological type to be removed from the collection of ontological types.
public void setEntityOntologicalTypes(java.util.Map types)
setEntityOntologicalTypes in interface KAoSEntityDescriptiontypes - Map containing type name -> DAML description mapping of ontological types
of the entity this description is associated with.public java.util.Map getEntityOntologicalTypes()
getEntityOntologicalTypes in interface KAoSEntityDescriptionpublic java.util.Enumeration getEntityOntologicalTypeNames()
getEntityOntologicalTypeNames in interface KAoSEntityDescription
public void addEntityDAMLSType(java.lang.String type,
java.lang.String damlSInterface)
addEntityDAMLSType in interface KAoSEntityDescriptiontype - String containing the name of DAML-S type of the entity described by this description.damlDesc - String containing DAML-S interface as String of the corresponding DAML-S type.public boolean removeEntityDAMLSType(java.lang.String type)
removeEntityDAMLSType in interface KAoSEntityDescriptiontype - The name of the DAML-S type to be removed from the collection of DAML-S types.
public void setEntityDAMLSTypes(java.util.Map types)
setEntityDAMLSTypes in interface KAoSEntityDescriptiontypes - Map containing DAML-S name -> DAML-S interface mapping
of the entity this description is associated with.public java.util.Map getEntityDAMLSTypes()
getEntityDAMLSTypes in interface KAoSEntityDescriptionpublic java.util.Enumeration getEntityDAMLSTypeNames()
getEntityDAMLSTypeNames in interface KAoSEntityDescriptionpublic boolean isEntityPolicySubject()
isEntityPolicySubject in interface KAoSEntityDescriptionpublic void setIsEntityPolicySubject(boolean isPolicySubject)
setIsEntityPolicySubject in interface KAoSEntityDescriptionisPolicySubject - The boolean indicating whether the entity will/will not be governed by policies.public boolean isEntityRunning()
isEntityRunning in interface KAoSEntityDescriptionpublic void setIsEntityRunning(boolean isEntityRunning)
setIsEntityRunning in interface KAoSEntityDescriptionisEntityRunning - The boolean indicating whether the entity is running.public Locator[] getLocators()
public void clearLocators()
clearLocators in interface KAoSEntityDescription
public void modifyProperties(java.util.List properties)
throws ModificationException
modifyProperties in interface KAoSEntityDescriptionpropertiesToModify - List containing Property objects specifying the modifcations.
ModificationException - containing Properties, whose modifications failed. Each failed property
includes the description of the failure.public java.lang.String toString()
protected void logMessage(java.lang.String msg)
protected void initialize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||