namespace grpc_server_callbacks

Overview

namespace grpc_server_callbacks {

// global variables

 script =  None;

// global functions

str get_engine_name();
dict initialize(dict request_json);
int run_loop(int time_step);
python_grpc_engine_pb2.SetDataPacksReply set_datapacks(python_grpc_engine_pb2.SetDataPacksRequest request_grpc);
None set_datapack(python_grpc_engine_pb2.DataPackMessage datapack);
list get_registered_datapack_names();
python_grpc_engine_pb2.GetDataPacksReply get_datapacks(python_grpc_engine_pb2.GetDataPacksRequest request_grpc);
python_grpc_engine_pb2.DataPackMessage get_datapack(python_grpc_engine_pb2.DataPackIdentifier datapack_id);
dict reset(dict request_json);
None shutdown(dict request_json);

} // namespace grpc_server_callbacks

Detailed Documentation

Global Functions

str get_engine_name()
Returns Engine name
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_datapacks(python_grpc_engine_pb2.SetDataPacksRequest request_grpc)
Sets given data on requested datapacks stored in the Script object
None set_datapack(python_grpc_engine_pb2.DataPackMessage datapack)
Set datapack in the Script object
list get_registered_datapack_names()
Returns the list of registered datapack names
python_grpc_engine_pb2.GetDataPacksReply get_datapacks(python_grpc_engine_pb2.GetDataPacksRequest request_grpc)
Returns requested datapacks stored in the Script object
python_grpc_engine_pb2.DataPackMessage get_datapack(python_grpc_engine_pb2.DataPackIdentifier datapack_id)
Returns requested datapack 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