|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectkaos.domain.KAoSDomainImpl
public class KAoSDomainImpl
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 | |
|---|---|
protected Logger |
_logger
|
| Constructor Summary | |
|---|---|
KAoSDomainImpl(DomainDescription desc)
|
|
KAoSDomainImpl(java.lang.String name)
|
|
KAoSDomainImpl(java.lang.String name,
Transport transport)
|
|
| Method Summary | |
|---|---|
void |
addChild(KAoSDomain childDomain)
Add the specified child KAoSDomain as a child of this KAoSDomain. |
void |
degisterAgent(KAoSActor agent)
Deregister agent represented by the given KAoSActor from this KAoSDomain. |
java.util.List |
getChildren()
Return a List of KAoSDomain, the immediate children of this KAoSDomain. |
java.lang.String |
getModality()
Obtain the authorization modality of the domain described by this description. |
java.lang.String |
getName()
Obtain the name of this KAoSDomain. |
KAoSDomain |
getParent()
Obtain the parent domain. |
java.lang.String |
getPriority()
Obtain the priority of the domain described by this description. |
void |
registerAgent(KAoSActor agent)
Register the specified KAoSActor in this domain. |
void |
removeChild(KAoSDomain childDomain)
Remove the specified childDomain from the collection of children of this KAoSDomain. |
void |
removeParent(KAoSDomain parent)
Remove the parent KAoSDomain. |
void |
setModality(java.lang.String modality)
Set the authorization modality of the domain described by this description. |
void |
setName(java.lang.String name)
Set the name of this KAoSDomain. |
void |
setParent(KAoSDomain parent)
Set the parent domain of this domain. |
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 |
| Field Detail |
|---|
protected Logger _logger
| Constructor Detail |
|---|
public KAoSDomainImpl(DomainDescription desc)
public KAoSDomainImpl(java.lang.String name)
public KAoSDomainImpl(java.lang.String name,
Transport transport)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public java.util.List getChildren()
getChildren in interface KAoSDomain
public void addChild(KAoSDomain childDomain)
throws HasParentException
addChild in interface KAoSDomainchildDomain - KAoSDomain to be added to this KAoSDomain as a child.
HasParentException - will be thrown if the childDomain has already a parent.
public void removeChild(KAoSDomain childDomain)
throws NotRegisteredException
removeChild in interface KAoSDomainchildDomain - KAoSDomain to be removed from the collection of children of this domain.
NotRegisteredException - will be thrown if this KAoSDomain does not have the specified childDomain as a child.public void setName(java.lang.String name)
setName in interface KAoSDomainname - The name of this KAoSDomain.public java.lang.String getName()
getName in interface KAoSDomain
public void setParent(KAoSDomain parent)
throws HasParentException
setParent in interface KAoSDomainparent - KAoSDomain, the parent of this domain.
HasParentException - will be thrown, if this domain has already a parent.public KAoSDomain getParent()
getParent in interface KAoSDomain
public void removeParent(KAoSDomain parent)
throws NotRegisteredException
removeParent in interface KAoSDomainparent - KAoSDomain to be removed as the parent.
NotRegisteredException - will be thrown if this KAoSDomain does not have the specified childDomain as the parent.public java.lang.String getModality()
getModality in interface KAoSDomainpublic void setModality(java.lang.String modality)
setModality in interface KAoSDomainmodality - The modality of the domain described by this description.public java.lang.String getPriority()
getPriority in interface KAoSDomainpublic void setPriority(java.lang.String priority)
setPriority in interface KAoSDomainpriority - The priority of the domain described by this description.
public void registerAgent(KAoSActor agent)
throws DomainFailure,
AlreadyRegisteredException
registerAgent in interface KAoSDomainagent - KAoSActor to be registered in this domain.
DomainFailure - if domain registration mechanism fails.
AlreadyRegistered - if the registering agent has been already registered in the domain.
AlreadyRegisteredException
public void degisterAgent(KAoSActor agent)
throws DomainFailure,
NotRegisteredException
degisterAgent in interface KAoSDomainagent - KAoSActor to be deregistered from this domain.
DomainFailure - if domain deregistration mechanism fails.
NotRegisteredException - if the deregistering agent has not been registered in this domain.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||