Schedule Class Reference

Schedule is the basic class of all Checkpointing schedules.Basic class for all Checkpointing schedules. More...

#include <revolve.h>

Inheritance diagram for Schedule:

Offline Online Arevolve Moin Online_r2 Online_r3 List of all members.

Public Member Functions

 Schedule (int sn, Checkpoint *c)
 This constructor needs a given array.
 Schedule (int sn)
virtual ACTION::action revolve (ostream &str)=0
 This function does not do anything but must be derived.
int numforw (int steps, int snaps, ostream &str)
 The necessary number of forward steps without recording is calculated by the function NUMFORW(STEPS,SNAPS) STEPS denotes the total number of time steps, i.e.
virtual int get_capo ()=0
 This function is virtual.
virtual int get_fine ()=0
 This function is virtual.
virtual int get_check ()=0
 This function is virtual.
virtual void set_fine (int f)=0
 This function is virtual.
virtual void set_capo (int c)=0
 This function is virtual.
int get_snaps ()
 This function is virtual.
Checkpointget_CP ()
 This function returns the pointer of a Checkpoint class.
int get_advances ()
 This function returns the number of advances.
int get_shots ()
 This function returns the number of takeshots.
int get_commands ()
 This function returns the number of commands.
virtual int get_info ()
 This function returns the info.
 ~Schedule ()

Protected Attributes

Checkpointcheckpoint
int snaps
 Number of snaps used are stored in snaps.
int info

Detailed Description

Schedule is the basic class of all Checkpointing schedules.Basic class for all Checkpointing schedules.

This class stores the number of snaps and the checkpoints that have to be stored.

Definition at line 83 of file revolve.h.


Constructor & Destructor Documentation

Schedule::Schedule ( int  sn,
Checkpoint c 
)

This constructor needs a given array.

This array is the initialisation of ch.

Schedule::Schedule ( int  sn  ) 

Definition at line 90 of file revolve.h.

References snaps.

Schedule::~Schedule (  ) 

Definition at line 128 of file revolve.h.


Member Function Documentation

virtual ACTION::action Schedule::revolve ( ostream &  str  )  [pure virtual]

This function does not do anything but must be derived.

Implemented in Online, Online_r2, Online_r3, Arevolve, Moin, and Offline.

int Schedule::numforw ( int  steps,
int  snaps,
ostream &  str 
)

The necessary number of forward steps without recording is calculated by the function NUMFORW(STEPS,SNAPS) STEPS denotes the total number of time steps, i.e.

FINE-CAPO during the first call of REVOLVE. When SNAPS is less than 1 an error message will be given and -1 is returned as value.

Referenced by Revolve::numforw().

virtual int Schedule::get_capo (  )  [pure virtual]

This function is virtual.

Implemented in Online, Online_r2, Online_r3, and Offline.

virtual int Schedule::get_fine (  )  [pure virtual]

This function is virtual.

Implemented in Online, Online_r2, Online_r3, Arevolve, Moin, and Offline.

virtual int Schedule::get_check (  )  [pure virtual]

This function is virtual.

Implemented in Online, Online_r2, and Offline.

virtual void Schedule::set_fine ( int  f  )  [pure virtual]

This function is virtual.

Implemented in Online, Online_r2, Online_r3, Arevolve, Moin, and Offline.

virtual void Schedule::set_capo ( int  c  )  [pure virtual]

This function is virtual.

Implemented in Online, and Offline.

int Schedule::get_snaps (  ) 

This function is virtual.

Reimplemented in Offline.

Definition at line 113 of file revolve.h.

References snaps.

Checkpoint* Schedule::get_CP (  ) 

This function returns the pointer of a Checkpoint class.

Definition at line 116 of file revolve.h.

References checkpoint.

int Schedule::get_advances (  ) 

This function returns the number of advances.

Definition at line 119 of file revolve.h.

References Checkpoint::advances, and checkpoint.

Referenced by Revolve::getadvances().

int Schedule::get_shots (  ) 

This function returns the number of takeshots.

Definition at line 121 of file revolve.h.

References checkpoint, and Checkpoint::takeshots.

int Schedule::get_commands (  ) 

This function returns the number of commands.

Reimplemented in Offline.

Definition at line 123 of file revolve.h.

References checkpoint, and Checkpoint::commands.

virtual int Schedule::get_info (  )  [virtual]

This function returns the info.

Definition at line 125 of file revolve.h.

References info.


Member Data Documentation

Checkpoint* Schedule::checkpoint [protected]

Definition at line 131 of file revolve.h.

Referenced by get_advances(), Offline::get_commands(), get_commands(), get_CP(), and get_shots().

int Schedule::snaps [protected]

Number of snaps used are stored in snaps.

Definition at line 133 of file revolve.h.

Referenced by Offline::get_snaps(), get_snaps(), and Schedule().

int Schedule::info [protected]

Definition at line 134 of file revolve.h.

Referenced by get_info().


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for IWAVECORE by  doxygen 1.4.7