1
0
mirror of https://github.com/gsi-upm/soil synced 2025-08-23 19:52:19 +00:00

All settings as JSON and documentation updated

This commit is contained in:
Tasio Mendez
2017-05-16 14:02:50 +02:00
parent 23fc9671c3
commit a643735ddb
20 changed files with 90 additions and 81 deletions

View File

@@ -23,7 +23,7 @@ class BaseBehaviour(BaseNetworkAgent):
def run(self):
while True:
self.step(self.env.now)
yield self.env.timeout(settings.timeout)
yield self.env.timeout(settings.network_params["timeout"])
def step(self, now):
networkStatus['agent_%s'% self.id] = self.to_json()