2 * Copyright 2007-2008, Christof Lutteroth, lutteroth@cs.auckland.ac.nz
3 * Copyright 2007-2008, James Kim, jkim202@ec.auckland.ac.nz
4 * Distributed under the terms of the MIT License.
7 #include "LinearSpec.h"
12 Summand::Summand(Summand
* summand
)
14 fCoeff(summand
->Coeff()),
20 Summand::Summand(double coeff
, Variable
* var
)
35 * Gets the summmand's coefficient.
37 * @return the summand's coefficient
47 * Sets the summmand's coefficient.
49 * @param coeff coefficient
52 Summand::SetCoeff(double coeff
)
59 * Gets the summand's variable.
61 * @return the summand's variable
71 * Sets the summand's variable.
76 Summand::SetVar(Variable
* var
)
83 Summand::VariableIndex()