1 #ifndef OPENMM_CONTEXT_H_
2 #define OPENMM_CONTEXT_H_
35 #include "Integrator.h"
43 #include "internal/windowsExport.h"
99 const System& getSystem()
const;
115 const Platform& getPlatform()
const;
131 State getState(
int types,
bool enforcePeriodicBox=
false,
int groups=0xFFFFFFFF)
const;
135 void setTime(
double time);
144 void setPositions(
const std::vector<Vec3>& positions);
151 void setVelocities(
const std::vector<Vec3>& velocities);
159 void setVelocitiesToTemperature(
double temperature,
int randomSeed=time(NULL));
165 double getParameter(
const std::string& name);
172 void setParameter(
const std::string& name,
double value);
184 void setPeriodicBoxVectors(
const Vec3& a,
const Vec3& b,
const Vec3& c);
191 void applyConstraints(
double tol);
197 void applyVelocityConstraints(
double tol);
204 void computeVirtualSites();
221 void createCheckpoint(std::ostream& stream);
241 void loadCheckpoint(std::istream& stream);
247 std::map<std::string, std::string> properties;