Methods
def reset(self self)
Reset the simulation, it is connected by the "server_callbacks.py"
def shutdown(self self)
Shutdown the simulation, it is connected by the "server_callbacks.py"
def run_step(self self, action action, timestep_ns timestep_ns)
Obtain parameters from the engine script and run the simulation step by step
:param action: the control parameters for the simulation
:type action: list
:param timestep_ns: time step length of the simulation (nanosecs)
:type timestep_ns: int
def get_model_properties(self self, datapack_type datapack_type)
Obtain devices list
:param datapack_type: data type of the required device
:type datapack_type: str
def get_model_all_properties(self self, datapack_type datapack_type)
Obtain all devices data of a special type
:param datapack_type: (string): data type of required devices
:type datapack_type: str
def get_model_property(
self self,
datapack_name datapack_name,
datapack_type datapack_type
)
Obtain data of a device based on its name
:param datapack_name: name of the required device
:type datapack_type: str
:param datapack_type: data type of the required device
:type datapack_type: str