Abstract interface for calculation state in a ParaSolver. Holds no data; derived classes own the fields. More...
#include <paraCalculationState.h>
Public Member Functions | |
| ParaCalculationState () | |
| virtual | ~ParaCalculationState () |
| virtual double | getCompTime ()=0 |
| getter of computing time of a subproblem More... | |
| virtual int | getNSolved ()=0 |
| getter of the number of tasks solved in a subproblem More... | |
| virtual int | getTerminationState ()=0 |
| getter of the termination state for solving the subproblem More... | |
| virtual std::string | toString ()=0 |
| stringfy ParaCalculationState More... | |
| virtual std::string | toSimpleString ()=0 |
| stringfy ParaCalculationState (simple string version) More... | |
| virtual void | send (ParaComm *comm, int destination, int tag)=0 |
| send this object to destination More... | |
| virtual void | receive (ParaComm *comm, int source, int tag)=0 |
| send this object to destination More... | |
Abstract interface for calculation state in a ParaSolver. Holds no data; derived classes own the fields.
Definition at line 52 of file paraCalculationState.h.
Definition at line 56 of file paraCalculationState.h.
|
virtual |
Definition at line 62 of file paraCalculationState.h.
|
pure virtual |
getter of computing time of a subproblem
Implemented in BbParaCalculationState.
|
pure virtual |
getter of the number of tasks solved in a subproblem
Implemented in BbParaCalculationState.
|
pure virtual |
getter of the termination state for solving the subproblem
Implemented in BbParaCalculationState.
|
pure virtual |
send this object to destination
| comm | communicator used to receive this object |
| source | source rank to receive this object |
| tag | tag to show this object |
Implemented in BbParaCalculationStateMpi, and BbParaCalculationStateTh.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagCompletionOfCalculation(), BbParaLoadCoordinator::processTagCompletionOfCalculation(), and BbParaLoadCoordinator::processTagSelfSlpitNodeCalcuationState().
|
pure virtual |
send this object to destination
| comm | communicator used to send this object |
| destination | destination rank to send |
| tag | tag to show this object |
Implemented in BbParaCalculationStateMpi, and BbParaCalculationStateTh.
Referenced by BbParaSolver::sendCompletionOfCalculation(), and BbParaSolver::sendCompletionOfCalculationWithoutSolving().
|
pure virtual |
stringfy ParaCalculationState (simple string version)
Implemented in BbParaCalculationState.
Referenced by BbParaLoadCoordinator::writeSubtreeInfo().
|
pure virtual |
stringfy ParaCalculationState
Implemented in BbParaCalculationState.
Referenced by ParaLoadCoordinator::writeTransferLog(), and ParaLoadCoordinator::writeTransferLogInRacing().