@@ -28,48 +28,48 @@ class Activation : public Obj, public Element, public ModelProvider {
2828
2929 // Implementation of Obj virtual methods
3030 RelatedObjectIterable* followManyRelation (Relation* rel) const override ;
31- Obj* followSingleRelation (const Relation* rel) override ;
31+ Obj* followSingleRelation (const Relation* rel) const override ;
3232
33- ActivationKey getKey ();
34- Activation* getParent ();
33+ ActivationKey getKey () const ;
34+ Activation* getParent () const ;
3535 void addOutputLink (Link* l);
3636 virtual void addInputLink (Link* l) = 0;
37- BindingSignal* getBindingSignal (BSType s);
38- std::map<BSType, BindingSignal*> getBindingSignals ();
39- bool hasConflictingBindingSignals (std::map<BSType, BindingSignal*> targetBindingSignals);
40- bool isConflictingBindingSignal (BSType s, BindingSignal* targetBS);
41- bool hasNewBindingSignals (std::map<BSType, BindingSignal*> targetBindingSignals);
37+ BindingSignal* getBindingSignal (BSType s) const ;
38+ std::map<BSType, BindingSignal*> getBindingSignals () const ;
39+ bool hasConflictingBindingSignals (std::map<BSType, BindingSignal*> targetBindingSignals) const ;
40+ bool isConflictingBindingSignal (BSType s, BindingSignal* targetBS) const ;
41+ bool hasNewBindingSignals (std::map<BSType, BindingSignal*> targetBindingSignals) const ;
4242 Activation* branch (std::map<BSType, BindingSignal*> bindingSignals);
4343 void linkOutgoing ();
4444 void linkOutgoing (Synapse* targetSyn);
4545 void propagate (Synapse* targetSyn);
4646 virtual void linkIncoming (Activation* excludedInputAct) = 0;
4747 std::set<Activation*> collectLinkingTargets (Neuron* n);
48- int getId ();
48+ int getId () const ;
4949 long getCreated () const override ;
5050 void setCreated (long ts);
5151 long getFired () const override ;
5252 void setFired ();
5353 void setFired (long f);
5454 void updateFiredStep (Field* net);
5555 Queue* getQueue () const override ;
56- Neuron* getNeuron ();
57- Document* getDocument ();
58- Model* getModel () override ;
59- Config* getConfig () override ;
60- Link* getCorrespondingInputLink (Link* l);
61- Link* getCorrespondingOutputLink (Link* l);
62- std::vector<Link*> getInputLinks (LinkDefinition* linkDefinition);
63- virtual std::vector<Link*> getInputLinks () = 0;
64- std::vector<Link*> getOutputLinks (LinkDefinition* linkDefinition);
65- std::vector<Link*> getOutputLinks ();
66- Link* getOutputLink (Neuron* n);
67- std::vector<Link*> getOutputLinks (Synapse* s);
68- int compareTo (Activation* act);
69- bool equals (Activation* o);
70- int hashCode ();
71- std::string toString ();
72- std::string toKeyString ();
56+ Neuron* getNeuron () const ;
57+ Document* getDocument () const ;
58+ Model* getModel () const override ;
59+ Config* getConfig () const override ;
60+ Link* getCorrespondingInputLink (const Link* l) const ;
61+ Link* getCorrespondingOutputLink (const Link* l) const ;
62+ std::vector<Link*> getInputLinks (LinkDefinition* linkDefinition) const ;
63+ virtual std::vector<Link*> getInputLinks () const = 0;
64+ std::vector<Link*> getOutputLinks (LinkDefinition* linkDefinition) const ;
65+ std::vector<Link*> getOutputLinks () const ;
66+ Link* getOutputLink (Neuron* n) const ;
67+ std::vector<Link*> getOutputLinks (Synapse* s) const ;
68+ int compareTo (Activation* act) const ;
69+ bool equals (Activation* o) const ;
70+ int hashCode () const ;
71+ std::string toString () const override ;
72+ std::string toKeyString () const override ;
7373
7474protected:
7575 int id;
0 commit comments