kaos.kpat.models
Class ModelExecEnv

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

public class ModelExecEnv
extends ModelObject
implements iModelExecEnv

$Revision: 1.2 $

See Also:
Serialized Form

Field Summary
 
Fields inherited from class kaos.kpat.models.ModelObject
_isGovernable, _name, _nameJTP, _policyList
 
Constructor Summary
ModelExecEnv(java.lang.String id, java.util.List guardIDs, ModelPolicyList policies, ModelAgentContainerList agentContainers, ModelAgentList agents, ModelHost host)
          Constructor for an execution environment
 
Method Summary
 java.lang.Object clone()
           
 ModelAgentContainerList getAgentContainers()
          returns the agent containers in this execution environment
 ModelAgentList getAgents()
          returns the agents not contained in an agent container operating in this execution environment
 java.util.List getGuardIDs()
          returns the ids of guards for this execution environment
 iModelHost getHost()
          returns the host that this execution environment is running on
 java.lang.String getScope()
          Returns the scope
 java.lang.String toString()
          toString Used by the JTable for displaying an object.
 
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

ModelExecEnv

public ModelExecEnv(java.lang.String id,
                    java.util.List guardIDs,
                    ModelPolicyList policies,
                    ModelAgentContainerList agentContainers,
                    ModelAgentList agents,
                    ModelHost host)
Constructor for an execution environment

Method Detail

getGuardIDs

public java.util.List getGuardIDs()
Description copied from interface: iModelExecEnv
returns the ids of guards for this execution environment

Specified by:
getGuardIDs in interface iModelExecEnv

getScope

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

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

getAgentContainers

public ModelAgentContainerList getAgentContainers()
returns the agent containers in this execution environment

Specified by:
getAgentContainers in interface iModelExecEnv

getAgents

public ModelAgentList getAgents()
Description copied from interface: iModelExecEnv
returns the agents not contained in an agent container operating in this execution environment

Specified by:
getAgents in interface iModelExecEnv

getHost

public iModelHost getHost()
Description copied from interface: iModelExecEnv
returns the host that this execution environment is running on

Specified by:
getHost in interface iModelExecEnv

clone

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

toString

public java.lang.String toString()
Description copied from class: ModelObject
toString Used by the JTable for displaying an object. Required by iModelObject i/f Subclass has to define this.

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