Refactor project structure and update configurations
The project now builds.
- Updated .vscode/launch.json and .vscode/tasks.json for improved
development workflow
- Modified Makefile.am, configure, and configure.ac for build process
enhancements
- Updated corelogic/Makefile.am and
corelogic/include/sensors/interoceptor.h
- Renamed corelogic/main.cpp to main.cpp for better project organization
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
AM_CPPFLAGS = -I$(srcdir)/include
|
||||
|
||||
noinst_LIBRARIES = libcorelogic.a
|
||||
libcorelogic_a_SOURCES = painfulQuale.cpp mind.cpp main.cpp
|
||||
libcorelogic_a_SOURCES = painfulQuale.cpp mind.cpp
|
||||
|
||||
@@ -11,7 +11,8 @@ public:
|
||||
~Interoceptor() = default;
|
||||
|
||||
public:
|
||||
uint32_t id, value;
|
||||
uint32_t id;
|
||||
uint64_t value;
|
||||
};
|
||||
|
||||
class NeutralInteroceptor
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
#include <mind.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
Mind mind;
|
||||
|
||||
for (;;)
|
||||
{
|
||||
AttentionGrabber currentEmergency = mind.poll();
|
||||
|
||||
if (!currentEmergency)
|
||||
{
|
||||
// Idle thought's goal is automatically Goal::DRIFT.
|
||||
auto idleThought = std::make_shared<IdleThought>();
|
||||
|
||||
mind.focusOn(idleThought);
|
||||
}
|
||||
else
|
||||
{
|
||||
thought::Goal goal;
|
||||
|
||||
auto urgentThought = std::make_shared<ActiveThought>(currentEmergency);
|
||||
|
||||
if (!mind.recognizes(currentEmergency.cause)) {
|
||||
goal = thought::Goal
|
||||
::ASSOCIATE_CAUSAL_QUALE_WITH_INTRINSIC_MOTIVATORS;
|
||||
}
|
||||
else {
|
||||
goal = thought::Goal
|
||||
::RESPOND_TO_CAUSAL_QUALE;
|
||||
}
|
||||
|
||||
urgentThought->setGoal(goal);
|
||||
mind.focusOn(urgentThought);
|
||||
}
|
||||
|
||||
mind.execute();
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user