#include <IMDSimThread.h>
Inheritance diagram for IMDSimThread:

Public Methods | |
| IMDSimThread (const char *, int) | |
| initialize with host and port. More... | |
| virtual | ~IMDSimThread () |
| virtual void | get_next_ts (float *, IMDEnergies *) |
| Fetch last received coordinates and energies. Ask for both at the same time so that they at least have a chance of being in sync with each other. More... | |
| virtual void | send_forces (int, int *, float *) |
| These methods obtain a lock on the socket (to prevent it from being destroyed from the reader thread), check for a connection, then send their information before releasing the lock. More... | |
| virtual void | pause () |
| virtual void | unpause () |
| virtual void | detach () |
| virtual void | kill () |
| virtual void | set_transrate (int) |
Definition at line 29 of file IMDSimThread.h.
|
||||||||||||
|
initialize with host and port.
Definition at line 30 of file IMDSimThread.C. References IMDSim::isConnected, NULL, vmd_mutex_init, and vmd_thread_create. |
|
|
Definition at line 52 of file IMDSimThread.C. References IMDSim::disconnect, IMDSim::isConnected, and vmd_thread_join. |
|
|
Reimplemented from IMDSim. Definition at line 194 of file IMDSimThread.C. References imd_disconnect, IMDSim::IMDOFFLINE, IMDSim::isConnected, IMDSim::simstate, IMDSim::sock, vmd_mutex_lock, and vmd_mutex_unlock. |
|
||||||||||||
|
Fetch last received coordinates and energies. Ask for both at the same time so that they at least have a chance of being in sync with each other.
Implements IMDSim. Definition at line 149 of file IMDSimThread.C. References IMDSim::new_coords_ready, IMDSim::numcoords, IMDSim::swap4_aligned, vmd_mutex_lock, and vmd_mutex_unlock. |
|
|
Reimplemented from IMDSim. Definition at line 204 of file IMDSimThread.C. References imd_kill, IMDSim::IMDOFFLINE, IMDSim::isConnected, IMDSim::simstate, IMDSim::sock, vmd_mutex_lock, and vmd_mutex_unlock. |
|
|
Reimplemented from IMDSim. Definition at line 176 of file IMDSimThread.C. References IMDSim::getSimState, imd_pause, IMDSim::IMDPAUSED, IMDSim::IMDRUNNING, IMDSim::isConnected, IMDSim::simstate, IMDSim::sock, vmd_mutex_lock, and vmd_mutex_unlock. |
|
||||||||||||||||
|
These methods obtain a lock on the socket (to prevent it from being destroyed from the reader thread), check for a connection, then send their information before releasing the lock.
Implements IMDSim. Definition at line 159 of file IMDSimThread.C. References imd_send_mdcomm, IMDSim::isConnected, num, IMDSim::sock, IMDSim::swap4_aligned, vmd_mutex_lock, and vmd_mutex_unlock. |
|
|
Reimplemented from IMDSim. Definition at line 214 of file IMDSimThread.C. References imd_trate, IMDSim::isConnected, IMDSim::sock, vmd_mutex_lock, and vmd_mutex_unlock. |
|
|
Reimplemented from IMDSim. Definition at line 185 of file IMDSimThread.C. References IMDSim::getSimState, imd_pause, IMDSim::IMDPAUSED, IMDSim::IMDRUNNING, IMDSim::isConnected, IMDSim::simstate, IMDSim::sock, vmd_mutex_lock, and vmd_mutex_unlock. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002