{
public:
TKAxon(TKCell *theOwner);
- ~TKAxon();
+ virtual ~TKAxon();
TKAxonTerminal* addTerminal();
TKCell* getOwner() { return mOwner; }
float getValue();
void setValue(float value);
+protected:
+ std::vector<TKAxonTerminal*> mTerminals;
+
private:
float mValue;
TKCell *mOwner;
- std::vector<TKAxonTerminal*> mTerminals;
TKLock mLock;
};
{
public:
TKAxonTerminal(TKAxon *theOwner) : mOwner(theOwner), mTarget(0) {}
+ virtual ~TKAxonTerminal() {}
+
void setTarget(TKReceptor *theReceptor) {mTarget = theReceptor;}
void release(TKReceptor *receptor);
bool doTick(float time);
bool doDestroy();
- TKCell* addCell(std::string theLocation, std::string theName, std::string type, std::string customScript);
- TKCell* addCell(std::string theLocation, std::string theName, TKCellCode *cellCode, std::string customScript);
- TKCellCode* addCellCode(std::string theName, std::string theAPIType, std::string code);
+ virtual TKCell* addCell(std::string theLocation, std::string theName, std::string type, std::string customScript);
+ virtual TKCell* addCell(std::string theLocation, std::string theName, TKCellCode *cellCode, std::string customScript);
+ virtual TKCellCode* addCellCode(std::string theName, std::string theAPIType, std::string code);
- virtual void setValue(std::string key, float value) = 0;
- inline virtual float getValue(std::string key) = 0;
+ virtual void setValue(std::string key, float value) = 0;
+ inline virtual float getValue(std::string key) = 0;
virtual TKCell* cellFactory(std::string location, std::string name, std::string type, bool canInterface = true) = 0;
virtual TKAxon* axonFactory(TKCell *theOwner) = 0;