def commit(self, cxt, cat, aif, pattern):
"""
Commit this neuron to the network. It will already have received a new pattern in the immediately preceding broadcast.
"""
log.trace("Neuron.commit() cxt{} cat{} aif{}".format(cxt, cat, aif))
self.state = NeuronState.com
self.cxt = cxt
self.cat = cat
self.aif = aif
self.dist = 0
# We shouldn't need to assign the pattern. It should already be assigned, but no harm done.
self.pattern = pattern
评论列表
文章目录