[Avida-SVN] r2941 - in development/source: cpu main
connel42 at myxo.css.msu.edu
connel42 at myxo.css.msu.edu
Fri Nov 14 06:09:09 PST 2008
Author: connel42
Date: 2008-11-14 09:09:08 -0500 (Fri, 14 Nov 2008)
New Revision: 2941
Modified:
development/source/cpu/cHardwareCPU.cc
development/source/main/cAvidaConfig.h
Log:
energy sharing percentage now has its own variable (no longer using the merit sharing one)
Modified: development/source/cpu/cHardwareCPU.cc
===================================================================
--- development/source/cpu/cHardwareCPU.cc 2008-11-13 05:10:38 UTC (rev 2940)
+++ development/source/cpu/cHardwareCPU.cc 2008-11-14 14:09:08 UTC (rev 2941)
@@ -4111,7 +4111,7 @@
}
//Note: could get fancier about fraction of energy to send
- DoEnergyDonatePercent(receiver, m_world->GetConfig().MERIT_GIVEN.Get());
+ DoEnergyDonatePercent(receiver, m_world->GetConfig().ENERGY_SHARING_PCT.Get());
organism->GetPhenotype().IncDonates();
GetOrganism()->GetOrgInterface().GetDeme()->IncEnergyDonationsMade();
Modified: development/source/main/cAvidaConfig.h
===================================================================
--- development/source/main/cAvidaConfig.h 2008-11-13 05:10:38 UTC (rev 2940)
+++ development/source/main/cAvidaConfig.h 2008-11-14 14:09:08 UTC (rev 2941)
@@ -467,7 +467,7 @@
CONFIG_ADD_VAR(NET_STYLE, int, 0, "Communication Style. 0 = Random Next, 1 = Receiver Facing");
CONFIG_ADD_GROUP(ORGANISM_MESSAGING_GROUP, "Organism Message-Based Communication");
- CONFIG_ADD_VAR(MESSAGE_TYPE, int, 0, "Messaging Stle. 0=Receiver Facing, 1=Broadcast");
+ CONFIG_ADD_VAR(MESSAGE_TYPE, int, 0, "Messaging Style. 0=Receiver Facing, 1=Broadcast");
CONFIG_ADD_VAR(MESSAGE_BCAST_RADIUS, int, 1, "Broadcast message radius (cells)");
CONFIG_ADD_GROUP(BUY_SELL_GROUP, "Buying and Selling Parameters");
@@ -497,7 +497,7 @@
CONFIG_ADD_VAR(FRAC_ENERGY_DECAY_AT_ORG_BIRTH, double, 0.0, "Fraction of energy lost due to decay during organism reproduction.");
CONFIG_ADD_VAR(FRAC_ENERGY_DECAY_AT_DEME_BIRTH, double, 0.0, "Fraction of energy lost due to decay during deme reproduction.");
CONFIG_ADD_VAR(NUM_INST_EXC_BEFORE_0_ENERGY, int, 0, "Number of instructions executed before energy is exhausted.");
- CONFIG_ADD_VAR(ENERGY_CAP, double, -1.0, "Maximum amount of energy that can be stored in an organism. -1 means the cap is set to Max Int"); // TODO - is this done?
+ CONFIG_ADD_VAR(ENERGY_CAP, double, -1.0, "Maximum amount of energy that can be stored in an organism. -1 means the cap is set to Max Double"); // TODO - is this done?
CONFIG_ADD_VAR(APPLY_ENERGY_METHOD, int, 0, "When should rewarded energy be applied to current energy?\n0 = on divide\n1 = on completion of task\n2 = on sleep");
CONFIG_ADD_VAR(FRAC_ENERGY_TRANSFER, double, 0.0, "Fraction of replaced organism's energy take by new resident");
CONFIG_ADD_VAR(LOG_SLEEP_TIMES, bool, 0, "Log sleep start and end times. 0/1 (off/on)\nWARNING: may use lots of memory.");
@@ -510,6 +510,7 @@
CONFIG_ADD_GROUP(ENERGY_SHARING_GROUP, "Energy Sharing Settings");
CONFIG_ADD_VAR(ENERGY_SHARING_METHOD, int, 0, "Method for sharing energy. 0=receiver must actively receive, 1=energy pushed on receiver");
+ CONFIG_ADD_VAR(ENERGY_SHARING_PCT, double, 0.0, "Percent of energy to share");
CONFIG_ADD_VAR(ENERGY_SHARING_LOSS, double, 0.0, "Percent of shared energy lost in transfer");
CONFIG_ADD_GROUP(SECOND_PASS_GROUP, "Tracking metrics known after the running experiment previously");
More information about the Avida-cvs
mailing list