1
0
mirror of https://github.com/gsi-upm/soil synced 2024-11-13 06:52:28 +00:00

Cambiado ComportamientoBase por BaseBehaviour

This commit is contained in:
Carlos A. Iglesias 2017-01-19 12:50:00 +01:00 committed by GitHub
parent da80a6fd9c
commit 584c88b108

View File

@ -331,7 +331,7 @@
},
"outputs": [],
"source": [
"class ComportamientoBase(BaseNetworkAgent):\n",
"class BaseBehaviour(BaseNetworkAgent):\n",
" def __init__(self, environment=None, agent_id=0, state=()):\n",
" super().__init__(environment=environment, agent_id=agent_id, state=state)\n",
" self._attrs = {}\n",
@ -394,7 +394,7 @@
},
"outputs": [],
"source": [
"class ControlModelM2(ComportamientoBase):\n",
"class ControlModelM2(BaseBehaviour):\n",
" #Init infected\n",
" init_states[random.randint(0,settings.number_of_nodes-1)] = {'id':1}\n",
" init_states[random.randint(0,settings.number_of_nodes-1)] = {'id':1}\n",