lij.model
Class ConstraintComparison
java.lang.Object
lij.model.ConstraintComparison
- All Implemented Interfaces:
- Constraint
public class ConstraintComparison
- extends java.lang.Object
- implements Constraint
This implementation of a Constraint is used to perform a comparison between
two arguments (values (including lists) or variables).
- Author:
- Nikolaos Chatzinikolaou
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
type
private ConstraintComparison.Type type
argument1
private Argument argument1
argument2
private Argument argument2
ConstraintComparison
public ConstraintComparison(ConstraintComparison.Type _type,
Argument _argument1,
Argument _argument2)
- Constructor.
- Parameters:
_type
- The type of the comparison (one of EQUAL_TO, LESS_THAN or
GREATER_THAN)._argument1
- The LHS Argument._argument2
- The RHS Argument.
getType
public ConstraintComparison.Type getType()
- Accessor.
- Returns:
- The type of the comparison (one of EQUAL_TO, LESS_THAN or
GREATER_THAN).
getArgument1
public Argument getArgument1()
- Accessor.
- Returns:
- The LHS Argument.
getArgument2
public Argument getArgument2()
- Accessor.
- Returns:
- The RHS Argument.
clone
public java.lang.Object clone()
- Specified by:
clone
in interface Constraint
- Overrides:
clone
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object