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-05-16 12:02:50 +00:00
|
|
|
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.
|
2017-05-16 12:02:50 +00:00
|
|
|
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
|