ponderToolkit.compiler.codeGen.interfaces
Interface CompositePolicyTypeI

All Known Implementing Classes:
CompositePolicyType

public interface CompositePolicyTypeI

Function:This interface must be implemented by the classes needed to model a composite policy type object. It provides the functionatly to instantiate the policies within it and also to get the base types (from which it inherits) and also all the types which inherit from it. This is necessary in order to implement the inheritance of composite policy types. This interface is only implemented at runtime.


Method Summary
 void addSubType(java.lang.String newSubType)
          Add a new sub-type.
 TypesListI getBaseTypes()
          return the list of base-types for this composite policy type
 InstantiationsListI getInstancesList()
          return the list of names for the instances that must be created together with the parameters list that must be passed to each
 java.lang.String getName()
           
 TypesListI getSubTypes()
          return the list of sub-types for this composite policy type
 int getType()
           
 void instantiate(java.util.LinkedList parameters)
          Instantiate this Composite Policy
 

Method Detail

getName

public java.lang.String getName()
Returns:
the name of the composite policy

getType

public int getType()
Returns:
the type of the composite policy (an integer value from CompositePolicyI

instantiate

public void instantiate(java.util.LinkedList parameters)
Instantiate this Composite Policy

getBaseTypes

public TypesListI getBaseTypes()
return the list of base-types for this composite policy type

getSubTypes

public TypesListI getSubTypes()
return the list of sub-types for this composite policy type

addSubType

public void addSubType(java.lang.String newSubType)
Add a new sub-type. A sub-type is a type which inherits from this
Parameters:
newSubType - The sub-type to add

getInstancesList

public InstantiationsListI getInstancesList()
return the list of names for the instances that must be created together with the parameters list that must be passed to each