#include "TKContainer.h"
#include "TKAxon.h"
-DNQSInputCell::DNQSInputCell(TKContainer *container, std::string location, std::string name, bool canInterface):
- TKCell(container,location,name,canInterface)
+DNQSInputCell::DNQSInputCell(TKContainer *container, std::string location, std::string name):
+ DNCellInterfaceable(container,location,name, true, false), mInputValue(0)
{
}
bool DNQSInputCell::doTick(float time)
{
+ (void)time;
return true;
}
{
return true;
}
+
+void DNQSInputCell::updateReceptorValue()
+{
+ mAxon->setValue(mInputValue);
+}
+
+void DNQSInputCell::setValue(float value)
+{
+ mInputValue = value;
+ mReceptorValueUpdated = true;
+}