1
0
mirror of https://github.com/gsi-upm/soil synced 2024-09-21 15:51:43 +00:00
soil/models/models.py

11 lines
447 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 = []
2017-04-20 11:36:17 +00:00
for x in range(0, settings.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.number_of_nodes)]
# add keys as as necessary, but "id" must always refer to that state category