|
|||||||||
| 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 environment 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 |
addDirProxy(KAoSAgentDirectoryServiceProxy dirProxy)
|
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<java.lang.String> |
getDomainNames()
Obtain the names of the domains a given entity 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 entity's name as String. |
java.lang.String |
getEntityOntologicalType()
Obtain the ontological type of KAoS entity described by this KAoSEntityDescription. |
java.util.Set<java.lang.String> |
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 that is described by this KAoSEntityDescription. |
java.lang.String |
getExecutionEnv()
Obtain the id of the execution environment of this entity. |
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()
|
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 KAoSEntityDescription. |
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 execution environment the entity is running in. |
void |
setHostAddress(java.lang.String address)
Set the address of the host the entity is running on. |
void |
setHostName(java.lang.String name)
Set the name of the host the entity 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()
|
| 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()
KAoSEntityDescription
getConceptMappingName in interface KAoSEntityDescriptionpublic void setConceptMappingName(java.lang.String mappingName)
KAoSEntityDescription
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)
KAoSEntityDescription
addDomainName in interface KAoSEntityDescriptionname - The name of a domain to be added to the collection of domain names.public java.util.List<java.lang.String> getDomainNames()
KAoSEntityDescription
getDomainNames in interface KAoSEntityDescriptionpublic void setDomainNames(java.util.List domainNames)
KAoSEntityDescription
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)
KAoSEntityDescription
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)
KAoSEntityDescription
setExecutionEnv in interface KAoSEntityDescriptionexecutionEnv - The execution environment in which the entity is running.public java.lang.String getExecutionEnv()
KAoSEntityDescription
getExecutionEnv in interface KAoSEntityDescriptionpublic java.lang.String removeExecutionEnv()
KAoSEntityDescription
removeExecutionEnv in interface KAoSEntityDescriptionpublic void setHostAddress(java.lang.String address)
KAoSEntityDescription
setHostAddress in interface KAoSEntityDescriptionaddress - The address of the host where the enitity is running.public java.lang.String removeHostAddress()
KAoSEntityDescription
removeHostAddress in interface KAoSEntityDescriptionpublic java.lang.String getHostAddress()
KAoSEntityDescription
getHostAddress in interface KAoSEntityDescriptionpublic void setHostName(java.lang.String name)
KAoSEntityDescription
setHostName in interface KAoSEntityDescriptionname - The name of the host where the entity is running.public java.lang.String getHostName()
KAoSEntityDescription
getHostName in interface KAoSEntityDescriptionpublic java.lang.String removeHostName()
KAoSEntityDescription
removeHostName in interface KAoSEntityDescriptionpublic java.lang.String getEntityNameAsString()
KAoSEntityDescription
getEntityNameAsString in interface KAoSEntityDescriptionpublic void setEntityNameAsString(java.lang.String name)
KAoSEntityDescription
setEntityNameAsString in interface KAoSEntityDescriptionname - The name of entity represented as String.public void setEntityType(java.lang.String type)
KAoSEntityDescription
setEntityType in interface KAoSEntityDescriptiontype - The type of the entity.public java.lang.String getEntityType()
KAoSEntityDescription
getEntityType in interface KAoSEntityDescriptionpublic void setEntityOntologicalType(java.lang.String type)
KAoSEntityDescription
setEntityOntologicalType in interface KAoSEntityDescriptiontype - The ontological type of the entity this description is associated with.public java.lang.String getEntityOntologicalType()
KAoSEntityDescription
getEntityOntologicalType in interface KAoSEntityDescription
public void addEntityOntologicalType(java.lang.String typeName,
java.lang.String damlDesc)
KAoSEntityDescription
addEntityOntologicalType in interface KAoSEntityDescriptiontypeName - 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)
KAoSEntityDescription
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)
KAoSEntityDescription
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()
KAoSEntityDescription
getEntityOntologicalTypes in interface KAoSEntityDescriptionpublic java.util.Set<java.lang.String> getEntityOntologicalTypeNames()
KAoSEntityDescription
getEntityOntologicalTypeNames in interface KAoSEntityDescription
public void addEntityDAMLSType(java.lang.String type,
java.lang.String damlSInterface)
KAoSEntityDescription
addEntityDAMLSType in interface KAoSEntityDescriptiontype - String containing the name of DAML-S type of the entity described by this description.public boolean removeEntityDAMLSType(java.lang.String type)
KAoSEntityDescription
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)
KAoSEntityDescription
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()
KAoSEntityDescription
getEntityDAMLSTypes in interface KAoSEntityDescriptionpublic java.util.Enumeration getEntityDAMLSTypeNames()
KAoSEntityDescription
getEntityDAMLSTypeNames in interface KAoSEntityDescriptionpublic boolean isEntityPolicySubject()
KAoSEntityDescription
isEntityPolicySubject in interface KAoSEntityDescriptionpublic void setIsEntityPolicySubject(boolean isPolicySubject)
KAoSEntityDescription
setIsEntityPolicySubject in interface KAoSEntityDescriptionisPolicySubject - The boolean indicating whether the entity will/will not be governed by policies.public boolean isEntityRunning()
KAoSEntityDescription
isEntityRunning in interface KAoSEntityDescriptionpublic void setIsEntityRunning(boolean isEntityRunning)
KAoSEntityDescription
setIsEntityRunning in interface KAoSEntityDescriptionisEntityRunning - The boolean indicating whether the entity is running.public Locator[] getLocators()
public void clearLocators()
KAoSEntityDescription
clearLocators in interface KAoSEntityDescription
public void modifyProperties(java.util.List properties)
throws ModificationException
KAoSEntityDescription
modifyProperties in interface KAoSEntityDescriptionproperties - 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()
public void addDirProxy(KAoSAgentDirectoryServiceProxy dirProxy)
addDirProxy in interface KAoSEntityDescription
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||