#include <revolve.h>
Inheritance diagram for Schedule:
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. | |
Checkpoint * | get_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 | |
Checkpoint * | checkpoint |
int | snaps |
Number of snaps used are stored in snaps. | |
int | info |
This class stores the number of snaps and the checkpoints that have to be stored.
Definition at line 83 of file revolve.h.
Schedule::Schedule | ( | int | sn, | |
Checkpoint * | c | |||
) |
This constructor needs a given array.
This array is the initialisation of ch.
virtual ACTION::action Schedule::revolve | ( | ostream & | str | ) | [pure virtual] |
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] |
virtual int Schedule::get_fine | ( | ) | [pure virtual] |
virtual int Schedule::get_check | ( | ) | [pure virtual] |
virtual void Schedule::set_fine | ( | int | f | ) | [pure virtual] |
virtual void Schedule::set_capo | ( | int | c | ) | [pure virtual] |
int Schedule::get_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] |
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] |