kaos.core.service.directory
Class DefaultDomainDescription

java.lang.Object
  extended by BasicAgentDescription
      extended by kaos.core.service.directory.DefaultDomainDescription
All Implemented Interfaces:
DomainDescription

public class DefaultDomainDescription
extends BasicAgentDescription
implements DomainDescription

Defines the operations to define and access information about a KAoS domain. The information includes the name of the domain begin described, the name of the parent domain and a collection containing the names of immediate children domains.


Field Summary
 
Fields inherited from interface kaos.core.service.directory.DomainDescription
DOMAIN_CHILDREN_NAMES, DOMAIN_DEFAULT_MODALITY, DOMAIN_DEFAULT_PRIORITY, DOMAIN_MODALITY, DOMAIN_PARENT_NAME, DOMAIN_PRIORITY
 
Constructor Summary
DefaultDomainDescription()
           
 
Method Summary
 void addChildName(java.lang.String name)
          Add a domain name to the collection of domain names that are immediate children of the domain described by this description.
 java.util.List getChildrenNames()
          Obtain the names of the immediate children domains.
 java.lang.String getDomainName()
          Obtain the name of the domain described by this description.
 java.lang.String getModality()
          Obtain the authorization modality of the domain described by this description.
 java.lang.String getParentName()
          Obtain the name of the parent domain.
 java.lang.String getPriority()
          Obtain the priority of the domain described by this description.
 boolean removeChildName(java.lang.String name)
          Remove a domain name from the collection of names of immediate children domains.
 void removeParentName(java.lang.String name)
          Remove the name of the parent of the domain described by this description.
 void setChildrenNames(java.util.List domainNames)
          Set the names of the immediate children domains.
 void setDomainName(java.lang.String name)
          Set the name of the domain described by this description.
 void setModality(java.lang.String modality)
          Set the authorization modality of the domain described by this description.
 void setParentName(java.lang.String name)
          Set the name of the parent of the domain described by this description.
 void setPriority(java.lang.String priority)
          Set the priority of the domain described by this description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDomainDescription

public DefaultDomainDescription()
Method Detail

getChildrenNames

public java.util.List getChildrenNames()
Obtain the names of the immediate children domains.

Specified by:
getChildrenNames in interface DomainDescription
Returns:
List of domain names that are immediate children of domain that is described by this description.

setChildrenNames

public void setChildrenNames(java.util.List domainNames)
Set the names of the immediate children domains.

Specified by:
setChildrenNames in interface DomainDescription
Parameters:
domainNames - The domainNames containing a List of all names of domains that are immediate children of the domain described by this description.

addChildName

public void addChildName(java.lang.String name)
Add a domain name to the collection of domain names that are immediate children of the domain described by this description.

Specified by:
addChildName in interface DomainDescription
Parameters:
name - The name of a domain to be added to the collection of children domain names.

removeChildName

public boolean removeChildName(java.lang.String name)
Remove a domain name from the collection of names of immediate children domains.

Specified by:
removeChildName in interface DomainDescription
Parameters:
name - The name of a domain to be removed from the collection of names of children domains.
Returns:
true if the collection of domain names contained the specified name; otherwise return false.

setDomainName

public void setDomainName(java.lang.String name)
Set the name of the domain described by this description.

Specified by:
setDomainName in interface DomainDescription
Parameters:
name - The name of the domain this description refers to.

getDomainName

public java.lang.String getDomainName()
Obtain the name of the domain described by this description.

Specified by:
getDomainName in interface DomainDescription
Returns:
String containing the name of the domain this description refers to.

getModality

public java.lang.String getModality()
Obtain the authorization modality of the domain described by this description.

Specified by:
getModality in interface DomainDescription
Returns:
String containing the authorization modality of the domain this description refers to.

setModality

public void setModality(java.lang.String modality)
Set the authorization modality of the domain described by this description.

Specified by:
setModality in interface DomainDescription
Parameters:
modality - The modality of the domain described by this description.

getPriority

public java.lang.String getPriority()
Obtain the priority of the domain described by this description.

Specified by:
getPriority in interface DomainDescription
Returns:
String containing the priority of the domain this description refers to.

setPriority

public void setPriority(java.lang.String priority)
Set the priority of the domain described by this description.

Specified by:
setPriority in interface DomainDescription
Parameters:
priority - The priority of the domain described by this description.

setParentName

public void setParentName(java.lang.String name)
Set the name of the parent of the domain described by this description.

Specified by:
setParentName in interface DomainDescription
Parameters:
name - The name of the parent domain.

removeParentName

public void removeParentName(java.lang.String name)
Remove the name of the parent of the domain described by this description.

Specified by:
removeParentName in interface DomainDescription
Parameters:
name - The name of the parent domain to be removed as a parent.

getParentName

public java.lang.String getParentName()
Obtain the name of the parent domain.

Specified by:
getParentName in interface DomainDescription
Returns:
String containing the name of the parent domain.