#include <AccelerationClient.h>
Collaboration diagram for AccelerationMessage:
Public Member Functions | |
AccelerationMessage () | |
Default constructor. Object will be useless until Connect() is called. | |
AccelerationMessage (const char *serverName, int portNumber) | |
Constructs the device and calls Connect(). This method has no return value so failures in the Connect() method may not be reported. If failures must be handled, you should use the default constructor and call Connect() explicitly. | |
~AccelerationMessage () | |
Destroys the AccelerationMessage. | |
int | Connect (const char *serverName, int portNumber) |
Attempts to connect the SimPropagator. | |
int | SendMessage () |
Send a message that is stored in m_message to the acceleration server. | |
int | ReceiveMessage () |
Receive a message from the acceleration server. | |
void | CheckResponse () |
Parses response from Acceleration Server. | |
int | ConvertString (string data) |
Convert string to int for switch case. | |
void | SendAccelerationMessage (int _spaceVehicleNumber, double _startTime, double _duration, CAMdoubleVector _acceleration, double _mass) |
Send acceleration message to acceleration server. | |
double | GetDeltaV () |
void | ResetValues () |
AccelerationMessage () | |
AccelerationMessage (const char *serverName, int portNumber) | |
~AccelerationMessage () | |
int | Connect (const char *serverName, int portNumber) |
int | SendMessage () |
int | ReceiveMessage () |
void | CheckResponse () |
int | ConvertString (string data) |
void | SendAccelerationMessage (int _spaceVehicleNumber, double _startTime, double _duration, CAMdoubleVector _acceleration, double _mass) |
double | GetDeltaV () |
void | ResetValues () |
Private Attributes | |
ClientSocket * | m_clientSocket |
string | m_message |
string | m_response |
double | m_deltaV |
ClientSocket * | m_clientSocket |
|
Default constructor. Object will be useless until
Definition at line 10 of file OrbitObserver/AccelerationClient.cpp. References m_deltaV. |
|
Constructs the device and calls Connect(). This method has no return value so failures in the Connect() method may not be reported. If failures must be handled, you should use the default constructor and call Connect() explicitly.
Definition at line 26 of file OrbitObserver/AccelerationClient.cpp. |
|
Destroys the AccelerationMessage.
Definition at line 35 of file OrbitObserver/AccelerationClient.cpp. |
|
|
|
|
|
|
|
|
|
Parses response from Acceleration Server. $PASHR ACK $PASHR NACK $PASHR VEL deltaV Definition at line 124 of file OrbitObserver/AccelerationClient.cpp. References $PASHR, ACK, ConvertString(), m_response, NACK, and VEL. Referenced by GetDeltaV(), ResetValues(), and SendAccelerationMessage(). |
|
|
|
Attempts to connect the SimPropagator.
Definition at line 47 of file OrbitObserver/AccelerationClient.cpp. References m_clientSocket. Referenced by AccelerationMessage(). |
|
|
|
Convert string to int for switch case.
Definition at line 165 of file OrbitObserver/AccelerationClient.cpp. Referenced by CheckResponse(). |
|
|
|
Definition at line 200 of file OrbitObserver/AccelerationClient.cpp. References CheckResponse(), m_message, ReceiveMessage(), and SendMessage(). |
|
|
|
Receive a message from the acceleration server. returns the length of the message or -1 for failure. Definition at line 99 of file OrbitObserver/AccelerationClient.cpp. References m_clientSocket, and m_response. Referenced by GetDeltaV(), ResetValues(), and SendAccelerationMessage(). |
|
|
|
Definition at line 219 of file OrbitObserver/AccelerationClient.cpp. References CheckResponse(), m_message, ReceiveMessage(), and SendMessage(). Referenced by testOrbitController::Initialize(), and COENaaszController::Initialize(). |
|
|
|
Send acceleration message to acceleration server.
Definition at line 177 of file OrbitObserver/AccelerationClient.cpp. References CheckResponse(), m_message, ReceiveMessage(), and SendMessage(). Referenced by testOrbitController::Run(), and COENaaszController::Run(). |
|
|
|
Send a message that is stored in m_message to the acceleration server. returns the length of the message or -1 for failure. Definition at line 76 of file OrbitObserver/AccelerationClient.cpp. References m_clientSocket, and m_message. Referenced by GetDeltaV(), ResetValues(), and SendAccelerationMessage(). |
|
Definition at line 73 of file Sensors/AccelerationClient.h. |
|
Definition at line 61 of file OrbitObserver/AccelerationClient.h. Referenced by Connect(), ReceiveMessage(), and SendMessage(). |
|
Definition at line 79 of file Sensors/AccelerationClient.h. Referenced by AccelerationMessage(). |
|
Definition at line 75 of file Sensors/AccelerationClient.h. Referenced by GetDeltaV(), ResetValues(), SendAccelerationMessage(), and SendMessage(). |
|
Definition at line 77 of file Sensors/AccelerationClient.h. Referenced by CheckResponse(), and ReceiveMessage(). |