ponderToolkit.compiler.codeGen.policyObjects.constraints
Class CompositeConstraint

java.lang.Object
  |
  +--ponderToolkit.compiler.codeGen.policyObjects.constraints.Constraint
        |
        +--ponderToolkit.compiler.codeGen.policyObjects.constraints.CompositeConstraint
All Implemented Interfaces:
CompositeConstraintI, ConstraintI, java.io.Serializable

public class CompositeConstraint
extends Constraint
implements CompositeConstraintI, java.io.Serializable

Function: Models a Composite Constraint.

See Also:
Serialized Form

Fields inherited from interface ponderToolkit.compiler.codeGen.interfaces.constraints.ConstraintI
ACTION_CONSTRAINT, COMPOSITE_CONSTRAINT, EVENT_CONSTRAINT, LIBRARY_CALL_CONSTRAINT, SUBJECT_CONSTRAINT, SYSTEM_CONSTRAINT, TARGET_CONSTRAINT, TIME_CONSTRAINT
 
Constructor Summary
CompositeConstraint(ConstraintI newLeftConstr, ConstraintI newRightConstr, LogicalOpI newOp)
          Constructs a new CompositeConstraint
 
Method Summary
 java.lang.String getAnalysisCode()
          return the Prolog code required by the analysis system
 ConstraintI getLeftConstraint()
          Get the left Constraint
 LogicalOpI getLogicalOp()
          Get the logical operator
 ConstraintI getRightConstraint()
          Get the right Constraint
 java.lang.String getString()
          Return a String representation of the Constraint
 int getType()
          Return the type of the Constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeConstraint

public CompositeConstraint(ConstraintI newLeftConstr,
                           ConstraintI newRightConstr,
                           LogicalOpI newOp)
Constructs a new CompositeConstraint
Method Detail

getLeftConstraint

public ConstraintI getLeftConstraint()
Get the left Constraint
Specified by:
getLeftConstraint in interface CompositeConstraintI

getRightConstraint

public ConstraintI getRightConstraint()
Get the right Constraint
Specified by:
getRightConstraint in interface CompositeConstraintI

getLogicalOp

public LogicalOpI getLogicalOp()
Get the logical operator
Specified by:
getLogicalOp in interface CompositeConstraintI

getType

public int getType()
Return the type of the Constraint
Specified by:
getType in interface ConstraintI
Overrides:
getType in class Constraint

getString

public java.lang.String getString()
Return a String representation of the Constraint
Specified by:
getString in interface ConstraintI
Overrides:
getString in class Constraint

getAnalysisCode

public java.lang.String getAnalysisCode()
return the Prolog code required by the analysis system
Specified by:
getAnalysisCode in interface ConstraintI
Overrides:
getAnalysisCode in class Constraint