--- trunk/OOPSE/libBASS/Globals.hpp 2003/04/07 14:30:12 465 +++ trunk/OOPSE/libBASS/Globals.hpp 2003/10/28 16:03:06 828 @@ -1,13 +1,19 @@ #ifndef __GLOBALS_H__ #define __GLOBALS_H__ -#include +#include +#include +#include + #include "BASS_interface.h" #include "Component.hpp" #include "LinkedCommand.hpp" #include "MakeStamps.hpp" +#include "ZconStamp.hpp" +using namespace std; + class Globals{ public: @@ -17,8 +23,11 @@ class Globals{ (public) int newComponent( event* the_event ); int componentAssign( event* the_event ); - int componentStartIndex( event* the_event ); int componentEnd( event* the_event ); + + int newZconstraint( event* the_event ); + int zConstraintAssign( event* the_event ); + int zConstraintEnd( event* the_event ); int globalAssign( event* the_event ); int globalEnd( event* the_event ); @@ -27,10 +36,15 @@ class Globals{ (public) int getNComponents( void ) { return n_components; } double getTargetTemp( void ) { return target_temp; } double getTargetPressure( void ) { return target_pressure; } + double getQmass( void ) { return q_mass; } + double getTauThermostat( void ) { return tau_thermostat; } + double getTauBarostat( void ) { return tau_barostat; } char* getEnsemble( void ) { return ensemble; } double getDt( void ) { return dt; } double getRunTime( void ) { return run_time; } + + int getNzConstraints( void ) { return n_zConstraints; } char* getInitialConfig( void ) { return initial_config; } char* getFinalConfig( void ) { return final_config; } int getNMol( void ) { return n_mol; } @@ -41,14 +55,20 @@ class Globals{ (public) double getBoxZ( void ) { return box_z; } double getSampleTime( void ) { return sample_time; } double getStatusTime( void ) { return status_time; } + double getResetTime( void ) { return resetTime; } double getThermalTime( void ) { return thermal_time; } double getDielectric( void ) { return dielectric; } double getECR( void) { return ecr; } double getEST( void) { return est; } int getTempSet( void ) { return tempSet; } + int getUseInitTime( void ) { return useInitTime; } int getPBC( void ) { return usePBC;} int getUseRF( void ) { return useRF;} char* getMixingRule( void) { return mixingRule;} + double getZconsTime(void) { return zcons_time;} + double getZconsTol(void) { return zcons_tol;} + char* getZconsForcePolicy(void) { return zconsForcePolicy;} + int getSeed(void) { return seed;} short int haveInitialConfig( void ) { return have_initial_config; } short int haveFinalConfig( void ) { return have_final_config; } @@ -59,20 +79,30 @@ class Globals{ (public) short int haveBoxY( void ) { return have_box_y; } short int haveBoxZ( void ) { return have_box_z; } short int haveSampleTime( void ) { return have_sample_time; } + short int haveResetTime( void ) { return have_reset_time; } short int haveStatusTime( void ) { return have_status_time; } short int haveThermalTime( void ) { return have_thermal_time; } short int haveECR( void ) { return have_ecr; } short int haveEST( void ) { return have_est; } short int haveDielectric( void ) { return have_dielectric; } short int haveTempSet( void ) { return have_tempSet; } - + short int haveTargetPressure( void ){ return have_target_pressure; } + short int haveQmass( void ) { return have_q_mass; } + short int haveTauThermostat( void ) { return have_tau_thermostat;} + short int haveTauBarostat( void ) { return have_tau_barostat;} + short int haveZconstraintTime(void) { return have_zcons_time; } + short int haveZconstraints( void ) { return have_zConstraints;} + short int haveZconsTol(void) {return have_zcons_tol;} + short int haveZconsForcePolicy(void) { return have_zcons_force_policy;} + short int haveSeed(void) { return have_seed;} /* other accessors */ Component** getComponents( void ) { return components; } + ZconStamp** getZconStamp( void ) { return zConstraints; } private: - static const int hash_size = 23; - static const int hash_shift = 4; + int hash_size; + int hash_shift; int hash( char* text ); void addHash( char* text, int token ); LinkedCommand** command_table; @@ -81,8 +111,13 @@ class Globals{ (public) Component* current_component; Component** components; // the array of components + + ZconStamp* current_zConstraint; + ZconStamp** zConstraints; // the array of zConstraints + char force_field[100]; int n_components; + int n_zConstraints; double target_temp; double target_pressure; char ensemble[100]; @@ -97,13 +132,22 @@ class Globals{ (public) double box_x, box_y, box_z; double sample_time; double status_time; + double resetTime; double thermal_time; double ecr; double est; double dielectric; int tempSet; + int useInitTime; int usePBC; int useRF; + double q_mass; + double tau_thermostat; + double tau_barostat; + double zcons_time; + double zcons_tol; + char zconsForcePolicy[100]; + int seed; //required arguments short int have_force_field, have_n_components, have_target_temp; @@ -113,8 +157,11 @@ class Globals{ (public) short int have_initial_config, have_final_config, have_n_mol; short int have_density, have_box, have_box_x, have_box_y, have_box_z; short int have_sample_time, have_status_time, have_ecr, have_dielectric; - short int have_tempSet, have_thermal_time, have_est; - + short int have_tempSet, have_thermal_time, have_est, have_q_mass; + short int have_tau_thermostat, have_tau_barostat; + short int have_zcons_time, have_zConstraints, have_n_zConstraints; + short int have_zcons_tol, have_seed; + short int have_zcons_force_policy, have_reset_time; };