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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeConstraint
public CompositeConstraint(ConstraintI newLeftConstr,
ConstraintI newRightConstr,
LogicalOpI newOp)
- Constructs a new CompositeConstraint
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