1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-24 20:02:28 +00:00
soil/models/models.py

11 lines
483 B
Python
Raw Normal View History

2017-04-20 11:36:17 +00:00
import settings
networkStatus = {} # Dict that will contain the status of every agent in the network
2017-04-21 12:04:30 +00:00
sentimentCorrelationNodeArray = []
for x in range(0, settings.network_params["number_of_nodes"]):
2017-04-21 12:04:30 +00:00
sentimentCorrelationNodeArray.append({'id': x})
2017-04-20 11:36:17 +00:00
# Initialize agent states. Let's assume everyone is normal.
init_states = [{'id': 0, } for _ in range(settings.network_params["number_of_nodes"])]
2017-04-20 11:36:17 +00:00
# add keys as as necessary, but "id" must always refer to that state category