37#ifndef __PARA_SOLVER_TERMINATION_STATE_H__
38#define __PARA_SOLVER_TERMINATION_STATE_H__
115 int inNParaTasksReceived,
116 int inNParaTasksSolved,
117 double inRunningTime,
118 double inIdleTimeToFirstParaTask,
119 double inIdleTimeBetweenParaTasks,
120 double inIddleTimeAfterLastParaTask,
121 double inIdleTimeToWaitNotificationId,
122 double inIdleTimeToWaitAckCompletion,
123 double inIdleTimeToWaitToken,
183 gzstream::ogzstream &out
191 gzstream::igzstream &in
Base class of communicator object.
class ParaSolverTerminationState (Solver termination state in a ParaSolver)
ParaSolverTerminationState()
default constructor
double idleTimeToWaitNotificationId
idle time to wait notification Id messages
virtual void send(ParaComm *comm, int destination, int tag)=0
send this object
virtual bool read(ParaComm *comm, gzstream::igzstream &in)=0
read ParaSolverTerminationState from checkpoint file
double detTime
deterministic time, -1: should be non-deterministic
double runningTime
this solver running time
int nParaTasksReceived
number of ParaTasks received in this ParaSolver
int getInterruptedMode()
getter of interrupted flag
double idleTimeBetweenParaTasks
idle time between ParaTasks processing
virtual void write(gzstream::ogzstream &out)=0
write ParaSolverTerminationState to checkpoint file
ParaSolverTerminationState(int inInterrupted, int inRank, int inNParaTasksReceived, int inNParaTasksSolved, double inRunningTime, double inIdleTimeToFirstParaTask, double inIdleTimeBetweenParaTasks, double inIddleTimeAfterLastParaTask, double inIdleTimeToWaitNotificationId, double inIdleTimeToWaitAckCompletion, double inIdleTimeToWaitToken, double inDetTime)
constructor
double getDeterministicTime()
getter of deterministic time
int interrupted
indicate that this solver is interrupted or not. 0: not interrupted, 1: interrupted,...
virtual ~ParaSolverTerminationState()
destructor
double idleTimeToWaitToken
double idleTimeToWaitAckCompletion
idle time to wait ack completion message
double idleTimeAfterLastParaTask
idle time after the last ParaTask was solved
double idleTimeToFirstParaTask
idle time to start solving the first ParaTask
virtual std::string toString(ParaInitiator *initiator)=0
stringfy ParaSolverTerminationState object
virtual void receive(ParaComm *comm, int source, int tag)=0
receive this object
static ScipParaCommTh * comm
Utilities for handling gzipped input and output streams.
Base class of communicator for UG Framework.
Base class of initiator that maintains original problem and incumbent solution.