public BalancedReceptor(AnimatedReceptor ar) { receptor = ar; wall = ar.getWall(); shift = new PointF(0, 0); position = new PointF(ar.Position.X, ar.Position.Y); }
public void addQuery(String[] words, int interval, float intensivity) { int index = 0; frame = 0; frameChanged(frame, null); query.clear(); foreach (String word in words) { AnimatedNeuron an = neurons.Find(k => k.Name == word); if (an == null) { continue; } Receptor receptor = brain.Receptors.Find(k => k.Name == word); Synapse synapse = brain.Synapses.Find(k => k.Pre == receptor); receptor.initialize(interval, interval - index - 1, intensivity); new SequenceReceptor(query, receptor); AnimatedReceptor ar = new AnimatedReceptor(receptor, an, index++ % 4); synapses.Add(new AnimatedSynapse(ar, an, synapse)); receptors.Add(ar); } query.arrange(); }
public AnimatedSynapse(AnimatedReceptor pre, AnimatedNeuron post, Synapse syn) { this.pre = pre; this.post = post; duplex = null; vector = new AnimatedVector(pre, post); synapse = new AnimatedState(syn, vector); pre.Output = this; post.Input.Add(this); changePosition(); }