CIDER Toolkit
Version 0.1.0-beta

au.edu.monash.csse.tonyj.cider.constraints
Interface ConstraintVariable

All Superinterfaces:
java.io.Serializable

public interface ConstraintVariable
extends java.io.Serializable

Constraint variables are used in Constraints and ConstraintExpressions. This interface defines how a constraint variable is manipulated. Classes that implement this interface should also define a no-argument constructor and must be Serializable.


Method Summary
 double getDesiredValue()
          Returns the goal value for this variable.
 double getSolvedValue()
          Returns the solved value for this variable.
 double getWeight()
          Returns the weight of this variable.
 void setDesiredValue(double value)
          Set the goal value for this variable.
 void setWeight(double weight)
          Sets the weight of this variable.
 

Method Detail

setDesiredValue

public void setDesiredValue(double value)
Set the goal value for this variable.

Parameters:
value - The goal value.

getDesiredValue

public double getDesiredValue()
Returns the goal value for this variable.


getSolvedValue

public double getSolvedValue()
Returns the solved value for this variable.


setWeight

public void setWeight(double weight)
Sets the weight of this variable.

Parameters:
weight - Weight value.

getWeight

public double getWeight()
Returns the weight of this variable.


CIDER Toolkit
Version 0.1.0-beta