예제 #1
0
 public static Offset <FState> CreateFState(FlatBufferBuilder builder,
                                            StringOffset environment_nameOffset = default(StringOffset),
                                            int frame_number = 0,
                                            VectorOffset observablesOffset = default(VectorOffset),
                                            Offset <Neodroid.FBS.FUnobservables> unobservablesOffset = default(Offset <Neodroid.FBS.FUnobservables>),
                                            float signal    = 0.0f,
                                            bool terminated = false,
                                            StringOffset termination_reasonOffset = default(StringOffset),
                                            Offset <FEnvironmentDescription> environment_descriptionOffset = default(Offset <FEnvironmentDescription>),
                                            Offset <Neodroid.FBS.Reaction.FReaction> last_reactionOffset   = default(Offset <Neodroid.FBS.Reaction.FReaction>),
                                            StringOffset extra_serialised_messageOffset = default(StringOffset))
 {
     builder.StartObject(10);
     FState.AddExtraSerialisedMessage(builder, extra_serialised_messageOffset);
     FState.AddLastReaction(builder, last_reactionOffset);
     FState.AddEnvironmentDescription(builder, environment_descriptionOffset);
     FState.AddTerminationReason(builder, termination_reasonOffset);
     FState.AddSignal(builder, signal);
     FState.AddUnobservables(builder, unobservablesOffset);
     FState.AddObservables(builder, observablesOffset);
     FState.AddFrameNumber(builder, frame_number);
     FState.AddEnvironmentName(builder, environment_nameOffset);
     FState.AddTerminated(builder, terminated);
     return(FState.EndFState(builder));
 }
예제 #2
0
 public static Offset <FState> CreateFState(FlatBufferBuilder builder,
                                            StringOffset environment_nameOffset = default(StringOffset),
                                            int frame_number = 0,
                                            float signal     = 0.0f,
                                            bool terminated  = false,
                                            StringOffset termination_reasonOffset = default(StringOffset),
                                            float total_energy_spent        = 0.0f,
                                            VectorOffset observationsOffset = default(VectorOffset),
                                            VectorOffset observablesOffset  = default(VectorOffset),
                                            Offset <Neodroid.FBS.FUnobservables> unobservablesOffset       = default(Offset <Neodroid.FBS.FUnobservables>),
                                            Offset <FEnvironmentDescription> environment_descriptionOffset = default(Offset <FEnvironmentDescription>),
                                            StringOffset debug_messageOffset = default(StringOffset))
 {
     builder.StartObject(11);
     FState.AddDebugMessage(builder, debug_messageOffset);
     FState.AddEnvironmentDescription(builder, environment_descriptionOffset);
     FState.AddUnobservables(builder, unobservablesOffset);
     FState.AddObservables(builder, observablesOffset);
     FState.AddObservations(builder, observationsOffset);
     FState.AddTotalEnergySpent(builder, total_energy_spent);
     FState.AddTerminationReason(builder, termination_reasonOffset);
     FState.AddSignal(builder, signal);
     FState.AddFrameNumber(builder, frame_number);
     FState.AddEnvironmentName(builder, environment_nameOffset);
     FState.AddTerminated(builder, terminated);
     return(FState.EndFState(builder));
 }