qns.entity.timer package
Submodules
qns.entity.timer.timer module
- class qns.entity.timer.timer.Timer(name: str, start_time: float, end_time: float = 0, step_time: float = 1, trigger_func=None)[source]
Bases:
Entity
A Timer is an Entity that trigger the function trigger_func one-shot or periodically.
- install(simulator: Simulator) None [source]
install
is called beforesimulator
runs to initialize or set initial events- Parameters:
simulator (qns.simulator.simulator.Simulator) – the simulator
Module contents
- class qns.entity.timer.Timer(name: str, start_time: float, end_time: float = 0, step_time: float = 1, trigger_func=None)[source]
Bases:
Entity
A Timer is an Entity that trigger the function trigger_func one-shot or periodically.
- install(simulator: Simulator) None [source]
install
is called beforesimulator
runs to initialize or set initial events- Parameters:
simulator (qns.simulator.simulator.Simulator) – the simulator