kaos.kpat.models
Class ModelObject

java.lang.Object
  extended by kaos.kpat.models.ModelObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, iModelObject
Direct Known Subclasses:
ModelActorClass, ModelAgent, ModelAgentContainer, ModelDomain, ModelExecEnv, ModelGuard, ModelHost

public abstract class ModelObject
extends java.lang.Object
implements iModelObject, java.io.Serializable, java.lang.Comparable

ModelObject Abstract superclass for ModelAgent, ModelAgentContainer, ModelExecEnv, ModelHost, ModelDomain $Revision: 1.4 $

See Also:
Serialized Form

Field Summary
protected  boolean _isGovernable
           
protected  java.lang.String _name
           
protected  java.lang.String _nameJTP
           
protected  ModelPolicyList _policyList
           
 
Constructor Summary
ModelObject(java.lang.String name, boolean isGovernable, ModelPolicyList policyList)
          Constructor.
 
Method Summary
 int compareTo(java.lang.Object o)
          implements Comparable
 java.lang.String getName()
          Returns the name of this ModelObject
 java.lang.String getNameJTP()
          Returns the JTP compatible name of this ModelObject
 ModelPolicyList getPolicies()
          Returns Polices for this ModelAgentContainer
abstract  java.lang.String getScope()
          Returns the scope
 boolean isGovernable()
           
 void setNameJTP(java.lang.String name)
          Sets the JTP compatible name of this ModelObject
abstract  java.lang.String toString()
          toString Used by the JTable for displaying an object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_name

protected java.lang.String _name

_nameJTP

protected java.lang.String _nameJTP

_isGovernable

protected boolean _isGovernable

_policyList

protected ModelPolicyList _policyList
Constructor Detail

ModelObject

public ModelObject(java.lang.String name,
                   boolean isGovernable,
                   ModelPolicyList policyList)
Constructor. Note that this does NOT copy the 'policies' list.

Method Detail

toString

public abstract java.lang.String toString()
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
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Returns the name of this ModelObject

Specified by:
getName in interface iModelObject

getNameJTP

public java.lang.String getNameJTP()
Returns the JTP compatible name of this ModelObject

Specified by:
getNameJTP in interface iModelObject

setNameJTP

public void setNameJTP(java.lang.String name)
Sets the JTP compatible name of this ModelObject


getScope

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

Specified by:
getScope in interface iModelObject

compareTo

public int compareTo(java.lang.Object o)
implements Comparable

Specified by:
compareTo in interface java.lang.Comparable

isGovernable

public boolean isGovernable()
Specified by:
isGovernable in interface iModelObject

getPolicies

public ModelPolicyList getPolicies()
Returns Polices for this ModelAgentContainer

Specified by:
getPolicies in interface iModelObject