Skip to content
Snippets Groups Projects
Commit 2a26b709 authored by Jarrod Pas's avatar Jarrod Pas
Browse files

make tick protected

parent c3885587
No related branches found
No related tags found
1 merge request!3Version 0.2
......@@ -17,9 +17,9 @@ class TickProcess(Process):
super().__init__()
if tick < 1:
raise ValueError('tick must be greatert than or equal to 1')
self.__tick = tick
self._tick = tick
def tick(self):
return self.env.timeout(self.__tick)
return self.env.timeout(self._tick)
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