ponderToolkit.compiler.codeGen.intermediateCode
Class BasicPolicyICode

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.intermediateCode.BasicPolicyICode
All Implemented Interfaces:
BasicPolicyI
Direct Known Subclasses:
NegAuthorisationICode, ObligationICode, PosAuthorisationICode, RefrainICode

public abstract class BasicPolicyICode
extends java.lang.Object
implements BasicPolicyI

Function:This class models a wrapper around a basic policy object generated by the semantic analyser. It provides an interface to get the fields of that policy object. This class thus acts as the interface between the semantic analyser and the code generator.


Fields inherited from interface ponderToolkit.compiler.codeGen.interfaces.BasicPolicyI
AUTH_MINUS, AUTH_PLUS, DELEG_MINUS, DELEG_PLUS, OBLIG, REFRAIN
 
Constructor Summary
BasicPolicyICode(BasicPolicy newPolicy)
          Constructor
 
Method Summary
 ConstraintI getConstraint()
          getConstraint
 java.lang.String getDomainPath()
          get the Domain Path
 java.util.LinkedList getFormalParams()
          Set formal parameter list for this basic policy - if its a type
 boolean getIsType()
          getIsType - Is this a type?
 java.lang.String getName()
          getName
 java.lang.String getSourceText()
          get the source text of this policy
 SubjectTargetI getSubject()
          getSubject
 SubjectTargetI getTarget()
          getTarget
abstract  int getType()
          getType
 void setFormalParams(java.util.LinkedList newFormalParams)
          Set formal parameter list for this basic policy - if its a type
 void setSubject(SubjectTargetI newSubject)
          Does not do anything - just implementation of the interface
 void setTarget(SubjectTargetI newTarget)
          Does not do anything - just implementation of the interface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ponderToolkit.compiler.codeGen.interfaces.BasicPolicyI
getActualParamAt, setActualParams
 

Constructor Detail

BasicPolicyICode

public BasicPolicyICode(BasicPolicy newPolicy)
Constructor
Method Detail

setFormalParams

public void setFormalParams(java.util.LinkedList newFormalParams)
Set formal parameter list for this basic policy - if its a type

getFormalParams

public java.util.LinkedList getFormalParams()
Set formal parameter list for this basic policy - if its a type

getName

public java.lang.String getName()
getName
Specified by:
getName in interface BasicPolicyI

getDomainPath

public java.lang.String getDomainPath()
get the Domain Path
Specified by:
getDomainPath in interface BasicPolicyI

getIsType

public boolean getIsType()
getIsType - Is this a type?

getSubject

public SubjectTargetI getSubject()
getSubject
Specified by:
getSubject in interface BasicPolicyI

getTarget

public SubjectTargetI getTarget()
getTarget
Specified by:
getTarget in interface BasicPolicyI

getConstraint

public ConstraintI getConstraint()
getConstraint
Specified by:
getConstraint in interface BasicPolicyI

getSourceText

public java.lang.String getSourceText()
get the source text of this policy

getType

public abstract int getType()
getType
Specified by:
getType in interface BasicPolicyI

setSubject

public void setSubject(SubjectTargetI newSubject)
Does not do anything - just implementation of the interface
Specified by:
setSubject in interface BasicPolicyI

setTarget

public void setTarget(SubjectTargetI newTarget)
Does not do anything - just implementation of the interface
Specified by:
setTarget in interface BasicPolicyI