1 #ifndef OPENMM_CONTEXT_H_
2 #define OPENMM_CONTEXT_H_
35 #include "Integrator.h"
43 #include "internal/windowsExport.h"
99 const System& getSystem()
const;
111 const Platform& getPlatform()
const;
127 State getState(
int types,
bool enforcePeriodicBox=
false,
int groups=0xFFFFFFFF)
const;
139 void setState(
const State& state);
143 void setTime(
double time);
152 void setPositions(
const std::vector<Vec3>& positions);
159 void setVelocities(
const std::vector<Vec3>& velocities);
167 void setVelocitiesToTemperature(
double temperature,
int randomSeed=time(NULL));
173 double getParameter(
const std::string& name);
180 void setParameter(
const std::string& name,
double value);
192 void setPeriodicBoxVectors(
const Vec3& a,
const Vec3& b,
const Vec3& c);
199 void applyConstraints(
double tol);
205 void applyVelocityConstraints(
double tol);
212 void computeVirtualSites();
229 void createCheckpoint(std::ostream& stream);
249 void loadCheckpoint(std::istream& stream);
255 std::map<std::string, std::string> properties;