/** ORTEConstant.java */
-package org.ocera.orte.types;
-
/**
* Class ORTEConstant contains the definitions of basic ORTE constants.
*
*/
+package org.ocera.orte.types;
+
public class ORTEConstant {
+ /* ************************************************* *
+ * constants java.lang.Object shell size in bytes: *
+ * ************************************************* */
+ public static final int BYTE_FIELD_SIZE = 1;
+ public static final int BOOLEAN_FIELD_SIZE = 1;
+ public static final int SHORT_FIELD_SIZE = 2;
+ public static final int CHAR_FIELD_SIZE = 2;
+ public static final int OBJREF_SIZE = 4;
+ public static final int INT_FIELD_SIZE = 4;
+ public static final int FLOAT_FIELD_SIZE = 4;
+ public static final int OBJECT_SHELL_SIZE = 8;
+ public static final int LONG_FIELD_SIZE = 8;
+ public static final int DOUBLE_FIELD_SIZE = 8;
+
+
/* ************************************************* *
* constants from the file 'typedefs_defines_rtps.h' *
* ************************************************* */
public static final int ORTE_TIMEOUT = -2;
public static final int ORTE_QUEUE_FULL = -3;
+ /* ************************************************* *
+ * constants from the file 'typedefs_api.h' *
+ * ************************************************* */
+
+ /* Receive status */
+ public static final int NEW_DATA = 0x01;
+ public static final int DEADLINE = 0x02;
+
+ /* Subscription type */
+ public static final int BEST_EFFORTS = 0x01;
+ public static final int STRICT_RELIABLE = 0x02;
+
+ /* Subscription mode */
+ public static final int PULLED = 0x01;
+ public static final int IMMEDIATE = 0x02;
}