class ParaSolverState (ParaSolver state object for notification message) More...
#include <paraSolverState.h>
Public Member Functions | |
ParaSolverState () | |
default constructor More... | |
ParaSolverState (const ParaSolverState ¶SolverState) | |
copy constructor More... | |
ParaSolverState (int inRacingStage, unsigned int inNotificationId, int inLcId, int inGlobalSubtreeIdInLc, double inDetTime) | |
constructor More... | |
virtual | ~ParaSolverState () |
destractor More... | |
bool | isRacingStage () |
getter of isRacingStage More... | |
unsigned int | getNotificaionId () |
getter of notification id More... | |
int | getLcId () |
getter of LoadCoordintor id More... | |
int | getGlobalSubtreeId () |
getter of global subtree id More... | |
double | getDeterministicTime () |
getter of deterministic time More... | |
virtual std::string | toString ()=0 |
stringfy ParaSolverState More... | |
virtual void | send (ParaComm *comm, int destination, int tag)=0 |
send this object More... | |
virtual void | receive (ParaComm *comm, int source, int tag)=0 |
receive this object More... | |
Protected Attributes | |
int | racingStage |
if this value is 1, solver is in racing stage More... | |
unsigned int | notificationId |
id for this notification More... | |
int | lcId |
lc id of current ParaTask More... | |
int | globalSubtreeIdInLc |
global subtree id of current ParaTask More... | |
double | detTime |
deterministic time, -1: should be non-deterministic More... | |
class ParaSolverState (ParaSolver state object for notification message)
Definition at line 50 of file paraSolverState.h.
ParaSolverState | ( | ) |
default constructor
Definition at line 66 of file paraSolverState.h.
ParaSolverState | ( | const ParaSolverState & | paraSolverState | ) |
copy constructor
Definition at line 79 of file paraSolverState.h.
ParaSolverState | ( | int | inRacingStage, |
unsigned int | inNotificationId, | ||
int | inLcId, | ||
int | inGlobalSubtreeIdInLc, | ||
double | inDetTime | ||
) |
constructor
inRacingStage | if this value is 1, solver is in racing stage |
inNotificationId | id for this notification |
inLcId | lc id of current ParaTask |
inGlobalSubtreeIdInLc | global subtree id of current ParaTask |
inDetTime | deterministic time, -1: should be non-deterministic |
Definition at line 93 of file paraSolverState.h.
|
virtual |
destractor
Definition at line 111 of file paraSolverState.h.
double getDeterministicTime | ( | ) |
getter of deterministic time
Definition at line 160 of file paraSolverState.h.
References ParaSolverState::detTime.
int getGlobalSubtreeId | ( | ) |
getter of global subtree id
Definition at line 150 of file paraSolverState.h.
References ParaSolverState::globalSubtreeIdInLc.
int getLcId | ( | ) |
getter of LoadCoordintor id
Definition at line 140 of file paraSolverState.h.
References ParaSolverState::lcId.
unsigned int getNotificaionId | ( | ) |
getter of notification id
Definition at line 130 of file paraSolverState.h.
References ParaSolverState::notificationId.
bool isRacingStage | ( | ) |
getter of isRacingStage
Definition at line 120 of file paraSolverState.h.
References ParaSolverState::racingStage.
|
pure virtual |
receive this object
comm | communicator used |
source | source rank |
tag | TagSolverState |
Implemented in BbParaSolverStateMpi, and BbParaSolverStateTh.
Referenced by BbParaLoadCoordinator::processRacingRampUpTagSolverState(), and BbParaLoadCoordinator::processTagSolverState().
|
pure virtual |
send this object
comm | communicator used |
destination | destination rank |
tag | TagSolverState |
Implemented in BbParaSolverStateMpi, and BbParaSolverStateTh.
Referenced by BbParaSolver::sendSolverState().
|
pure virtual |
stringfy ParaSolverState
Implemented in BbParaSolverState.
|
protected |
deterministic time, -1: should be non-deterministic
Definition at line 59 of file paraSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), ParaSolverState::getDeterministicTime(), BbParaSolverState::getDeterministicTime(), and BbParaSolverStateTh::receive().
|
protected |
global subtree id of current ParaTask
Definition at line 58 of file paraSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), ParaSolverState::getGlobalSubtreeId(), BbParaSolverState::getGlobalSubtreeId(), BbParaSolverStateTh::receive(), and BbParaSolverState::toString().
|
protected |
lc id of current ParaTask
Definition at line 57 of file paraSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), ParaSolverState::getLcId(), BbParaSolverState::getLcId(), BbParaSolverStateTh::receive(), and BbParaSolverState::toString().
|
protected |
id for this notification
Definition at line 56 of file paraSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), ParaSolverState::getNotificaionId(), BbParaSolverState::getNotificaionId(), BbParaSolverStateTh::receive(), and BbParaSolverState::toString().
|
protected |
if this value is 1, solver is in racing stage
Definition at line 55 of file paraSolverState.h.
Referenced by BbParaSolverStateMpi::createDatatype(), BbParaSolverStateTh::createDatatype(), ParaSolverState::isRacingStage(), BbParaSolverState::isRacingStage(), BbParaSolverStateMpi::receive(), BbParaSolverStateTh::receive(), BbParaSolverStateMpi::send(), and BbParaSolverState::toString().