ponderToolkit.compiler.codeGen.policyObjects
Class SubjectTarget

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.policyObjects.SubjectTarget
All Implemented Interfaces:
java.io.Serializable, SubjectTargetI

public class SubjectTarget
extends java.lang.Object
implements SubjectTargetI, java.io.Serializable

Function: Models a Subject/Target for a Basic policy

See Also:
Serialized Form

Constructor Summary
SubjectTarget()
          Constructs a new SubjectTarget.
SubjectTarget(boolean newIsSubject)
          Constructs a new SubjectTarget and indicates whether it is used to represent a Subject or not (i.e.
SubjectTarget(DomainScopeExprI newDse, boolean newIsSubject)
          Constructs a new SubjectTarget and indicates whether it is used to represent a Subject or not (i.e.
 
Method Summary
 java.lang.String getAnalysisCode()
          return the Prolog code required by the analysis system
 DomainScopeExprI getDomainScopeExpression()
          return the domain-scope-expression object of this subject/target
 java.lang.String getString()
          Return a String representation of the SubjectTarget
 java.lang.String getType()
          return the name type of the subject/target - null if it is not specified
 boolean isSubject()
          Return True if this represents a Subject, false if it represents a Target
 void setDse(DomainScopeExprI newDse)
          Set the DomainScopeExpression for this Subject/Target
 void setIsSubject(boolean newIsSubject)
          Specify whether this represents a Subject or a Target.
 void setType(java.lang.String newType)
          Set the Type of this Subject/Target
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectTarget

public SubjectTarget(DomainScopeExprI newDse,
                     boolean newIsSubject)
Constructs a new SubjectTarget and indicates whether it is used to represent a Subject or not (i.e. or a Target!).

SubjectTarget

public SubjectTarget(boolean newIsSubject)
Constructs a new SubjectTarget and indicates whether it is used to represent a Subject or not (i.e. or a Target!). No DSE is yet specified

SubjectTarget

public SubjectTarget()
Constructs a new SubjectTarget. We don't know (or don't care) if it represents a Subject or a Target. No DSE is yet specified
Method Detail

setDse

public void setDse(DomainScopeExprI newDse)
Set the DomainScopeExpression for this Subject/Target

setType

public void setType(java.lang.String newType)
Set the Type of this Subject/Target

getType

public java.lang.String getType()
return the name type of the subject/target - null if it is not specified
Specified by:
getType in interface SubjectTargetI

getDomainScopeExpression

public DomainScopeExprI getDomainScopeExpression()
return the domain-scope-expression object of this subject/target
Specified by:
getDomainScopeExpression in interface SubjectTargetI

isSubject

public boolean isSubject()
Return True if this represents a Subject, false if it represents a Target
Specified by:
isSubject in interface SubjectTargetI

setIsSubject

public void setIsSubject(boolean newIsSubject)
Specify whether this represents a Subject or a Target. True means subject

getString

public java.lang.String getString()
Return a String representation of the SubjectTarget
Specified by:
getString in interface SubjectTargetI

getAnalysisCode

public java.lang.String getAnalysisCode()
Description copied from interface: SubjectTargetI
return the Prolog code required by the analysis system
Specified by:
getAnalysisCode in interface SubjectTargetI