kaos.kpat.models
Class ModelDomain

java.lang.Object
  extended by kaos.kpat.models.ModelObject
      extended by kaos.kpat.models.ModelDomain
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, iModelDomain, iModelObject

public class ModelDomain
extends ModelObject
implements iModelDomain, java.io.Serializable

Representation of a Domain for the KAoS 2000 visualization tool. $Revision: 1.4 $

See Also:
Serialized Form

Field Summary
 
Fields inherited from class kaos.kpat.models.ModelObject
_isGovernable, _name, _nameJTP, _policyList
 
Constructor Summary
ModelDomain(java.lang.String name, boolean isGovernable, ModelPolicyList policies, ModelHostList hosts, ModelDomainList subdomains, ModelAgentList virtualAgents)
          Constructor
 
Method Summary
 java.lang.Object clone()
           
 DomainDescription getDescription()
           
 ModelHostList getHosts()
          Returns the Hosts in this domain.
 java.lang.String getScope()
          Returns the scope
 ModelDomainList getSubdomains()
           
 ModelAgentList getVirtualAgents()
           
 void setDescription(DomainDescription desc)
           
 void setHosts(ModelHostList hosts)
          Replace the existing list of ExecEnvs with a new list.
 void setSubdomains(ModelDomainList subdomains)
           
 java.lang.String toString()
          Returns the Domain name.
 
Methods inherited from class kaos.kpat.models.ModelObject
compareTo, getName, getNameJTP, getPolicies, isGovernable, setNameJTP
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface kaos.kpat.models.iModelObject
getName, getNameJTP, getPolicies, isGovernable
 

Constructor Detail

ModelDomain

public ModelDomain(java.lang.String name,
                   boolean isGovernable,
                   ModelPolicyList policies,
                   ModelHostList hosts,
                   ModelDomainList subdomains,
                   ModelAgentList virtualAgents)
Constructor

Method Detail

getHosts

public ModelHostList getHosts()
Returns the Hosts in this domain.

Specified by:
getHosts in interface iModelDomain

toString

public java.lang.String toString()
Returns the Domain name. This is used by JTree and JTable to display this entity.

Specified by:
toString in interface iModelObject
Specified by:
toString in class ModelObject

getScope

public java.lang.String getScope()
Returns the scope

Specified by:
getScope in interface iModelObject
Specified by:
getScope in class ModelObject

setHosts

public void setHosts(ModelHostList hosts)
Replace the existing list of ExecEnvs with a new list.


setSubdomains

public void setSubdomains(ModelDomainList subdomains)

getSubdomains

public ModelDomainList getSubdomains()

getVirtualAgents

public ModelAgentList getVirtualAgents()

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

setDescription

public void setDescription(DomainDescription desc)

getDescription

public DomainDescription getDescription()