|
|||||||||
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 KAoSEntityDescription
public void setConceptMappingName(java.lang.String mappingName)
KAoSEntityDescription
setConceptMappingName
in interface KAoSEntityDescription
mappingName
- 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 KAoSEntityDescription
name
- 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 KAoSEntityDescription
public void setDomainNames(java.util.List domainNames)
KAoSEntityDescription
setDomainNames
in interface KAoSEntityDescription
domainNames
- 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 KAoSEntityDescription
name
- 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 KAoSEntityDescription
executionEnv
- The execution environment in which the entity is running.public java.lang.String getExecutionEnv()
KAoSEntityDescription
getExecutionEnv
in interface KAoSEntityDescription
public java.lang.String removeExecutionEnv()
KAoSEntityDescription
removeExecutionEnv
in interface KAoSEntityDescription
public void setHostAddress(java.lang.String address)
KAoSEntityDescription
setHostAddress
in interface KAoSEntityDescription
address
- The address of the host where the enitity is running.public java.lang.String removeHostAddress()
KAoSEntityDescription
removeHostAddress
in interface KAoSEntityDescription
public java.lang.String getHostAddress()
KAoSEntityDescription
getHostAddress
in interface KAoSEntityDescription
public void setHostName(java.lang.String name)
KAoSEntityDescription
setHostName
in interface KAoSEntityDescription
name
- The name of the host where the entity is running.public java.lang.String getHostName()
KAoSEntityDescription
getHostName
in interface KAoSEntityDescription
public java.lang.String removeHostName()
KAoSEntityDescription
removeHostName
in interface KAoSEntityDescription
public java.lang.String getEntityNameAsString()
KAoSEntityDescription
getEntityNameAsString
in interface KAoSEntityDescription
public void setEntityNameAsString(java.lang.String name)
KAoSEntityDescription
setEntityNameAsString
in interface KAoSEntityDescription
name
- The name of entity represented as String.public void setEntityType(java.lang.String type)
KAoSEntityDescription
setEntityType
in interface KAoSEntityDescription
type
- The type of the entity.public java.lang.String getEntityType()
KAoSEntityDescription
getEntityType
in interface KAoSEntityDescription
public void setEntityOntologicalType(java.lang.String type)
KAoSEntityDescription
setEntityOntologicalType
in interface KAoSEntityDescription
type
- 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 KAoSEntityDescription
typeName
- 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 KAoSEntityDescription
type
- 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 KAoSEntityDescription
types
- 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 KAoSEntityDescription
public 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 KAoSEntityDescription
type
- 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 KAoSEntityDescription
type
- 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 KAoSEntityDescription
types
- 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 KAoSEntityDescription
public java.util.Enumeration getEntityDAMLSTypeNames()
KAoSEntityDescription
getEntityDAMLSTypeNames
in interface KAoSEntityDescription
public boolean isEntityPolicySubject()
KAoSEntityDescription
isEntityPolicySubject
in interface KAoSEntityDescription
public void setIsEntityPolicySubject(boolean isPolicySubject)
KAoSEntityDescription
setIsEntityPolicySubject
in interface KAoSEntityDescription
isPolicySubject
- The boolean indicating whether the entity will/will not be governed by policies.public boolean isEntityRunning()
KAoSEntityDescription
isEntityRunning
in interface KAoSEntityDescription
public void setIsEntityRunning(boolean isEntityRunning)
KAoSEntityDescription
setIsEntityRunning
in interface KAoSEntityDescription
isEntityRunning
- 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 KAoSEntityDescription
properties
- 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 |