]> rtime.felk.cvut.cz Git - orte.git/blobdiff - orte/java/src/org/ocera/orte/types/ORTEConstant.java
JORTE: add missing constants from "typedefs_api.h"
[orte.git] / orte / java / src / org / ocera / orte / types / ORTEConstant.java
index 2a720c20267d4e3f35bad45b9caee1055cfe7315..fd580a641433e401933d1927d71e147458df3b17 100644 (file)
@@ -1,6 +1,4 @@
 /** ORTEConstant.java */
-package org.ocera.orte.types;
-
 
 /**
   * Class ORTEConstant contains the definitions of basic ORTE constants.
@@ -24,9 +22,26 @@ package org.ocera.orte.types;
   *
   */
 
+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' *
   * ************************************************* */
@@ -131,6 +146,21 @@ public class ORTEConstant {
   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;
 
 }