#include <IMDSim.h>
Inheritance diagram for IMDSim:
Public Types | |
enum | IMDStates { IMDOFFLINE, IMDSTARTING, IMDRUNNING, IMDPAUSED } |
Currently, VMD stores the simulation's state internally, but ideally these states should be communicated by NAMD. More... | |
Public Methods | |
IMDSim (const char *, int) | |
initialize with host and port. More... | |
virtual | ~IMDSim () |
int | isConnected () const |
int | getSimState () const |
int | next_ts_available () const |
virtual void | update () |
Check for available data from the socket. More... | |
virtual void | get_next_ts (float *, IMDEnergies *)=0 |
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 *)=0 |
virtual void | pause () |
virtual void | unpause () |
virtual void | detach () |
virtual void | kill () |
virtual void | set_transrate (int) |
Protected Methods | |
void | disconnect () |
Static Protected Methods | |
void | swap4_aligned (void *data, long ndata) |
reverse endianism of 4 bytes. More... | |
Protected Attributes | |
void * | sock |
int | new_coords_ready |
int | numcoords |
int | simstate |
One of enum IMDStates. More... | |
int | need2flip |
need to convert endianism. More... |
Definition at line 27 of file IMDSim.h.
|
Currently, VMD stores the simulation's state internally, but ideally these states should be communicated by NAMD.
|
|
initialize with host and port.
Definition at line 28 of file IMDSim.C. References IMDOFFLINE, IMDRUNNING, new_coords_ready, NULL, numcoords, simstate, sock, vmdsock_connect, vmdsock_create, vmdsock_destroy, and vmdsock_init. |
|
Definition at line 61 of file IMDSim.C. References disconnect. |
|
Reimplemented in IMDSimBlocking. Definition at line 52 of file IMDSim.h. Referenced by IMDMgr::detach. |
|
Definition at line 51 of file IMDSim.C. References imd_disconnect, IMDOFFLINE, simstate, sock, vmdsock_destroy, and vmdsock_shutdown. Referenced by IMDSimBlocking::detach, IMDSimBlocking::kill, IMDSimThread::reader, IMDSimBlocking::send_forces, IMDSimBlocking::update, ~IMDSim, and IMDSimThread::~IMDSimThread. |
|
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.
Implemented in IMDSimBlocking. Referenced by IMDMgr::check_event. |
|
Definition at line 38 of file IMDSim.h. References simstate. Referenced by IMDSimThread::pause, IMDSimBlocking::pause, IMDMgr::togglepause, IMDSimThread::unpause, and IMDSimBlocking::unpause. |
|
|
Reimplemented in IMDSimBlocking. Definition at line 53 of file IMDSim.h. Referenced by IMDMgr::kill. |
|
Definition at line 39 of file IMDSim.h. References new_coords_ready. Referenced by IMDMgr::check_event. |
|
Reimplemented in IMDSimBlocking. Definition at line 49 of file IMDSim.h. Referenced by IMDMgr::pause, and IMDMgr::togglepause. |
|
Implemented in IMDSimBlocking. Referenced by IMDMgr::send_forces. |
|
Reimplemented in IMDSimBlocking. Definition at line 54 of file IMDSim.h. Referenced by IMDMgr::set_trans_rate. |
|
reverse endianism of 4 bytes.
Definition at line 88 of file IMDSim.C. References data. Referenced by IMDSimThread::get_next_ts, IMDSimBlocking::get_next_ts, IMDSimThread::send_forces, and IMDSimBlocking::send_forces. |
|
Reimplemented in IMDSimBlocking. Definition at line 50 of file IMDSim.h. Referenced by IMDMgr::togglepause, and IMDMgr::unpause. |
|
Check for available data from the socket.
Reimplemented in IMDSimBlocking. Definition at line 42 of file IMDSim.h. Referenced by IMDMgr::check_event. |
|
need to convert endianism.
|
|
Definition at line 58 of file IMDSim.h. Referenced by IMDSimThread::get_next_ts, IMDSimBlocking::get_next_ts, IMDSim, and next_ts_available. |
|
Definition at line 59 of file IMDSim.h. Referenced by IMDSimThread::get_next_ts, IMDSimBlocking::get_next_ts, and IMDSim. |
|
One of enum IMDStates.
Definition at line 60 of file IMDSim.h. Referenced by IMDSimThread::detach, IMDSimBlocking::detach, disconnect, getSimState, IMDSim, IMDSimThread::kill, IMDSimBlocking::kill, IMDSimThread::pause, IMDSimBlocking::pause, IMDSimThread::unpause, and IMDSimBlocking::unpause. |
|