--- trunk/OOPSE/libBASS/Globals.hpp 2003/04/07 14:30:12 465 +++ trunk/OOPSE/libBASS/Globals.hpp 2003/08/12 21:44:06 690 @@ -1,24 +1,33 @@ #ifndef __GLOBALS_H__ #define __GLOBALS_H__ +#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: Globals(); ~Globals(); - + 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; } @@ -49,6 +63,8 @@ class Globals{ (public) 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;} short int haveInitialConfig( void ) { return have_initial_config; } short int haveFinalConfig( void ) { return have_final_config; } @@ -65,9 +81,17 @@ class Globals{ (public) 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;} /* other accessors */ Component** getComponents( void ) { return components; } + ZconStamp** getZconStamp( void ) { return zConstraints; } private: @@ -81,8 +105,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]; @@ -104,6 +133,11 @@ class Globals{ (public) int tempSet; int usePBC; int useRF; + double q_mass; + double tau_thermostat; + double tau_barostat; + double zcons_time; + double zcons_tol; //required arguments short int have_force_field, have_n_components, have_target_temp; @@ -113,8 +147,9 @@ 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, have_zcons_tol; };