ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/headers/Globals.hpp
Revision: 281
Committed: Mon Feb 24 21:25:15 2003 UTC (21 years, 4 months ago) by chuckv
File size: 3860 byte(s)
Log Message:
Changes they are a comming....

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 int getPBC( void ) {return usePBC;}
48 char* getMixingRule( void) { return mixingRule;}
49
50 short int haveInitialConfig( void ) { return have_initial_config; }
51 short int haveFinalConfig( void ) { return have_final_config; }
52 short int haveNMol( void ) { return have_n_mol; }
53 short int haveDensity( void ) { return have_density; }
54 short int haveBox( void ) { return have_box; }
55 short int haveBoxX( void ) { return have_box_x; }
56 short int haveBoxY( void ) { return have_box_y; }
57 short int haveBoxZ( void ) { return have_box_z; }
58 short int haveSampleTime( void ) { return have_sample_time; }
59 short int haveStatusTime( void ) { return have_status_time; }
60 short int haveThermalTime( void ) { return have_thermal_time; }
61 short int haveRRF( void ) { return have_rrf; }
62 short int haveDielectric( void ) { return have_dielectric; }
63 short int haveTempSet( void ) { return have_tempSet; }
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 char mixingRule[100];
85 double dt;
86 double run_time;
87 char initial_config[120];
88 char final_config[120];
89 int n_mol;
90 double density;
91 double box;
92 double box_x, box_y, box_z;
93 double sample_time;
94 double status_time;
95 double thermal_time;
96 double rRF;
97 double dielectric;
98 int tempSet;
99 int usePBC;
100
101 //required arguments
102 short int have_force_field, have_n_components, have_target_temp;
103 short int have_ensemble, have_dt, have_run_time;
104
105 // optional arguments
106 short int have_initial_config, have_final_config, have_n_mol;
107 short int have_density, have_box, have_box_x, have_box_y, have_box_z;
108 short int have_sample_time, have_status_time, have_rrf, have_dielectric;
109 short int have_tempSet, have_thermal_time;
110
111
112 };
113
114 #endif