PPL Logo

pose Class Reference

Coordinator of simulation initialization, start and termination. More...

#include <pose.h>

Inheritance diagram for pose:

Inheritance graph
[legend]
Collaboration diagram for pose:

Collaboration graph
[legend]

Public Member Functions

 pose (void)
 Basic Constructor.
 pose (CkMigrateMessage *)
 Migration constructor.
void pup (PUP::er &p)
 PUP routine.
void registerCallBack (callBack *)
 Register the callback with POSE.
void stop ()
 Stop the simulation.
void prepExit ()
 Exit the simulation.
void exit ()
 Exit the simulation.

Private Attributes

CkCallback cb
 A callback to execute on termination.
int callBackSet
 Flag to indicate if a callback will be used.

Detailed Description

Coordinator of simulation initialization, start and termination.

Definition at line 179 of file pose.h.


Constructor & Destructor Documentation

pose::pose ( void   )  [inline]

Basic Constructor.

Definition at line 189 of file pose.h.

References Converse::CkMyPe().

Here is the call graph for this function:

pose::pose ( CkMigrateMessage  )  [inline]

Migration constructor.

Definition at line 196 of file pose.h.


Member Function Documentation

void pose::pup ( PUP::er p  )  [inline, virtual]

PUP routine.

Reimplemented from Chare.

Definition at line 198 of file pose.h.

References callBackSet, and cb.

void pose::registerCallBack ( callBack cbm  ) 

Register the callback with POSE.

Definition at line 231 of file pose.C.

References callBack::callback, callBackSet, and cb.

void pose::stop ( void   ) 

Stop the simulation.

Stops timer and gathers POSE statistics and proceeds to exit.

Definition at line 238 of file pose.C.

References CkStartQD(), POSE_Coordinator_ID, POSE_GlobalClock, POSE_Objects, poseIndexOfStopEvent, and seqCheckpointInProgress.

Here is the call graph for this function:

void pose::prepExit ( void   ) 

Exit the simulation.

dump stats if enabled and exit

Executes callback before terminating program. handle stats output before exiting if necessary

Definition at line 262 of file pose.C.

References Converse::CkNumPes(), CmiWallTimer(), POSE_exit(), sim_timer, POSE_Config::stats, and theLocalStats.

Here is the call graph for this function:

void pose::exit ( void   ) 

Exit the simulation.

Definition at line 286 of file pose.C.

References callBackSet, cb, CkExit(), and CkCallback::send().

Here is the call graph for this function:


Field Documentation

CkCallback pose::cb [private]

A callback to execute on termination.

If this is used, control is turned over to this at the very end of the simulation.

Definition at line 184 of file pose.h.

Referenced by exit(), pup(), and registerCallBack().

Flag to indicate if a callback will be used.

Definition at line 186 of file pose.h.

Referenced by exit(), pup(), and registerCallBack().


The documentation for this class was generated from the following files:

Generated on Mon Sep 21 08:28:40 2020 for Charm++ by  doxygen 1.5.5