namespace engine_server::grpc_server_callbacks

Overview

namespace grpc_server_callbacks {

// global variables

 script =  None;

// global functions

dict initialize(dict request_json);
int run_loop(int time_step);
python_grpc_engine_pb2.SetDataPacksReply set_datapack(python_grpc_engine_pb2.SetDataPacksRequest request_grpc);
python_grpc_engine_pb2.GetDataPacksReply get_datapack(python_grpc_engine_pb2.GetDataPacksRequest request_grpc);
dict reset(dict request_json);
None shutdown(dict request_json);

} // namespace grpc_server_callbacks

Detailed Documentation

Global Functions

dict initialize(dict request_json)
Imports module containing the Script class, instantiates it, and runs its initialize() method
int run_loop(int time_step)
Advances the simulation time and runs the runLoop method of the Script object
python_grpc_engine_pb2.SetDataPacksReply set_datapack(python_grpc_engine_pb2.SetDataPacksRequest request_grpc)
Sets given data on requested datapacks stored in the Script object
python_grpc_engine_pb2.GetDataPacksReply get_datapack(python_grpc_engine_pb2.GetDataPacksRequest request_grpc)
Returns requested datapacks stored in the Script object
dict reset(dict request_json)
Calls the reset() method of the Script object
None shutdown(dict request_json)
Calls the shutdown() method of the Script object