20 package org.vortex.FACE;
27 import java.util.logging.Level;
37 private static class LazyHolder {
38 private static final TS INSTANCE =
new TS();
42 return LazyHolder.INSTANCE;
68 FACE.RETURN_CODE_TYPEHolder return_code) {
69 if (return_code == null) {
136 FACE.MESSAGING_PATTERN_TYPE pattern,
138 FACE.CONNECTION_DIRECTION_TYPEHolder connection_direction,
140 FACE.RETURN_CODE_TYPEHolder return_code) {
147 connection_direction, max_message_size, timeout, return_code);
178 FACE.RETURN_CODE_TYPEHolder return_code) {
199 FACE.RETURN_CODE_TYPEHolder return_code) {
205 .Unregister_Callback(connection_id, return_code);
239 FACE.TRANSPORT_CONNECTION_STATUS_TYPEHolder connection_status,
240 FACE.RETURN_CODE_TYPEHolder return_code) {
247 connection_status, return_code);
291 DataTypeHolder message,
292 int message_size,
FACE.RETURN_CODE_TYPEHolder return_code) {
298 if (message == null) {
299 return_code.value = RETURN_CODE_TYPE.INVALID_PARAM;
306 .Receive_Message(connection_id, timeout, transaction_id,
307 holder, message_size, return_code);
308 message.value = holder.
value;
357 DataTypeHolder message,
359 FACE.RETURN_CODE_TYPEHolder return_code) {
365 if (message == null) {
366 return_code.value = RETURN_CODE_TYPE.INVALID_PARAM;
371 holder.
value = message.value;
374 .Send_Message(connection_id, timeout,
375 transaction_id, holder,
376 message_size, return_code);
434 DataTypeRead_CallbackHolder data_callback,
435 int max_message_size,
FACE.RETURN_CODE_TYPEHolder return_code) {
441 if (data_callback == null) {
442 return_code.value = RETURN_CODE_TYPE.INVALID_PARAM;
446 final FACE.DM.IMU_DataRead_CallbackHolder callback = data_callback;
452 public void send_event(
long transaction_id,
454 int message_size,
boolean[] waitset,
455 FACE.RETURN_CODE_TYPEHolder return_code) {
456 DataTypeHolder holder =
new DataTypeHolder();
457 holder.value = message.
value;
458 callback.value.send_event(transaction_id, holder,
459 message_type_id, message_size, waitset, return_code);
464 .Register_Callback(connection_id, waitset,
466 max_message_size, return_code);
static void Receive_Message(long connection_id, long timeout, us.opengroup.FACE.LongHolder transaction_id, DataTypeHolder message, int message_size, FACE.RETURN_CODE_TYPEHolder return_code)
The Receive_Message Function is used to receive data from another source.
static TSFactory getInstance()
void log(String message, Level level)
static void Send_Message(long connection_id, long timeout, us.opengroup.FACE.LongHolder transaction_id, DataTypeHolder message, us.opengroup.FACE.IntHolder message_size, FACE.RETURN_CODE_TYPEHolder return_code)
The Send_Message Function is used to send data to another source.
static void Get_Connection_Parameters(us.opengroup.FACE.StringHolder connection_name, us.opengroup.FACE.LongHolder connection_id, FACE.TRANSPORT_CONNECTION_STATUS_TYPEHolder connection_status, FACE.RETURN_CODE_TYPEHolder return_code)
The purpose of Get_Connection_Parameters is to get the information regarding the requested connection...
static void Create_Connection(String connection_name, FACE.MESSAGING_PATTERN_TYPE pattern, us.opengroup.FACE.LongHolder connection_id, FACE.CONNECTION_DIRECTION_TYPEHolder connection_direction, us.opengroup.FACE.IntHolder max_message_size, long timeout, FACE.RETURN_CODE_TYPEHolder return_code)
The Transport Services Segment (TSS) provides an interface to create a connection.
static void Unregister_Callback(long connection_id, FACE.RETURN_CODE_TYPEHolder return_code)
The purpose of Unregister_Callback is to provide a mechanism to unregister the callback associated wi...
void Create_Connection(String connection_name, MESSAGING_PATTERN_TYPE pattern, us.opengroup.FACE.LongHolder connection_id, CONNECTION_DIRECTION_TYPEHolder connection_direction, us.opengroup.FACE.IntHolder max_message_size, long timeout, RETURN_CODE_TYPEHolder return_code)
Read_Callback< TYPE > value
static void Register_Callback(long connection_id, boolean[] waitset, DataTypeRead_CallbackHolder data_callback, int max_message_size, FACE.RETURN_CODE_TYPEHolder return_code)
The purpose of Register_Callback is to provide a mechanism to read data without polling.
static Logger getInstance()
TransportServices getImpl()
void getTS(String configuration, Holder< TransportServices > tsHolder, RETURN_CODE_TYPEHolder holder)
This is a typed class which will be generated by idlpp.
static void Destroy_Connection(long connection_id, FACE.RETURN_CODE_TYPEHolder return_code)
The Destroy_Connection function frees up any resources allocated to the connection.
void Destroy_Connection(long connection_id, RETURN_CODE_TYPEHolder return_code)
For DDS, TS shall keep track of the DomainParticipant and Topic variables for deletion.
void Get_Connection_Parameters(us.opengroup.FACE.StringHolder connection_name, us.opengroup.FACE.LongHolder connection_id, TRANSPORT_CONNECTION_STATUS_TYPEHolder connection_status, RETURN_CODE_TYPEHolder return_code)
static void Initialize(String configuration, FACE.RETURN_CODE_TYPEHolder return_code)
The Initialize function call allows for the Portable Components Segment (PCS) and Platform-Specific S...