ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/Globals.hpp
Revision: 11
Committed: Tue Jul 9 18:40:59 2002 UTC (22 years ago) by mmeineke
File size: 3726 byte(s)
Log Message:
This commit was generated by cvs2svn to compensate for changes in r10, which
included commits to RCS files with non-trunk default branches.

File Contents

# Content
1 #ifndef __GLOBALS_H__
2 #define __GLOBALS_H__
3
4 #include <cstdlib>
5
6 #include "BASS_interface.h"
7 #include "Component.hpp"
8 #include "LinkedCommand.hpp"
9 #include "MakeStamps.hpp"
10
11 class Globals{
12
13 public:
14
15 Globals();
16 ~Globals();
17
18 int newComponent( event* the_event );
19 int componentAssign( event* the_event );
20 int componentStartIndex( event* the_event );
21 int componentEnd( event* the_event );
22
23 int globalAssign( event* the_event );
24 int globalEnd( event* the_event );
25
26 char* getForceField( void ) { return force_field; }
27 int getNComponents( void ) { return n_components; }
28 double getTargetTemp( void ) { return target_temp; }
29 char* getEnsemble( void ) { return ensemble; }
30 double getDt( void ) { return dt; }
31 double getRunTime( void ) { return run_time; }
32
33 char* getInitialConfig( void ) { return initial_config; }
34 char* getFinalConfig( void ) { return final_config; }
35 int getNMol( void ) { return n_mol; }
36 double getDensity( void ) { return density; }
37 double getBox( void ) { return box; }
38 double getBoxX( void ) { return box_x; }
39 double getBoxY( void ) { return box_y; }
40 double getBoxZ( void ) { return box_z; }
41 double getSampleTime( void ) { return sample_time; }
42 double getStatusTime( void ) { return status_time; }
43 double getThermalTime( void ) { return thermal_time; }
44 double getDielectric( void ) { return dielectric; }
45 double getRRF( void) { return rRF; }
46 int getTempSet( void ) { return tempSet; }
47
48
49 short int haveInitialConfig( void ) { return have_initial_config; }
50 short int haveFinalConfig( void ) { return have_final_config; }
51 short int haveNMol( void ) { return have_n_mol; }
52 short int haveDensity( void ) { return have_density; }
53 short int haveBox( void ) { return have_box; }
54 short int haveBoxX( void ) { return have_box_x; }
55 short int haveBoxY( void ) { return have_box_y; }
56 short int haveBoxZ( void ) { return have_box_z; }
57 short int haveSampleTime( void ) { return have_sample_time; }
58 short int haveStatusTime( void ) { return have_status_time; }
59 short int haveThermalTime( void ) { return have_thermal_time; }
60 short int haveRRF( void ) { return have_rrf; }
61 short int haveDielectric( void ) { return have_dielectric; }
62 short int haveTempSet( void ) { return have_tempSet; }
63
64
65 /* other accessors */
66 Component** getComponents( void ) { return components; }
67
68 private:
69
70 static const int hash_size = 23;
71 static const int hash_shift = 4;
72 int hash( char* text );
73 void addHash( char* text, int token );
74 LinkedCommand** command_table;
75
76 char* checkMe( void );
77
78 Component* current_component;
79 Component** components; // the array of components
80 char force_field[100];
81 int n_components;
82 double target_temp;
83 char ensemble[100];
84 double dt;
85 double run_time;
86 char initial_config[120];
87 char final_config[120];
88 int n_mol;
89 double density;
90 double box;
91 double box_x, box_y, box_z;
92 double sample_time;
93 double status_time;
94 double thermal_time;
95 double rRF;
96 double dielectric;
97 int tempSet;
98
99 //required arguments
100 short int have_force_field, have_n_components, have_target_temp;
101 short int have_ensemble, have_dt, have_run_time;
102
103 // optional arguments
104 short int have_initial_config, have_final_config, have_n_mol;
105 short int have_density, have_box, have_box_x, have_box_y, have_box_z;
106 short int have_sample_time, have_status_time, have_rrf, have_dielectric;
107 short int have_tempSet, have_thermal_time;
108 };
109
110 #endif