Skip to content
Snippets Groups Projects
Commit c568b485 authored by Sai Lakhan Ekal's avatar Sai Lakhan Ekal
Browse files

Import VNA_dummy in virtual_time file and introduced it in virtual_clock class

parent 2b882582
No related branches found
No related tags found
No related merge requests found
import time
import shared_simulated_state
import climate_chamber_dummy
import VNA_dummy
# A single global instance of the virtual clock is used and returned whenever cet_clock is called
virtual_clock_instance = None
......@@ -24,6 +26,7 @@ class VirtualClock:
def __init__(self, target_accuracy):
self.simulated_state = shared_simulated_state.get_simulated_state()
self.climate_chamber_dummy = climate_chamber_dummy.get_climate_chamber_dummy(target_accuracy)
self.VNA_dummy = VNA_dummy.get_vna_dummy()
def time(self):
return self.simulated_state.simulated_time
......@@ -31,6 +34,7 @@ class VirtualClock:
def sleep(self, sleep_time):
self.simulated_state.simulated_time += sleep_time
self.climate_chamber_dummy.run_simulation()
self.VNA_dummy.run_simulation()
class RealClock:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment