mirror of
https://github.com/gsi-upm/soil
synced 2024-11-14 15:32:29 +00:00
Cambiado ComportamientoBase por BaseBehaviour
This commit is contained in:
parent
da80a6fd9c
commit
584c88b108
@ -331,7 +331,7 @@
|
|||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"class ComportamientoBase(BaseNetworkAgent):\n",
|
"class BaseBehaviour(BaseNetworkAgent):\n",
|
||||||
" def __init__(self, environment=None, agent_id=0, state=()):\n",
|
" def __init__(self, environment=None, agent_id=0, state=()):\n",
|
||||||
" super().__init__(environment=environment, agent_id=agent_id, state=state)\n",
|
" super().__init__(environment=environment, agent_id=agent_id, state=state)\n",
|
||||||
" self._attrs = {}\n",
|
" self._attrs = {}\n",
|
||||||
@ -394,7 +394,7 @@
|
|||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"class ControlModelM2(ComportamientoBase):\n",
|
"class ControlModelM2(BaseBehaviour):\n",
|
||||||
" #Init infected\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",
|
||||||
" 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",
|
||||||
|
Loading…
Reference in New Issue
Block a user