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
|