This command runs a specific solver. More...
#include <model.h>
Public Member Functions | |
CommandSolve () | |
void | execute () |
string | getDescription () const |
Solver * | getSolver () const |
void | setSolver (Solver *s) |
void | undo () |
bool | undoable () const |
This command runs a specific solver.
Definition at line 1093 of file model.h.
frepple::CommandSolve::CommandSolve | ( | ) | [inline] |
void frepple::CommandSolve::execute | ( | ) | [virtual] |
The core of the execute method is a call to the solve() method of the solver.
Implements frepple::utils::Command.
Definition at line 40 of file model/actions.cpp.
string frepple::CommandSolve::getDescription | ( | ) | const [inline, virtual] |
Reimplemented from frepple::utils::Command.
Solver* frepple::CommandSolve::getSolver | ( | ) | const [inline] |
void frepple::CommandSolve::setSolver | ( | Solver * | s | ) | [inline] |
void frepple::CommandSolve::undo | ( | ) | [inline, virtual] |
This type of command can't be undone.
Reimplemented from frepple::utils::Command.
bool frepple::CommandSolve::undoable | ( | ) | const [inline, virtual] |
Running a solver can't be undone.
Reimplemented from frepple::utils::Command.