#include <snapShot.h>
Public Member Functions | |
Constructors and Destructors | |
SnapShot () throw () | |
The default constructor. | |
SnapShot (const SnapShot &snapshot) throw () | |
Copy constructor. | |
virtual | ~SnapShot () throw () |
The destructor. | |
Assignment | |
const SnapShot & | operator= (const SnapShot &snapshot) throw () |
Assignment operator. | |
virtual void | clear () throw () |
Clear method. | |
Predicates | |
bool | operator== (const SnapShot &snapshot) const throw () |
Equality operator. | |
bool | isValid () const throw () |
Indicates validity of the SnapShot. | |
Accessors | |
void | setIndex (Size index) throw () |
Set the index attribute. | |
Size | getIndex () const throw () |
Get the index of this instance. | |
void | setNumberOfAtoms (Size number_of_atoms) throw () |
Set the number of atoms that are covered by this snapshot. | |
Size | getNumberOfAtoms () const throw () |
Get the number of atoms that are covered by this snapshot. | |
void | setPotentialEnergy (DoubleReal potential_energy) throw () |
Set the value for the potential energy of this snapshot's system. | |
DoubleReal | getPotentialEnergy () const throw () |
Get the value for the potential energy of this snapshot's system. | |
void | setKineticEnergy (DoubleReal kinetic_energy) throw () |
Set the value for the kinetic energy of this snapshot's system. | |
DoubleReal | getKineticEnergy () const throw () |
Get the value for the kinetic energy of this snapshot's system. | |
void | setAtomPositions (const ::std::vector< Vector3 > &atom_postions) throw () |
Specify all atom positions. | |
const ::std::vector< Vector3 > & | getAtomPositions () const throw () |
Get the vector containing the atom postions. | |
void | setAtomVelocities (const ::std::vector< Vector3 > &atom_velocities) throw () |
Specify all atom velocities. | |
const ::std::vector< Vector3 > & | getAtomVelocities () const throw () |
Get the vector containing the atom velocitites. | |
void | setAtomForces (const ::std::vector< Vector3 > &atom_forces) throw () |
Specify all atom forces. | |
const ::std::vector< Vector3 > & | getAtomForces () const throw () |
Get all atom forces. | |
System interaction | |
void | takeSnapShot (const System &system) throw (Exception::OutOfMemory) |
Take a SnapShot from a system. | |
void | applySnapShot (System &system) const throw () |
Apply the data contained in a SnapShot to a System. | |
void | getAtomPositions (const System &system) throw (Exception::OutOfMemory) |
Read all atom positions from a System and store them in this instance of SnapShot. | |
void | setAtomPositions (System &system) const throw () |
Set all Atom positions of a System to the values stored in this instance of SnapShot. | |
void | getAtomVelocities (const System &system) throw (Exception::OutOfMemory) |
Read all atom velocities from a System and store them in this instance of SnapShot. | |
void | setAtomVelocitites (System &system) const throw () |
Set all Atom velocities of a System to the values stored in this instance of SnapShot. | |
void | getAtomForces (const System &system) throw (Exception::OutOfMemory) |
Read all atom forces from a System and store them in this instance of SnapShot. | |
void | setAtomForces (System &system) const throw () |
Set all Atom forces of a System to the values stored in this instance of SnapShot. | |
Protected Attributes | |
Size | index_ |
Size | number_of_atoms_ |
double | potential_energy_ |
double | kinetic_energy_ |
vector< Vector3 > | atom_positions_ |
vector< Vector3 > | atom_velocities_ |
vector< Vector3 > | atom_forces_ |
It consists of the posistions, velocities and forces for each atom along with kinetic and potential energy of selected atoms. It is used by the SnapShotManager .
|
The default constructor. It creates an empty SnapShot object. |
|
Apply the data contained in a SnapShot to a System. Copy all available data to the system. Note that some trajectory file formats do not contain all this information and vectors might be zero or even worse undefined when read SnapShots are read from such a file.
|
|
Read all atom forces from a System and store them in this instance of SnapShot.
|
|
Read all atom positions from a System and store them in this instance of SnapShot.
|
|
Read all atom velocities from a System and store them in this instance of SnapShot.
|
|
Indicates validity of the SnapShot.
|
|
Set all Atom forces of a System to the values stored in this instance of SnapShot.
|
|
Set all Atom positions of a System to the values stored in this instance of SnapShot.
|
|
Set all Atom velocities of a System to the values stored in this instance of SnapShot.
|
|
Take a SnapShot from a system.
Copy all positions, velocities and forces from the System
|