build/include/grl/flatbuffer/grl/flatbuffer/KUKAiiwaState.java
Go to the documentation of this file.
1 // automatically generated, 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 public final class KUKAiiwaState extends Table {
12  public static KUKAiiwaState getRootAsKUKAiiwaState(ByteBuffer _bb) { return getRootAsKUKAiiwaState(_bb, new KUKAiiwaState()); }
13  public static KUKAiiwaState getRootAsKUKAiiwaState(ByteBuffer _bb, KUKAiiwaState obj) { _bb.order(ByteOrder.LITTLE_ENDIAN); return (obj.__init(_bb.getInt(_bb.position()) + _bb.position(), _bb)); }
14  public KUKAiiwaState __init(int _i, ByteBuffer _bb) { bb_pos = _i; bb = _bb; return this; }
15 
16  public String name() { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; }
17  public ByteBuffer nameAsByteBuffer() { return __vector_as_bytebuffer(4, 1); }
18  public String destination() { int o = __offset(6); return o != 0 ? __string(o + bb_pos) : null; }
19  public ByteBuffer destinationAsByteBuffer() { return __vector_as_bytebuffer(6, 1); }
20  public String source() { int o = __offset(8); return o != 0 ? __string(o + bb_pos) : null; }
21  public ByteBuffer sourceAsByteBuffer() { return __vector_as_bytebuffer(8, 1); }
22  public double timestamp() { int o = __offset(10); return o != 0 ? bb.getDouble(o + bb_pos) : 0; }
23  public boolean setArmControlState() { int o = __offset(12); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
25  public ArmControlState armControlState(ArmControlState obj) { int o = __offset(14); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
26  public boolean setArmConfiguration() { int o = __offset(16); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
28  public KUKAiiwaArmConfiguration armConfiguration(KUKAiiwaArmConfiguration obj) { int o = __offset(18); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
29  public boolean hasMonitorState() { int o = __offset(20); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
31  public KUKAiiwaMonitorState monitorState(KUKAiiwaMonitorState obj) { int o = __offset(22); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
32  public boolean hasMonitorConfig() { int o = __offset(24); return o != 0 ? 0!=bb.get(o + bb_pos) : false; }
34  public KUKAiiwaMonitorConfiguration monitorConfig(KUKAiiwaMonitorConfiguration obj) { int o = __offset(26); return o != 0 ? obj.__init(__indirect(o + bb_pos), bb) : null; }
35 
36  public static int createKUKAiiwaState(FlatBufferBuilder builder,
37  int name,
38  int destination,
39  int source,
40  double timestamp,
41  boolean setArmControlState,
42  int armControlState,
43  boolean setArmConfiguration,
44  int armConfiguration,
45  boolean hasMonitorState,
46  int monitorState,
47  boolean hasMonitorConfig,
48  int monitorConfig) {
49  builder.startObject(12);
50  KUKAiiwaState.addTimestamp(builder, timestamp);
51  KUKAiiwaState.addMonitorConfig(builder, monitorConfig);
52  KUKAiiwaState.addMonitorState(builder, monitorState);
53  KUKAiiwaState.addArmConfiguration(builder, armConfiguration);
54  KUKAiiwaState.addArmControlState(builder, armControlState);
55  KUKAiiwaState.addSource(builder, source);
56  KUKAiiwaState.addDestination(builder, destination);
57  KUKAiiwaState.addName(builder, name);
58  KUKAiiwaState.addHasMonitorConfig(builder, hasMonitorConfig);
59  KUKAiiwaState.addHasMonitorState(builder, hasMonitorState);
60  KUKAiiwaState.addSetArmConfiguration(builder, setArmConfiguration);
61  KUKAiiwaState.addSetArmControlState(builder, setArmControlState);
62  return KUKAiiwaState.endKUKAiiwaState(builder);
63  }
64 
65  public static void startKUKAiiwaState(FlatBufferBuilder builder) { builder.startObject(12); }
66  public static void addName(FlatBufferBuilder builder, int nameOffset) { builder.addOffset(0, nameOffset, 0); }
67  public static void addDestination(FlatBufferBuilder builder, int destinationOffset) { builder.addOffset(1, destinationOffset, 0); }
68  public static void addSource(FlatBufferBuilder builder, int sourceOffset) { builder.addOffset(2, sourceOffset, 0); }
69  public static void addTimestamp(FlatBufferBuilder builder, double timestamp) { builder.addDouble(3, timestamp, 0); }
70  public static void addSetArmControlState(FlatBufferBuilder builder, boolean setArmControlState) { builder.addBoolean(4, setArmControlState, false); }
71  public static void addArmControlState(FlatBufferBuilder builder, int armControlStateOffset) { builder.addOffset(5, armControlStateOffset, 0); }
72  public static void addSetArmConfiguration(FlatBufferBuilder builder, boolean setArmConfiguration) { builder.addBoolean(6, setArmConfiguration, false); }
73  public static void addArmConfiguration(FlatBufferBuilder builder, int armConfigurationOffset) { builder.addOffset(7, armConfigurationOffset, 0); }
74  public static void addHasMonitorState(FlatBufferBuilder builder, boolean hasMonitorState) { builder.addBoolean(8, hasMonitorState, false); }
75  public static void addMonitorState(FlatBufferBuilder builder, int monitorStateOffset) { builder.addOffset(9, monitorStateOffset, 0); }
76  public static void addHasMonitorConfig(FlatBufferBuilder builder, boolean hasMonitorConfig) { builder.addBoolean(10, hasMonitorConfig, false); }
77  public static void addMonitorConfig(FlatBufferBuilder builder, int monitorConfigOffset) { builder.addOffset(11, monitorConfigOffset, 0); }
78  public static int endKUKAiiwaState(FlatBufferBuilder builder) {
79  int o = builder.endObject();
80  return o;
81  }
82 };
83 
static void addTimestamp(FlatBufferBuilder builder, double timestamp)
static void addName(FlatBufferBuilder builder, int nameOffset)
static int createKUKAiiwaState(FlatBufferBuilder builder, int name, int destination, int source, double timestamp, boolean setArmControlState, int armControlState, boolean setArmConfiguration, int armConfiguration, boolean hasMonitorState, int monitorState, boolean hasMonitorConfig, int monitorConfig)
static void addMonitorConfig(FlatBufferBuilder builder, int monitorConfigOffset)
static void addDestination(FlatBufferBuilder builder, int destinationOffset)
KUKAiiwaMonitorConfiguration monitorConfig(KUKAiiwaMonitorConfiguration obj)
static void addArmControlState(FlatBufferBuilder builder, int armControlStateOffset)
KUKAiiwaArmConfiguration armConfiguration(KUKAiiwaArmConfiguration obj)
static void addSource(FlatBufferBuilder builder, int sourceOffset)
static void addMonitorState(FlatBufferBuilder builder, int monitorStateOffset)
static void addHasMonitorConfig(FlatBufferBuilder builder, boolean hasMonitorConfig)
static void addSetArmControlState(FlatBufferBuilder builder, boolean setArmControlState)
static void addSetArmConfiguration(FlatBufferBuilder builder, boolean setArmConfiguration)
static void addArmConfiguration(FlatBufferBuilder builder, int armConfigurationOffset)
static void addHasMonitorState(FlatBufferBuilder builder, boolean hasMonitorState)
static KUKAiiwaState getRootAsKUKAiiwaState(ByteBuffer _bb, KUKAiiwaState obj)