got a state modifier (1, <function wakeup at 0x7f21543066a8>)
previous: Sensor2(battery=1, status='sleeping', neighbour='running') <function wakeup at 0x7f21543066a8>
broadcasting change
update from: Sensor2
all candidates: ['Sensor1']
updating Sensor1 with info from Sensor2
changed: Sensor2(battery=1, status='running', neighbour='running')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0.0, 0.0, 0.0]
learning: Sensor2(battery=1, status='sleeping', neighbour='running') <function wakeup at 0x7f21543066a8> Sensor2(battery=1, status='running', neighbour='running') 0
got a state modifier (1, <function wakeup at 0x7f21543066a8>)
previous: Sensor1(battery=3, status='running', neighbour='sleeping') <function wakeup at 0x7f21543066a8>
changed: Sensor1(battery=3, status='running', neighbour='sleeping')
no change in state Sensor1(battery=3, status='running', neighbour='sleeping') Sensor1(battery=3, status='running', neighbour='sleeping')
got a state modifier (0, functools.partial(<function broadcast_change.<locals>.neighbor_changed at 0x7f21541dcbf8>, Sensor2(battery=1, status='sleeping', neighbour='running'), Sensor2(battery=1, status='running', neighbour='running')))
previous: Sensor1(battery=3, status='running', neighbour='sleeping') <function wakeup at 0x7f21543066a8>
changed: Sensor1(battery=3, status='running', neighbour='running')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0.0, 0.0, 0.0]
learning: Sensor1(battery=3, status='running', neighbour='sleeping') <function wakeup at 0x7f21543066a8> Sensor1(battery=3, status='running', neighbour='running') 0
update from: Sensor1
all candidates: ['Sensor2']
updating Sensor2 with info from Sensor1
put it on the q
got a state modifier (0, functools.partial(<function broadcast_change.<locals>.neighbor_changed at 0x7f21541dcd08>, Sensor1(battery=3, status='running', neighbour='running'), Sensor1(battery=3, status='sleeping', neighbour='running')))
previous: Sensor2(battery=1, status='running', neighbour='running') <function recruit at 0x7f2154306730>
changed: Sensor2(battery=1, status='running', neighbour='sleeping')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0.0, 0.0, 0.0]
learning: Sensor2(battery=1, status='running', neighbour='running') <function recruit at 0x7f2154306730> Sensor2(battery=1, status='running', neighbour='sleeping') 0
got a state modifier (0, functools.partial(<function Environment.modify_state.<locals>.env_and_action_modifier at 0x7f21541dcea0>, <function reaction_default at 0x7f21541ce0d0>, <function go_to_sleep at 0x7f2179053598>))
previous: Sensor1(battery=3, status='running', neighbour='running') <function go_to_sleep at 0x7f2179053598>
update from: Sensor1
all candidates: ['Sensor2']
updating Sensor2 with info from Sensor1
changed: Sensor1(battery=3, status='sleeping', neighbour='running')
change in state
available: [<function noop at 0x7f2154306840>, <function wakeup at 0x7f21543066a8>]
q: [0.0, 0.0]
learning: Sensor1(battery=3, status='running', neighbour='running') <function go_to_sleep at 0x7f2179053598> Sensor1(battery=3, status='sleeping', neighbour='running') 0
got a state modifier (0, functools.partial(<function broadcast_change.<locals>.neighbor_changed at 0x7f21541dcbf8>, Sensor1(battery=3, status='running', neighbour='running'), Sensor1(battery=3, status='sleeping', neighbour='running')))
previous: Sensor2(battery=1, status='running', neighbour='sleeping') <function recruit at 0x7f2154306730>
changed: Sensor2(battery=1, status='running', neighbour='sleeping')
no change in state Sensor2(battery=1, status='running', neighbour='sleeping') Sensor2(battery=1, status='running', neighbour='sleeping')
put it on the q
got a state modifier (0, functools.partial(<function Environment.modify_state.<locals>.env_and_action_modifier at 0x7f21541dcd08>, <function reaction_default at 0x7f21541ce0d0>, <function noop at 0x7f2154306840>))
previous: Sensor1(battery=3, status='sleeping', neighbour='running') <function noop at 0x7f2154306840>
changed: Sensor1(battery=3, status='sleeping', neighbour='running')
no change in state Sensor1(battery=3, status='sleeping', neighbour='running') Sensor1(battery=3, status='sleeping', neighbour='running')
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dca60>, True))
previous: Sensor1(battery=3, status='sleeping', neighbour='running') <function noop at 0x7f2154306840>
changed: Sensor1(battery=5, status='running', neighbour='running')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0.0, 0.0, 0.0]
learning: Sensor1(battery=3, status='sleeping', neighbour='running') <function noop at 0x7f2154306840> Sensor1(battery=5, status='running', neighbour='running') 0
update from: Sensor1
all candidates: ['Sensor2']
updating Sensor2 with info from Sensor1
put it on the q
got a state modifier (0, functools.partial(<function broadcast_change.<locals>.neighbor_changed at 0x7f21541dc950>, Sensor1(battery=5, status='running', neighbour='running'), Sensor1(battery=5, status='sleeping', neighbour='running')))
previous: Sensor2(battery=1, status='running', neighbour='sleeping') <function recruit at 0x7f2154306730>
changed: Sensor2(battery=1, status='running', neighbour='sleeping')
no change in state Sensor2(battery=1, status='running', neighbour='sleeping') Sensor2(battery=1, status='running', neighbour='sleeping')
got a state modifier (0, functools.partial(<function Environment.modify_state.<locals>.env_and_action_modifier at 0x7f21541dcea0>, <function reaction_default at 0x7f21541ce0d0>, <function go_to_sleep at 0x7f2179053598>))
previous: Sensor1(battery=5, status='running', neighbour='running') <function go_to_sleep at 0x7f2179053598>
update from: Sensor1
all candidates: ['Sensor2']
updating Sensor2 with info from Sensor1
changed: Sensor1(battery=5, status='sleeping', neighbour='running')
change in state
available: [<function noop at 0x7f2154306840>, <function wakeup at 0x7f21543066a8>]
q: [0.0, 0.0]
learning: Sensor1(battery=5, status='running', neighbour='running') <function go_to_sleep at 0x7f2179053598> Sensor1(battery=5, status='sleeping', neighbour='running') 0
got a state modifier (0, functools.partial(<function broadcast_change.<locals>.neighbor_changed at 0x7f21541dcbf8>, Sensor1(battery=5, status='running', neighbour='running'), Sensor1(battery=5, status='sleeping', neighbour='running')))
previous: Sensor2(battery=1, status='running', neighbour='sleeping') <function recruit at 0x7f2154306730>
changed: Sensor2(battery=1, status='running', neighbour='sleeping')
no change in state Sensor2(battery=1, status='running', neighbour='sleeping') Sensor2(battery=1, status='running', neighbour='sleeping')
put it on the q
sensing q: 0
got a state modifier (0, functools.partial(<function Environment.modify_state.<locals>.env_and_action_modifier at 0x7f21541dc950>, <function reaction_default at 0x7f21541ce0d0>, <function noop at 0x7f2154306840>))
previous: Sensor1(battery=5, status='sleeping', neighbour='running') <function noop at 0x7f2154306840>
changed: Sensor1(battery=5, status='sleeping', neighbour='running')
no change in state Sensor1(battery=5, status='sleeping', neighbour='running') Sensor1(battery=5, status='sleeping', neighbour='running')
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dcc80>, True))
previous: Sensor2(battery=1, status='running', neighbour='sleeping') <function recruit at 0x7f2154306730>
changed: Sensor2(battery=0, status='sleeping', neighbour='sleeping')
change in state
available: [<function noop at 0x7f2154306840>, <function wakeup at 0x7f21543066a8>]
q: [0.0, 0.0]
learning: Sensor2(battery=1, status='running', neighbour='sleeping') <function recruit at 0x7f2154306730> Sensor2(battery=0, status='sleeping', neighbour='sleeping') -10
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dca60>, True))
previous: Sensor1(battery=5, status='sleeping', neighbour='running') <function noop at 0x7f2154306840>
changed: Sensor1(battery=5, status='running', neighbour='running')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0, 0.0, 0.0]
learning: Sensor1(battery=5, status='sleeping', neighbour='running') <function noop at 0x7f2154306840> Sensor1(battery=5, status='running', neighbour='running') 0
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dcc80>, True))
previous: Sensor2(battery=0, status='sleeping', neighbour='sleeping') <function wakeup at 0x7f21543066a8>
changed: Sensor2(battery=2, status='sleeping', neighbour='sleeping')
change in state
available: [<function noop at 0x7f2154306840>, <function wakeup at 0x7f21543066a8>]
q: [0.0, 0.0]
learning: Sensor2(battery=0, status='sleeping', neighbour='sleeping') <function wakeup at 0x7f21543066a8> Sensor2(battery=2, status='sleeping', neighbour='sleeping') 0
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dca60>, True))
previous: Sensor1(battery=5, status='running', neighbour='running') <function recruit at 0x7f2154306730>
changed: Sensor1(battery=4, status='running', neighbour='running')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0.0, 0.0, 0.0]
learning: Sensor1(battery=5, status='running', neighbour='running') <function recruit at 0x7f2154306730> Sensor1(battery=4, status='running', neighbour='running') 2
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dcc80>, True))
previous: Sensor2(battery=2, status='sleeping', neighbour='sleeping') <function noop at 0x7f2154306840>
changed: Sensor2(battery=4, status='sleeping', neighbour='sleeping')
change in state
available: [<function noop at 0x7f2154306840>, <function wakeup at 0x7f21543066a8>]
q: [0.0, 0.0]
learning: Sensor2(battery=2, status='sleeping', neighbour='sleeping') <function noop at 0x7f2154306840> Sensor2(battery=4, status='sleeping', neighbour='sleeping') 0
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dca60>, True))
previous: Sensor1(battery=4, status='running', neighbour='running') <function noop at 0x7f2154306840>
changed: Sensor1(battery=3, status='running', neighbour='running')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0, 0.0, 0.0]
learning: Sensor1(battery=4, status='running', neighbour='running') <function noop at 0x7f2154306840> Sensor1(battery=3, status='running', neighbour='running') 2
sensing q: 0
got a state modifier (1, functools.partial(<function battery_action.<locals>.adjust_battery at 0x7f21541dcc80>, False))
previous: Sensor2(battery=4, status='sleeping', neighbour='sleeping') <function noop at 0x7f2154306840>
changed: Sensor2(battery=5, status='running', neighbour='sleeping')
change in state
available: [<function go_to_sleep at 0x7f2179053598>, <function noop at 0x7f2154306840>, <function recruit at 0x7f2154306730>]
q: [0.0, 0.0, 0.0]
learning: Sensor2(battery=4, status='sleeping', neighbour='sleeping') <function noop at 0x7f2154306840> Sensor2(battery=5, status='running', neighbour='sleeping') 0