17 #include <vlutil/vlTime.h>
19 namespace MAKTrafficClientServerExConn
21 class DtServerExerciseConnection;
22 class DtClientExerciseConnection;
38 throw( RTI::FederateInternalError );
45 virtual void setReceiveSelfReflect(
unsigned long clientID,
bool enableReceiveSelfReflect);
48 virtual bool receiveSelfReflectEnabled(
unsigned long clientID)
const;
58 double maximum=-1,
double minimum=0);
64 virtual bool flush(DtTime sleepTime, DtTime maxTime);
71 virtual bool transferSelfReflects(
unsigned int clientID);
75 virtual double transferSelfReflects();
78 virtual void clearOpenSlots();
81 virtual void resetConnection(
unsigned int clientID);
84 virtual void resetConnections();
89 static void setQueueSize(
unsigned int size);
94 virtual void pushCallback(
DtTaCallback* callback,
unsigned int clientID=0,
95 bool callIsSelfReflect=
false);
98 virtual void pushSelfReflect(
DtTaCallback* callback,
unsigned int clientID);
109 virtual bool flushCallback(
int callbackIndex, DtTime sleepTime, DtTime timeToQuit);
112 virtual void clearSelfReflects(
unsigned int clientID);
115 virtual void clearSelfReflects();
std::set< unsigned int > myConnectionIDs
Connection IDs.
Definition: serverFederateAmbassadorBase.h:152
Definition: serverExerciseConnection.h:34
std::vector< DtTaCallbackQueue > DtTaCallbackQueueVector
Definition: fedAmbCallbackBuffer.h:117
DtServerExerciseConnection * myServerConnection
The server connection.
Definition: serverFederateAmbassadorBase.h:128
Definition: serverFederateAmbassadorBase.h:24
The DtTaCallback is a base class to store callback parameters.
DtTaCallbackQueueVector myClientSelfReflectQueues
The client self reflect queues.
Definition: serverFederateAmbassadorBase.h:134
std::vector< unsigned int > myConnectionCallbackIndex
The client connection index into the callback queue.
Definition: serverFederateAmbassadorBase.h:149
The base class for storing callback parameters that are generated by processing callbacks asynchronou...
Definition: fedAmbCallback.h:21
DtTaCallbackVector myFedAmbCallbackQueue
The client callback queue.
Definition: serverFederateAmbassadorBase.h:131
std::vector< DtTaCallbackBuffer > DtTaCallbackVector
Definition: fedAmbCallbackBuffer.h:115
unsigned int myNumberPendingCallbacks
The number pending callbacks.
Definition: serverFederateAmbassadorBase.h:143
DtClock myClock
Timer for limiting # callbacks.
Definition: serverFederateAmbassadorBase.h:158
std::set< unsigned int > myReceiveSelfReflectIDs
Connection that will receive self reflects.
Definition: serverFederateAmbassadorBase.h:155
#define DT_DLL_CSEC
Definition: clientServerExConnDllDefines.h:17
DtTaCallbackQueueVector myServerSelfReflectQueues
The server's staging of the self reflect queues.
Definition: serverFederateAmbassadorBase.h:140
unsigned int myOldestIndex
Keep track of oldest callback still pending May point to non pending callback if there are none...
Definition: serverFederateAmbassadorBase.h:166
int myNewestIndex
Keep track of last write to callback queue (newest callback) May point to non pending callback if the...
Definition: serverFederateAmbassadorBase.h:162
Definition: clientExerciseConnection.h:25
unsigned int myNextCallbackIndex
The index to the next open callback slot.
Definition: serverFederateAmbassadorBase.h:146
static unsigned int theQueueSize
Size of callback queue.
Definition: serverFederateAmbassadorBase.h:171