edu.cmu.relativelayout.equation
Interface Equation


public interface Equation

This is the interface all classes that support equations need to implement.

Version:
0.1
Author:
Rachael Bennett (srbennett@gmail.com)

Method Summary
 double getCoefficient(Variable v)
          Gets the coefficient of the variable specified in the parameter.
 double getRightHandSide()
          The right hand side of this equation, when all variables are on the left.
 List<Variable> getVariables()
          Returns a list of all the variables used in this equation.
 

Method Detail

getCoefficient

double getCoefficient(Variable v)
Gets the coefficient of the variable specified in the parameter.

Parameters:
v - the variable to get the coefficient of

getRightHandSide

double getRightHandSide()
The right hand side of this equation, when all variables are on the left.


getVariables

List<Variable> getVariables()
Returns a list of all the variables used in this equation.