Ejemplo n.º 1
0
 public static Offset <FSensor> CreateFSensor(FlatBufferBuilder builder,
                                              StringOffset sensor_nameOffset = default(StringOffset),
                                              FObservation sensor_value_type = FObservation.NONE,
                                              int sensor_valueOffset         = 0)
 {
     builder.StartObject(3);
     FSensor.AddSensorValue(builder, sensor_valueOffset);
     FSensor.AddSensorName(builder, sensor_nameOffset);
     FSensor.AddSensorValueType(builder, sensor_value_type);
     return(FSensor.EndFSensor(builder));
 }
Ejemplo n.º 2
0
 public static Offset <FOBS> CreateFOBS(FlatBufferBuilder builder,
                                        StringOffset observation_nameOffset = default(StringOffset),
                                        FObservation observation_type       = FObservation.NONE,
                                        int observationOffset = 0)
 {
     builder.StartObject(3);
     AddObservation(builder, observationOffset);
     AddObservationName(builder, observation_nameOffset);
     AddObservationType(builder, observation_type);
     return(EndFOBS(builder));
 }
Ejemplo n.º 3
0
 public static Offset <FConfigurable> CreateFConfigurable(FlatBufferBuilder builder,
                                                          StringOffset configurable_nameOffset = default(StringOffset),
                                                          FObservation observation_type        = FObservation.NONE,
                                                          int observationOffset = 0)
 {
     builder.StartObject(3);
     AddObservation(builder, observationOffset);
     AddConfigurableName(builder, configurable_nameOffset);
     AddObservationType(builder, observation_type);
     return(EndFConfigurable(builder));
 }
Ejemplo n.º 4
0
 public static void AddConfigurableValueType(FlatBufferBuilder builder, FObservation configurableValueType)
 {
     builder.AddByte(1, (byte)configurableValueType, 0);
 }
Ejemplo n.º 5
0
 public static void AddSensorValueType(FlatBufferBuilder builder, FObservation sensorValueType)
 {
     builder.AddByte(1, (byte)sensorValueType, 0);
 }
Ejemplo n.º 6
0
 public static void AddObservationType(FlatBufferBuilder builder, FObservation observationType)
 {
     builder.AddByte(1, (byte)observationType, 0);
 }