src/java/grl/src/grl/flatbuffer/ProcessData.java
Go to the documentation of this file.
1 // automatically generated by the FlatBuffers compiler, do not modify
2 
3 package grl.flatbuffer;
4 
5 import java.nio.*;
6 import java.lang.*;
7 import java.util.*;
8 import com.google.flatbuffers.*;
9 
10 @SuppressWarnings("unused")
11 /**
12  * "ProcessData" is a field that appears
13  * on your physical kuka tablet.
14  * This message allows you to update these
15  * fields on the tablet yourself.
16  */
17 public final class ProcessData extends Table {
18  public static ProcessData getRootAsProcessData(ByteBuffer _bb) { return getRootAsProcessData(_bb, new ProcessData()); }
19  public static ProcessData getRootAsProcessData(ByteBuffer _bb, ProcessData obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
20  public ProcessData __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
21 
22  public String dataType() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
23  public ByteBuffer dataTypeAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
24  public String defaultValue() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
25  public ByteBuffer defaultValueAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
26  public String displayName() { int o = __offset(8); return o != 0 ? __string(o + bb_pos) : null; }
27  public ByteBuffer displayNameAsByteBuffer() { return __vector_as_bytebuffer(8, 1); }
28  public String id() { int o = __offset(10); return o != 0 ? __string(o + bb_pos) : null; }
29  public ByteBuffer idAsByteBuffer() { return __vector_as_bytebuffer(10, 1); }
30  public String min() { int o = __offset(12); return o != 0 ? __string(o + bb_pos) : null; }
31  public ByteBuffer minAsByteBuffer() { return __vector_as_bytebuffer(12, 1); }
32  public String max() { int o = __offset(14); return o != 0 ? __string(o + bb_pos) : null; }
33  public ByteBuffer maxAsByteBuffer() { return __vector_as_bytebuffer(14, 1); }
34  public String unit() { int o = __offset(16); return o != 0 ? __string(o + bb_pos) : null; }
35  public ByteBuffer unitAsByteBuffer() { return __vector_as_bytebuffer(16, 1); }
36  public String value() { int o = __offset(18); return o != 0 ? __string(o + bb_pos) : null; }
37  public ByteBuffer valueAsByteBuffer() { return __vector_as_bytebuffer(18, 1); }
38  /**
39  * should the data be removed completely?
40  */
41  public boolean shouldRemove() { int o = __offset(20); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
42  /**
43  * should the data be updated to these values?
44  */
45  public boolean shouldUpdate() { int o = __offset(22); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
46 
47  public static int createProcessData(FlatBufferBuilder builder,
48  int dataTypeOffset,
49  int defaultValueOffset,
50  int displayNameOffset,
51  int idOffset,
52  int minOffset,
53  int maxOffset,
54  int unitOffset,
55  int valueOffset,
56  boolean shouldRemove,
57  boolean shouldUpdate) {
58  builder.startObject(10);
59  ProcessData.addValue(builder, valueOffset);
60  ProcessData.addUnit(builder, unitOffset);
61  ProcessData.addMax(builder, maxOffset);
62  ProcessData.addMin(builder, minOffset);
63  ProcessData.addId(builder, idOffset);
64  ProcessData.addDisplayName(builder, displayNameOffset);
65  ProcessData.addDefaultValue(builder, defaultValueOffset);
66  ProcessData.addDataType(builder, dataTypeOffset);
67  ProcessData.addShouldUpdate(builder, shouldUpdate);
68  ProcessData.addShouldRemove(builder, shouldRemove);
69  return ProcessData.endProcessData(builder);
70  }
71 
72  public static void startProcessData(FlatBufferBuilder builder) { builder.startObject(10); }
73  public static void addDataType(FlatBufferBuilder builder, int dataTypeOffset) { builder.addOffset(0, dataTypeOffset, 0); }
74  public static void addDefaultValue(FlatBufferBuilder builder, int defaultValueOffset) { builder.addOffset(1, defaultValueOffset, 0); }
75  public static void addDisplayName(FlatBufferBuilder builder, int displayNameOffset) { builder.addOffset(2, displayNameOffset, 0); }
76  public static void addId(FlatBufferBuilder builder, int idOffset) { builder.addOffset(3, idOffset, 0); }
77  public static void addMin(FlatBufferBuilder builder, int minOffset) { builder.addOffset(4, minOffset, 0); }
78  public static void addMax(FlatBufferBuilder builder, int maxOffset) { builder.addOffset(5, maxOffset, 0); }
79  public static void addUnit(FlatBufferBuilder builder, int unitOffset) { builder.addOffset(6, unitOffset, 0); }
80  public static void addValue(FlatBufferBuilder builder, int valueOffset) { builder.addOffset(7, valueOffset, 0); }
81  public static void addShouldRemove(FlatBufferBuilder builder, boolean shouldRemove) { builder.addBoolean(8, shouldRemove, false); }
82  public static void addShouldUpdate(FlatBufferBuilder builder, boolean shouldUpdate) { builder.addBoolean(9, shouldUpdate, false); }
83  public static int endProcessData(FlatBufferBuilder builder) {
84  int o = builder.endObject();
85  return o;
86  }
87 }
88 
static void addShouldUpdate(FlatBufferBuilder builder, boolean shouldUpdate)
static void addDataType(FlatBufferBuilder builder, int dataTypeOffset)
static int createProcessData(FlatBufferBuilder builder, int dataTypeOffset, int defaultValueOffset, int displayNameOffset, int idOffset, int minOffset, int maxOffset, int unitOffset, int valueOffset, boolean shouldRemove, boolean shouldUpdate)
static void startProcessData(FlatBufferBuilder builder)
static ProcessData getRootAsProcessData(ByteBuffer _bb, ProcessData obj)
static void addShouldRemove(FlatBufferBuilder builder, boolean shouldRemove)
static void addMin(FlatBufferBuilder builder, int minOffset)
static void addDisplayName(FlatBufferBuilder builder, int displayNameOffset)
static void addUnit(FlatBufferBuilder builder, int unitOffset)
static ProcessData getRootAsProcessData(ByteBuffer _bb)
static void addDefaultValue(FlatBufferBuilder builder, int defaultValueOffset)
static void addMax(FlatBufferBuilder builder, int maxOffset)
static void addValue(FlatBufferBuilder builder, int valueOffset)
static void addId(FlatBufferBuilder builder, int idOffset)