#ifndef SUMMAND_H
#define SUMMAND_H
#include <ObjectList.h>
namespace LinearProgramming {
class LinearSpec;
class Variable;
class Summand {
public:
Summand(Summand* summand);
Summand(double coeff, Variable* var);
~Summand();
double Coeff();
void SetCoeff(double coeff);
Variable* Var();
void SetVar(Variable* var);
int32 VariableIndex();
private:
double fCoeff;
Variable* fVar;
};
typedef BObjectList<Summand, true> SummandList;
}
using LinearProgramming::Summand;
using LinearProgramming::SummandList;
#endif