avida-ed-library-build/docs/Avida-Resources.txt

70 lines
2.2 KiB
Plaintext
Executable File

Avida from the command line.
There are several "main"s in avida.
source/targets/viewer-text/viewer-text.cc
not used that often - put terminal graphics - world as hash marks.
source/targets/avida/primative.cc
typical one that folks use that is where "main" is
Abstraction level for Avida-ED on the mac between that and the rest of Avida.
There are half implemented versions of avida that Dave left and did not complete.
world object,
cworld - old naming convention (c said it was a class)
still the main work horse
World - (from Dave) new faccet system and the way Avida-ED Mac worked
both worlds are needed. circularly dependent. never separated.
managers are "facets"
cAvidaConfig* cfg = new cAvidaConfig();
- the hard coded version (built in defaults) global config
- all of avida.cfg file set up here with default values.
Avida::Util::ProcessCmdLineArgs(argc, argv, cfg, defs);
loads command line arguments
names of files except avida.cfg are in avida.cfg
Everything was supposed to be facetted.
generic programming concept that Dave wanted in Avida, but not fully implemented
not sure if it is the same as views.
Avida::World* new_world = new Avida::World();
sets up facetted world
cWorld* world = cWorld::Initialize(cfg, cString(Apto::FileSystem::GetCWD()), new_world, &feedback, &defs);
everything is controlled through cWorld
go in and read the config files. (passing in current directory)
/******** inside cWorld initialize *******/
cUserFeedback feedback;
used to have a communication cue.
effected structure of Json project.
looks for messages
(new Avida2Driver(world, new_world))->Run();
runs one update at a time.
Avida-ED 3 uses "web" driver.
in cWorld.cc on line 121 create the world
if starts with "m" it is a member of the current class (not a local variable) by convention in Avida-ED.
load on line 128
In order speed out time ( there is an delta offset)
------------
Spatial system and the Global resource system.
in the course of an update
the deltas will not be applied then "end of an update" when ever someone wants too.
----------
effect of reaction with food does not take place until cell divides.