[Avida-cvs] [Avida2-svn] r138 - in trunk/source:
bindings/Boost.Python cpu main python python/AvidaGui2 tools
kaben at myxo.css.msu.edu
kaben at myxo.css.msu.edu
Wed Apr 13 02:32:09 PDT 2005
Author: kaben
Date: 2005-04-13 05:32:08 -0400 (Wed, 13 Apr 2005)
New Revision: 138
Added:
trunk/source/bindings/Boost.Python/cpu_defs-fixups.cc
trunk/source/bindings/Boost.Python/cpu_defs-fixups.hh
trunk/source/bindings/Boost.Python/cpu_defs.pyste
trunk/source/bindings/Boost.Python/cpu_head-fixups.cc
trunk/source/bindings/Boost.Python/cpu_head-fixups.hh
trunk/source/bindings/Boost.Python/cpu_memory-fixups.cc
trunk/source/bindings/Boost.Python/cpu_memory-fixups.hh
trunk/source/bindings/Boost.Python/hardware_status_printer.pyste
trunk/source/bindings/Boost.Python/hardware_tracer.pyste
trunk/source/bindings/Boost.Python/hardware_tracer_4stack.pyste
trunk/source/bindings/Boost.Python/hardware_tracer_cpu.pyste
trunk/source/bindings/Boost.Python/hardware_tracer_test_cpu.pyste
trunk/source/bindings/Boost.Python/py_hardware_tracer-fixups.cc
trunk/source/bindings/Boost.Python/py_hardware_tracer.hh
trunk/source/bindings/Boost.Python/py_hardware_tracer.pyste
trunk/source/bindings/Boost.Python/resource_count-fixups.cc
trunk/source/bindings/Boost.Python/resource_count-fixups.hh
trunk/source/bindings/Boost.Python/tVector.pyste
trunk/source/bindings/Boost.Python/tVector_instantiations.hh
trunk/source/bindings/Boost.Python/test_cpu-fixups.cc
trunk/source/bindings/Boost.Python/test_cpu-fixups.hh
trunk/source/cpu/hardware_status_printer.cc
trunk/source/cpu/hardware_status_printer.hh
trunk/source/cpu/hardware_tracer.hh
trunk/source/cpu/hardware_tracer_4stack.hh
trunk/source/cpu/hardware_tracer_cpu.hh
trunk/source/cpu/hardware_tracer_test_cpu.hh
trunk/source/python/AvidaGui2/pyHardwareCPUTrace.py
Modified:
trunk/source/bindings/Boost.Python/4stack_head.pyste
trunk/source/bindings/Boost.Python/A.pyste
trunk/source/bindings/Boost.Python/B.pyste
trunk/source/bindings/Boost.Python/CMakeLists.txt
trunk/source/bindings/Boost.Python/analyze.pyste
trunk/source/bindings/Boost.Python/analyze_command.pyste
trunk/source/bindings/Boost.Python/analyze_command_def.pyste
trunk/source/bindings/Boost.Python/analyze_command_def_base.pyste
trunk/source/bindings/Boost.Python/analyze_flow_command.pyste
trunk/source/bindings/Boost.Python/analyze_flow_command_def.pyste
trunk/source/bindings/Boost.Python/analyze_function.pyste
trunk/source/bindings/Boost.Python/analyze_genotype.pyste
trunk/source/bindings/Boost.Python/analyze_util.pyste
trunk/source/bindings/Boost.Python/avida.pyste
trunk/source/bindings/Boost.Python/avida_driver_analyze.pyste
trunk/source/bindings/Boost.Python/avida_driver_base.pyste
trunk/source/bindings/Boost.Python/avida_driver_population.pyste
trunk/source/bindings/Boost.Python/avida_triggers.pyste
trunk/source/bindings/Boost.Python/birth_chamber.pyste
trunk/source/bindings/Boost.Python/block_struct.pyste
trunk/source/bindings/Boost.Python/cCycleCheck.pyste
trunk/source/bindings/Boost.Python/cID.pyste
trunk/source/bindings/Boost.Python/cStringable.pyste
trunk/source/bindings/Boost.Python/cTestCase.pyste
trunk/source/bindings/Boost.Python/cTestProblem.pyste
trunk/source/bindings/Boost.Python/cTestResult.pyste
trunk/source/bindings/Boost.Python/cTextTestInterpreter.pyste
trunk/source/bindings/Boost.Python/callback_util.pyste
trunk/source/bindings/Boost.Python/code_label.pyste
trunk/source/bindings/Boost.Python/config.pyste
trunk/source/bindings/Boost.Python/const_schedule.pyste
trunk/source/bindings/Boost.Python/count_tracker.pyste
trunk/source/bindings/Boost.Python/cpu_head.pyste
trunk/source/bindings/Boost.Python/cpu_memory.pyste
trunk/source/bindings/Boost.Python/cpu_stack.pyste
trunk/source/bindings/Boost.Python/cpu_stats.pyste
trunk/source/bindings/Boost.Python/cpu_test_info.pyste
trunk/source/bindings/Boost.Python/data_entry.pyste
trunk/source/bindings/Boost.Python/data_file.pyste
trunk/source/bindings/Boost.Python/data_file_manager.pyste
trunk/source/bindings/Boost.Python/data_manager_base.pyste
trunk/source/bindings/Boost.Python/double_sum.pyste
trunk/source/bindings/Boost.Python/environment.pyste
trunk/source/bindings/Boost.Python/event.pyste
trunk/source/bindings/Boost.Python/event_factory.pyste
trunk/source/bindings/Boost.Python/event_factory_manager.pyste
trunk/source/bindings/Boost.Python/event_list.pyste
trunk/source/bindings/Boost.Python/event_list_entry.pyste
trunk/source/bindings/Boost.Python/event_list_iterator.pyste
trunk/source/bindings/Boost.Python/event_triggers.pyste
trunk/source/bindings/Boost.Python/file.pyste
trunk/source/bindings/Boost.Python/fitness_matrix.pyste
trunk/source/bindings/Boost.Python/fixed_block.pyste
trunk/source/bindings/Boost.Python/fixed_coords.pyste
trunk/source/bindings/Boost.Python/genebank.pyste
trunk/source/bindings/Boost.Python/genesis.pyste
trunk/source/bindings/Boost.Python/genome.pyste
trunk/source/bindings/Boost.Python/genome_util.pyste
trunk/source/bindings/Boost.Python/genotype.pyste
trunk/source/bindings/Boost.Python/genotype_batch.pyste
trunk/source/bindings/Boost.Python/genotype_birth_data.pyste
trunk/source/bindings/Boost.Python/genotype_control.pyste
trunk/source/bindings/Boost.Python/genotype_test_data.pyste
trunk/source/bindings/Boost.Python/hardware_4stack.pyste
trunk/source/bindings/Boost.Python/hardware_4stack_thread.pyste
trunk/source/bindings/Boost.Python/hardware_base.pyste
trunk/source/bindings/Boost.Python/hardware_cpu-fixups.cc
trunk/source/bindings/Boost.Python/hardware_cpu.pyste
trunk/source/bindings/Boost.Python/hardware_cpu_thread.pyste
trunk/source/bindings/Boost.Python/hardware_factory.pyste
trunk/source/bindings/Boost.Python/hardware_util.pyste
trunk/source/bindings/Boost.Python/help_alias.pyste
trunk/source/bindings/Boost.Python/help_entry.pyste
trunk/source/bindings/Boost.Python/help_full_entry.pyste
trunk/source/bindings/Boost.Python/help_manager.pyste
trunk/source/bindings/Boost.Python/help_type.pyste
trunk/source/bindings/Boost.Python/histogram.pyste
trunk/source/bindings/Boost.Python/indexed_block_struct.pyste
trunk/source/bindings/Boost.Python/init_file.pyste
trunk/source/bindings/Boost.Python/inject_genebank.pyste
trunk/source/bindings/Boost.Python/inject_genotype.pyste
trunk/source/bindings/Boost.Python/inject_genotype_birth_data.pyste
trunk/source/bindings/Boost.Python/inject_genotype_control.pyste
trunk/source/bindings/Boost.Python/inject_genotype_element.pyste
trunk/source/bindings/Boost.Python/inject_genotype_queue.pyste
trunk/source/bindings/Boost.Python/inst_lib_base.pyste
trunk/source/bindings/Boost.Python/inst_lib_cpu.pyste
trunk/source/bindings/Boost.Python/inst_set.pyste
trunk/source/bindings/Boost.Python/inst_util.pyste
trunk/source/bindings/Boost.Python/instruction.pyste
trunk/source/bindings/Boost.Python/int_sum.pyste
trunk/source/bindings/Boost.Python/integrated_schedule.pyste
trunk/source/bindings/Boost.Python/integrated_schedule_node.pyste
trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste
trunk/source/bindings/Boost.Python/landscape.pyste
trunk/source/bindings/Boost.Python/lineage.pyste
trunk/source/bindings/Boost.Python/lineage_control.pyste
trunk/source/bindings/Boost.Python/local_mutations.pyste
trunk/source/bindings/Boost.Python/memory_flags.pyste
trunk/source/bindings/Boost.Python/merit.pyste
trunk/source/bindings/Boost.Python/mutation.pyste
trunk/source/bindings/Boost.Python/mutation_lib.pyste
trunk/source/bindings/Boost.Python/mutation_rates.pyste
trunk/source/bindings/Boost.Python/mx_code_array.pyste
trunk/source/bindings/Boost.Python/my_code_array_less_than.pyste
trunk/source/bindings/Boost.Python/org_message.pyste
trunk/source/bindings/Boost.Python/organism.pyste
trunk/source/bindings/Boost.Python/phenotype.pyste
trunk/source/bindings/Boost.Python/population.pyste
trunk/source/bindings/Boost.Python/population_cell.pyste
trunk/source/bindings/Boost.Python/population_event.pyste
trunk/source/bindings/Boost.Python/population_event_factory.pyste
trunk/source/bindings/Boost.Python/population_interface.pyste
trunk/source/bindings/Boost.Python/prob_schedule.pyste
trunk/source/bindings/Boost.Python/py_avida_driver-fixups.cc
trunk/source/bindings/Boost.Python/py_avida_driver.pyste
trunk/source/bindings/Boost.Python/random.pyste
trunk/source/bindings/Boost.Python/reaction.pyste
trunk/source/bindings/Boost.Python/reaction_lib.pyste
trunk/source/bindings/Boost.Python/reaction_process.pyste
trunk/source/bindings/Boost.Python/reaction_requisite.pyste
trunk/source/bindings/Boost.Python/reaction_result.pyste
trunk/source/bindings/Boost.Python/ref_block.pyste
trunk/source/bindings/Boost.Python/resource.pyste
trunk/source/bindings/Boost.Python/resource_count.pyste
trunk/source/bindings/Boost.Python/resource_lib.pyste
trunk/source/bindings/Boost.Python/running_average.pyste
trunk/source/bindings/Boost.Python/scaled_block.pyste
trunk/source/bindings/Boost.Python/schedule.pyste
trunk/source/bindings/Boost.Python/spatial_count_elem.pyste
trunk/source/bindings/Boost.Python/spatial_res_count.pyste
trunk/source/bindings/Boost.Python/species.pyste
trunk/source/bindings/Boost.Python/species_control.pyste
trunk/source/bindings/Boost.Python/species_queue.pyste
trunk/source/bindings/Boost.Python/stats.pyste
trunk/source/bindings/Boost.Python/string.pyste
trunk/source/bindings/Boost.Python/string_iterator.pyste
trunk/source/bindings/Boost.Python/string_list.pyste
trunk/source/bindings/Boost.Python/string_util.pyste
trunk/source/bindings/Boost.Python/tArray.pyste
trunk/source/bindings/Boost.Python/tBuffer.pyste
trunk/source/bindings/Boost.Python/tDictionary.pyste
trunk/source/bindings/Boost.Python/tList.pyste
trunk/source/bindings/Boost.Python/tMatrix.pyste
trunk/source/bindings/Boost.Python/task_entry.pyste
trunk/source/bindings/Boost.Python/task_lib.pyste
trunk/source/bindings/Boost.Python/test_cpu.pyste
trunk/source/bindings/Boost.Python/test_util.pyste
trunk/source/bindings/Boost.Python/tools.pyste
trunk/source/bindings/Boost.Python/uint.pyste
trunk/source/bindings/Boost.Python/weighted_index.pyste
trunk/source/cpu/CMakeLists.txt
trunk/source/cpu/cpu_test_info.cc
trunk/source/cpu/cpu_test_info.hh
trunk/source/cpu/hardware_4stack.cc
trunk/source/cpu/hardware_4stack.hh
trunk/source/cpu/hardware_base.cc
trunk/source/cpu/hardware_base.hh
trunk/source/cpu/hardware_cpu.cc
trunk/source/cpu/hardware_cpu.hh
trunk/source/cpu/hardware_factory.cc
trunk/source/cpu/test_cpu.cc
trunk/source/cpu/test_util.cc
trunk/source/main/analyze.cc
trunk/source/main/analyze_genotype.cc
trunk/source/main/avida_driver_population.cc
trunk/source/main/config.cc
trunk/source/main/genotype.cc
trunk/source/main/landscape.cc
trunk/source/main/landscape.hh
trunk/source/main/organism.cc
trunk/source/main/population.cc
trunk/source/python/AvidaEd-osx.py
trunk/source/python/AvidaGui2/pyAnalyzeControlsView.ui
trunk/source/python/AvidaGui2/pyOneOrg_ScopeView.ui
trunk/source/python/AvidaGui2/pyOneOrganismView.ui
trunk/source/python/AvidaGui2/pyOrganismScopeCtrl.py
trunk/source/python/AvidaGui2/pyOrganismScopeView.py
trunk/source/python/AvidaGui2/pyPetriCanvasView.py
trunk/source/python/AvidaGui2/pyPetriDishCtrl.py
trunk/source/python/AvidaGui2/pyPopulationCellItem.py
trunk/source/python/AvidaGui2/pyTemporaryReloads.py
trunk/source/python/CMakeLists.txt
trunk/source/python/setup_osx.py.in
trunk/source/tools/const_schedule.cc
trunk/source/tools/integrated_schedule.cc
trunk/source/tools/prob_schedule.cc
Log:
* Merged private branch developers/kaben-organism-scope changes -r127:137 into trunk.
Modified: trunk/source/bindings/Boost.Python/4stack_head.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/4stack_head.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/4stack_head.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
set_policy(c4StackHead.FlagPointMut, return_internal_reference())
set_policy(c4StackHead.FlagCopyMut, return_internal_reference())
set_policy(c4StackHead.FlagBreakpoint, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/A.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/A.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/A.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
A = Class("A", "A.hh")
C = Class("C", "A.hh")
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/B.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/B.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/B.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
Import("A.pyste")
B = Class("B", "B.hh")
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/CMakeLists.txt
===================================================================
--- trunk/source/bindings/Boost.Python/CMakeLists.txt 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/CMakeLists.txt 2005-04-13 09:32:08 UTC (rev 138)
@@ -51,14 +51,12 @@
# XXX : cScaledBlock is designed for use with raw pointers, and won't play well with Python. Hence, don't wrap it.
#scaled_block::
- # XXX skip for now. Boost is unhappy with references to bools.
- #cpu_memory::${CMAKE_CURRENT_SOURCE_DIR}/genome.pyste:
# XXX I can't figure out how it works.
tArray::${CMAKE_CURRENT_SOURCE_DIR}/organism.pyste:${CMAKE_CURRENT_SOURCE_DIR}/merit.pyste:${CMAKE_CURRENT_SOURCE_DIR}/mutation.pyste:${CMAKE_CURRENT_SOURCE_DIR}/int_sum.pyste:
# XXX Boost doesn't like that tMatrix returns refs to doubles.
#tMatrix::
- ###cpu_head::
+ cpu_head::
###4stack_head::${CMAKE_CURRENT_SOURCE_DIR}/cpu_head.pyste:
###event::
###population_event::${CMAKE_CURRENT_SOURCE_DIR}/event.pyste:
@@ -150,6 +148,8 @@
fixed_block:: # XXX XXX
fixed_coords:: # XXX XXX
genome:: # XXX XXX
+ cpu_memory::${CMAKE_CURRENT_SOURCE_DIR}/genome.pyste:
+
genome_util:: # XXX XXX
genotype_test_data:: # XXX XXX
histogram:: # XXX XXX
@@ -174,6 +174,7 @@
avida_driver_population::${CMAKE_CURRENT_SOURCE_DIR}/avida_driver_base.pyste # XXX XXX XXX
config:: # XXX XXX XXX
count_tracker:: # XXX XXX XXX
+ cpu_defs::
data_entry:: # XXX XXX XXX
data_file:: # XXX XXX XXX
data_file_manager:: # XXX XXX XXX
@@ -182,9 +183,15 @@
file::${CMAKE_CURRENT_SOURCE_DIR}/file-fixups.hh # XXX XXX XXX
init_file::${CMAKE_CURRENT_SOURCE_DIR}/file.pyste # XXX XXX XXX
genesis::${CMAKE_CURRENT_SOURCE_DIR}/init_file.pyste:${CMAKE_CURRENT_SOURCE_DIR}/genesis-fixups.hh # XXX XXX XXX
- hardware_base::${CPU_SRC_DIR}/hardware_base.hh # XXX XXX XXX
+ #hardware_base::${CPU_SRC_DIR}/hardware_base.hh # XXX XXX XXX
+ hardware_base::
hardware_4stack::${CMAKE_CURRENT_SOURCE_DIR}/hardware_base.pyste # XXX XXX XXX
hardware_cpu::${CMAKE_CURRENT_SOURCE_DIR}/hardware_base.pyste:${CMAKE_CURRENT_SOURCE_DIR}/hardware_cpu-fixups.hh # XXX XXX XXX
+ hardware_tracer::
+ hardware_tracer_cpu::
+ hardware_tracer_4stack::
+ hardware_tracer_test_cpu::
+ hardware_status_printer::
hardware_util:: # XXX XXX XXX
inst_lib_base:: # XXX XXX XXX
inst_lib_cpu::${CMAKE_CURRENT_SOURCE_DIR}/inst_lib_base.pyste # XXX XXX XXX
@@ -192,6 +199,7 @@
population:: # XXX XXX XXX
population_interface:: # XXX XXX XXX
py_avida_driver::${CMAKE_CURRENT_SOURCE_DIR}/avida_driver_population.pyste # XXX XXX XXX
+ py_hardware_tracer::
reaction_lib:: # XXX XXX XXX
resource_count:: # XXX XXX XXX
resource_lib:: # XXX XXX XXX
@@ -201,13 +209,20 @@
task_lib:: # XXX XXX XXX
test_cpu:: # XXX XXX XXX
tList::${CMAKE_CURRENT_SOURCE_DIR}/string.pyste # XXX XXX XXX
+ tVector::
)
SET(PyAvida_Extra_Cpp_Files
AB.cc
+ cpu_defs-fixups.cc
+ cpu_head-fixups.cc
+ cpu_memory-fixups.cc
file-fixups.cc
genesis-fixups.cc
hardware_cpu-fixups.cc
py_avida_driver-fixups.cc
+ py_hardware_tracer-fixups.cc
+ resource_count-fixups.cc
+ test_cpu-fixups.cc
)
ADD_LIBRARY(PyAvidaRepairHacks SHARED ${PyAvida_Extra_Cpp_Files})
Modified: trunk/source/bindings/Boost.Python/analyze.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
Include("environment.hh")
cAnalyze = Class("cAnalyze", "analyze.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_command.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_command.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_command.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
cAnalyzeCommand = Class("cAnalyzeCommand", "analyze_command.hh")
set_policy(cAnalyzeCommand.GetCommandList, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_command_def.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_command_def.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_command_def.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
Import("analyze_command_def_base.pyste")
cAnalyzeCommandDef = Class("cAnalyzeCommandDef", "analyze_command_def.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_command_def_base.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_command_def_base.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_command_def_base.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,5 @@
Include("analyze_command.hh")
cAnalyzeCommandDefBase = Class("cAnalyzeCommandDefBase", "analyze_command_def_base.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_flow_command.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_flow_command.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_flow_command.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
cAnalyzeFlowCommand = Class("cAnalyzeFlowCommand", "analyze_flow_command.hh")
set_policy(cAnalyzeFlowCommand.GetCommandList, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_flow_command_def.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_flow_command_def.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_flow_command_def.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
Import("analyze_command_def_base.pyste")
cAnalyzeFlowCommandDef = Class("cAnalyzeFlowCommandDef", "analyze_flow_command_def.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_function.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_function.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_function.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
cAnalyzeFunction = Class("cAnalyzeFunction", "analyze_function.hh")
set_policy(cAnalyzeFunction.GetCommandList, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_genotype.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_genotype.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_genotype.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
Include("inst_set.hh")
cAnalyzeGenotype = Class("cAnalyzeGenotype", "analyze_genotype.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/analyze_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/analyze_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/analyze_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
Include("inst_set.hh")
cAnalyzeUtil = Class("cAnalyzeUtil", "analyze_util.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/avida.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/avida.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/avida.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -9,3 +9,4 @@
Function("SetupAvidaPython", "avida-fixups.hh")
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/avida_driver_analyze.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/avida_driver_analyze.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/avida_driver_analyze.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
Include("string.hh")
cAvidaDriver_Analyze = Class("cAvidaDriver_Analyze", "avida_driver_analyze.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/avida_driver_base.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/avida_driver_base.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/avida_driver_base.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
""")
cAvidaDriver_Base = Class("cAvidaDriver_Base", "avida_driver_base.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/avida_driver_population.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/avida_driver_population.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/avida_driver_population.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,3 +6,4 @@
cAvidaDriver_Population = Class("cAvidaDriver_Population", "avida_driver_population.hh")
set_policy(cAvidaDriver_Population.GetPopulation, return_internal_reference())
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/avida_triggers.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/avida_triggers.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/avida_triggers.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,6 @@
+
Import("event_triggers.pyste")
+
cAvidaTriggers = Class("cAvidaTriggers", "avida_triggers.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/birth_chamber.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/birth_chamber.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/birth_chamber.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("organism.hh")
Include("genebank.hh")
@@ -2 +3,3 @@
cBirthChamber = Class("cBirthChamber", "birth_chamber.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/block_struct.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/block_struct.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/block_struct.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cBlockStruct = Class("cBlockStruct", "block_struct.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cCycleCheck.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cCycleCheck.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cCycleCheck.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,4 @@
cCycleCheck = Class("cCycleCheck", "cCycleCheck.hh")
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cID.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cID.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cID.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
+
cID = Class("cID", "cID.hh")
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cStringable.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cStringable.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cStringable.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
cStringable = Class("cStringable", "cStringable.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cTestCase.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cTestCase.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cTestCase.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,4 +1,6 @@
+
cTestCase = Class("cTestCase", "cTestCase.hh")
+
# cTestCase recursively 'adopts' other cTestCase instances, i.e.,
# removes responsibility from the user for deleting adopted instances.
# This doesn't play well with python because python really wants to
@@ -6,9 +8,14 @@
# shared-pointers removes responsibility for deleting the instances from
# cTestCase, Python, and users' code. Deleting becomes responsibility of
# the shared_ptr. shared_ptr saves the day.
+
holder(cTestCase, lambda classname: "boost::shared_ptr<%s>" % classname)
+
# adoptTestCase takes raw pointers. We don't want to let python use it.
exclude(cTestCase.adoptTestCase)
+
# pyAdoptTestCase takes shared_ptr instances. We want python to use
# pyAdoptTestCase to make a cTestCase adopt another test case.:
rename(cTestCase.pyAdoptTestCase, "adoptTestCase")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cTestProblem.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cTestProblem.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cTestProblem.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cTestProblem = Class("cTestProblem", "cTestProblem.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cTestResult.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cTestResult.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cTestResult.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -33,3 +33,5 @@
set_policy(cTestResult.failures, return_value_policy(return_by_value))
set_wrapper(cTestResult.errors, errors_wrapper)
set_wrapper(cTestResult.failures, failures_wrapper)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cTextTestInterpreter.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cTextTestInterpreter.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cTextTestInterpreter.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cTextTestInterpreter = Class("cTextTestInterpreter", "cTextTestInterpreter.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/callback_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/callback_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/callback_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cCallbackUtil = Class("cCallbackUtil", "callback_util.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/code_label.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/code_label.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/code_label.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cCodeLabel = Class("cCodeLabel", "code_label.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/config.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/config.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/config.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -10,3 +10,5 @@
set_policy(cConfig.GetStartCreature, return_value_policy(reference_existing_object))
set_policy(cConfig.GetCloneFilename, return_value_policy(reference_existing_object))
set_policy(cConfig.GetLoadPopFilename, return_value_policy(reference_existing_object))
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/const_schedule.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/const_schedule.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/const_schedule.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Import("schedule.pyste")
Include("merit.hh")
@@ -3,2 +4,4 @@
cConstSchedule = Class("cConstSchedule", "const_schedule.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/count_tracker.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/count_tracker.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/count_tracker.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
cCountTracker = Class("cCountTracker", "count_tracker.hh")
+
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/cpu_defs-fixups.cc (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_defs-fixups.cc)
Copied: trunk/source/bindings/Boost.Python/cpu_defs-fixups.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_defs-fixups.hh)
Copied: trunk/source/bindings/Boost.Python/cpu_defs.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_defs.pyste)
Copied: trunk/source/bindings/Boost.Python/cpu_head-fixups.cc (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_head-fixups.cc)
Copied: trunk/source/bindings/Boost.Python/cpu_head-fixups.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_head-fixups.hh)
Modified: trunk/source/bindings/Boost.Python/cpu_head.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cpu_head.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cpu_head.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,12 +4,45 @@
Include("hardware_base.hh")
Include("code_label.hh")
-cCPUHead = Class("cCPUHead", "cpu_head.hh")
-set_policy(cCPUHead.FlagCopied, return_internal_reference())
-set_policy(cCPUHead.FlagMutated, return_internal_reference())
-set_policy(cCPUHead.FlagExecuted, return_internal_reference())
-set_policy(cCPUHead.FlagPointMut, return_internal_reference())
-set_policy(cCPUHead.FlagCopyMut, return_internal_reference())
+cCPUHead = Class("cCPUHead", "cpu_head-fixups.hh")
set_policy(cCPUHead.GetCurHardware, return_internal_reference())
set_policy(cCPUHead.GetMainHardware, return_internal_reference())
-set_policy(cCPUHead.FlagBreakpoint, return_internal_reference())
+
+exclude(cCPUHead.FlagCopied)
+exclude(cCPUHead.FlagMutated)
+exclude(cCPUHead.FlagExecuted)
+exclude(cCPUHead.FlagPointMut)
+exclude(cCPUHead.FlagCopyMut)
+exclude(cCPUHead.FlagBreakpoint)
+
+add_method(cCPUHead, "cCPUHead_GetFlagCopied")
+add_method(cCPUHead, "cCPUHead_GetFlagMutated")
+add_method(cCPUHead, "cCPUHead_GetFlagExecuted")
+add_method(cCPUHead, "cCPUHead_GetFlagPointMut")
+add_method(cCPUHead, "cCPUHead_GetFlagCopyMut")
+add_method(cCPUHead, "cCPUHead_GetFlagBreakpoint")
+
+add_method(cCPUHead, "cCPUHead_SetFlagCopied")
+add_method(cCPUHead, "cCPUHead_SetFlagMutated")
+add_method(cCPUHead, "cCPUHead_SetFlagExecuted")
+add_method(cCPUHead, "cCPUHead_SetFlagPointMut")
+add_method(cCPUHead, "cCPUHead_SetFlagCopyMut")
+add_method(cCPUHead, "cCPUHead_SetFlagBreakpoint")
+
+rename(cCPUHead.cCPUHead_GetFlagCopied, "GetFlagCopied");
+rename(cCPUHead.cCPUHead_GetFlagMutated, "GetFlagMutated");
+rename(cCPUHead.cCPUHead_GetFlagExecuted, "GetFlagExecuted");
+rename(cCPUHead.cCPUHead_GetFlagPointMut, "GetFlagPointMut");
+rename(cCPUHead.cCPUHead_GetFlagCopyMut, "GetFlagCopyMut");
+rename(cCPUHead.cCPUHead_GetFlagBreakpoint, "GetFlagBreakpoint");
+
+rename(cCPUHead.cCPUHead_SetFlagCopied, "SetFlagCopied");
+rename(cCPUHead.cCPUHead_SetFlagMutated, "SetFlagMutated");
+rename(cCPUHead.cCPUHead_SetFlagExecuted, "SetFlagExecuted");
+rename(cCPUHead.cCPUHead_SetFlagPointMut, "SetFlagPointMut");
+rename(cCPUHead.cCPUHead_SetFlagCopyMut, "SetFlagCopyMut");
+rename(cCPUHead.cCPUHead_SetFlagBreakpoint, "SetFlagBreakpoint");
+
+
+# vim: set ft=python:
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/cpu_memory-fixups.cc (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_memory-fixups.cc)
Copied: trunk/source/bindings/Boost.Python/cpu_memory-fixups.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/cpu_memory-fixups.hh)
Modified: trunk/source/bindings/Boost.Python/cpu_memory.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cpu_memory.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cpu_memory.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,10 +1,47 @@
+
Import("genome.pyste")
-cCPUMemory = Class("cCPUMemory", "cpu_memory.hh")
-set_policy(cCPUMemory.FlagCopied, return_internal_reference())
-set_policy(cCPUMemory.FlagMutated, return_internal_reference())
-set_policy(cCPUMemory.FlagExecuted, return_internal_reference())
-set_policy(cCPUMemory.FlagPointMut, return_internal_reference())
-set_policy(cCPUMemory.FlagCopyMut, return_internal_reference())
-set_policy(cCPUMemory.FlagInjected, return_internal_reference())
-set_policy(cCPUMemory.FlagBreakpoint, return_internal_reference())
+cCPUMemory = Class("cCPUMemory", "cpu_memory-fixups.hh")
+
+exclude(cCPUMemory.FlagCopied)
+exclude(cCPUMemory.FlagMutated)
+exclude(cCPUMemory.FlagExecuted)
+exclude(cCPUMemory.FlagPointMut)
+exclude(cCPUMemory.FlagCopyMut)
+exclude(cCPUMemory.FlagInjected)
+exclude(cCPUMemory.FlagBreakpoint)
+
+add_method(cCPUMemory, "cCPUMemory_GetFlagCopied")
+add_method(cCPUMemory, "cCPUMemory_GetFlagMutated")
+add_method(cCPUMemory, "cCPUMemory_GetFlagExecuted")
+add_method(cCPUMemory, "cCPUMemory_GetFlagPointMut")
+add_method(cCPUMemory, "cCPUMemory_GetFlagCopyMut")
+add_method(cCPUMemory, "cCPUMemory_GetFlagInjected")
+add_method(cCPUMemory, "cCPUMemory_GetFlagBreakpoint")
+
+add_method(cCPUMemory, "cCPUMemory_SetFlagCopied")
+add_method(cCPUMemory, "cCPUMemory_SetFlagMutated")
+add_method(cCPUMemory, "cCPUMemory_SetFlagExecuted")
+add_method(cCPUMemory, "cCPUMemory_SetFlagPointMut")
+add_method(cCPUMemory, "cCPUMemory_SetFlagCopyMut")
+add_method(cCPUMemory, "cCPUMemory_SetFlagInjected")
+add_method(cCPUMemory, "cCPUMemory_SetFlagBreakpoint")
+
+rename(cCPUMemory.cCPUMemory_GetFlagCopied, "GetFlagCopied");
+rename(cCPUMemory.cCPUMemory_GetFlagMutated, "GetFlagMutated");
+rename(cCPUMemory.cCPUMemory_GetFlagExecuted, "GetFlagExecuted");
+rename(cCPUMemory.cCPUMemory_GetFlagPointMut, "GetFlagPointMut");
+rename(cCPUMemory.cCPUMemory_GetFlagCopyMut, "GetFlagCopyMut");
+rename(cCPUMemory.cCPUMemory_GetFlagInjected, "GetFlagInjected");
+rename(cCPUMemory.cCPUMemory_GetFlagBreakpoint, "GetFlagBreakpoint");
+
+rename(cCPUMemory.cCPUMemory_SetFlagCopied, "SetFlagCopied");
+rename(cCPUMemory.cCPUMemory_SetFlagMutated, "SetFlagMutated");
+rename(cCPUMemory.cCPUMemory_SetFlagExecuted, "SetFlagExecuted");
+rename(cCPUMemory.cCPUMemory_SetFlagPointMut, "SetFlagPointMut");
+rename(cCPUMemory.cCPUMemory_SetFlagCopyMut, "SetFlagCopyMut");
+rename(cCPUMemory.cCPUMemory_SetFlagInjected, "SetFlagInjected");
+rename(cCPUMemory.cCPUMemory_SetFlagBreakpoint, "SetFlagBreakpoint");
+
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cpu_stack.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cpu_stack.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cpu_stack.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cCPUStack = Class("cCPUStack", "cpu_stack.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cpu_stats.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cpu_stats.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cpu_stats.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
sCPUStats = Class("sCPUStats", "cpu_stats.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/cpu_test_info.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/cpu_test_info.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/cpu_test_info.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,8 +1,14 @@
+Include("hardware_tracer.hh")
Include("organism.hh")
cCPUTestInfo = Class("cCPUTestInfo", "cpu_test_info.hh")
# returns std::ofstream &, i.e., not the Python Way.
-exclude(cCPUTestInfo.GetTraceFP)
+#exclude(cCPUTestInfo.GetTraceFP)
set_policy(cCPUTestInfo.GetTestOrganism, return_internal_reference())
set_policy(cCPUTestInfo.GetColonyOrganism, return_internal_reference())
+set_policy(cCPUTestInfo.GetColonyOrganism, return_internal_reference())
+# Another reason to use ref-counting... Dangerous return value policy in use:
+set_policy(cCPUTestInfo.GetTracer, return_value_policy(reference_existing_object))
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/data_entry.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/data_entry.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/data_entry.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
cDataEntry = Class("cDataEntry", "data_entry.hh")
exclude(cDataEntry.operator['<<'])
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/data_file.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/data_file.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/data_file.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
cDataFile = Class("cDataFile", "data_file.hh")
set_policy(cDataFile.GetOFStream, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/data_file_manager.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/data_file_manager.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/data_file_manager.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("data_file.hh")
Include("string.hh")
@@ -4,3 +5,5 @@
cDataFileManager = Class("cDataFileManager", "data_file_manager.hh")
exclude(cDataFileManager.GetOFStream)
set_policy(cDataFileManager.Get, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/data_manager_base.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/data_manager_base.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/data_manager_base.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
Include("data_file.hh")
cDataManager_Base = Class("cDataManager_Base", "data_manager_base.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/double_sum.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/double_sum.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/double_sum.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
cDoubleSum = Class("cDoubleSum", "double_sum.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/environment.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/environment.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/environment.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -9,3 +9,5 @@
set_policy(cEnvironment.GetTaskLib, return_internal_reference())
set_policy(cEnvironment.GetInstSet, return_internal_reference())
set_policy(cEnvironment.GetMutRates, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cEvent = Class("cEvent", "event.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event_factory.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event_factory.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event_factory.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
cEventFactory = Class("cEventFactory", "event_factory.hh")
set_policy(cEventFactory.ConstructEvent, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event_factory_manager.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event_factory_manager.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event_factory_manager.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
cEventFactoryManager = Class("cEventFactoryManager", "event_factory_manager.hh")
set_policy(cEventFactoryManager.ConstructEvent, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event_list.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event_list.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event_list.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("event_factory_manager.hh")
cEventList = Class("cEventList", "event_list.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event_list_entry.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event_list_entry.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event_list_entry.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
set_policy(cEventListEntry.GetEvent, return_internal_reference())
set_policy(cEventListEntry.GetPrev, return_internal_reference())
set_policy(cEventListEntry.GetNext, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event_list_iterator.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event_list_iterator.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event_list_iterator.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cEventListIterator = Class("cEventListIterator", "event_list_iterator.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/event_triggers.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/event_triggers.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/event_triggers.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cEventTriggers = Class("cEventTriggers", "event_triggers.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/file.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/file.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/file.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
exclude(cFile.Open)
add_method(cFile, "cFileOpenWrapper")
rename(cFile.cFileOpenWrapper, "Open")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/fitness_matrix.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/fitness_matrix.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/fitness_matrix.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
Include("inst_set.hh")
cFitnessMatrix = Class("cFitnessMatrix", "fitness_matrix.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/fixed_block.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/fixed_block.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/fixed_block.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cFixedBlock = Class("cFixedBlock", "fixed_block.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/fixed_coords.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/fixed_coords.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/fixed_coords.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cFixedCoords = Class("cFixedCoords", "fixed_coords.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genebank.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genebank.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genebank.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -14,3 +14,5 @@
set_policy(cGenebank.GetGenotype, return_internal_reference())
set_policy(cGenebank.NextGenotype, return_internal_reference())
set_policy(cGenebank.ResetThread, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genesis.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genesis.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genesis.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
exclude(cGenesis.Open)
add_method(cGenesis, "cGenesisOpenWrapper")
rename(cGenesis.cGenesisOpenWrapper, "Open")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genome.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genome.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genome.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cGenome = Class("cGenome", "genome.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genome_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genome_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genome_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cGenomeUtil = Class("cGenomeUtil", "genome_util.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genotype.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genotype.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genotype.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
set_policy(cGenotype.GetParentSpecies, return_internal_reference())
set_policy(cGenotype.GetNext, return_internal_reference())
set_policy(cGenotype.GetPrev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genotype_batch.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genotype_batch.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genotype_batch.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,5 @@
cGenotypeBatch = Class("cGenotypeBatch", "genotype_batch.hh")
set_policy(cGenotypeBatch.List, return_internal_reference())
set_policy(cGenotypeBatch.Name, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genotype_birth_data.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genotype_birth_data.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genotype_birth_data.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("inst_set.hh")
Include("species.hh")
Include("genotype.hh")
@@ -3,2 +4,4 @@
cGenotype_BirthData = Class("cGenotype_BirthData", "genotype_birth_data.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genotype_control.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genotype_control.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genotype_control.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
set_policy(cGenotypeControl.ResetHistoric, return_internal_reference())
set_policy(cGenotypeControl.Next, return_internal_reference())
set_policy(cGenotypeControl.Prev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/genotype_test_data.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/genotype_test_data.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/genotype_test_data.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,3 @@
cGenotype_TestData = Class("cGenotype_TestData", "genotype_test_data.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/hardware_4stack.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_4stack.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_4stack.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -34,3 +34,5 @@
cHardware4Stack.AdvanceIP returns a reference to a bool;
rewrap by hand.
""")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/hardware_4stack_thread.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_4stack_thread.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_4stack_thread.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("hardware_base.hh")
Include("inject_genotype.hh")
@@ -2 +3,3 @@
cHardware4Stack_Thread = Class("cHardware4Stack_Thread", "hardware_4stack_thread.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/hardware_base.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_base.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_base.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,6 +2,7 @@
Include("code_label.hh")
Include("cpu_memory.hh")
Include("genome.hh")
+Include("hardware_tracer.hh")
Include("inst_set.hh")
Include("organism.hh")
@@ -9,3 +10,5 @@
set_policy(cHardwareBase.GetOrganism, return_internal_reference())
set_policy(cHardwareBase.GetMemory, return_internal_reference())
exclude(cHardwareBase.ViewerLock)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/hardware_cpu-fixups.cc
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_cpu-fixups.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_cpu-fixups.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,6 +1,4 @@
-#ifndef HARDWARE_CPU_FIXUPS_HH
#include "hardware_cpu-fixups.hh"
-#endif
int cHardwareCPU_GetRegister(cHardwareCPU &hardware_cpu, int reg_id){
return hardware_cpu.Register(reg_id);
Modified: trunk/source/bindings/Boost.Python/hardware_cpu.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_cpu.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_cpu.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("mutation.hh")
Include("inst_lib_cpu.hh")
Include("inst_set.hh")
@@ -21,16 +22,17 @@
### probably neither can Boost.Python -- with references to builtin
### types (I think). Possible solution is creating a
### cRegister class to wrap the int.
-#set_policy(cHardwareCPU.Register, return_value_policy(reference_existing_object))
exclude(cHardwareCPU.Register)
add_method(cHardwareCPU, "cHardwareCPU_GetRegister");
+add_method(cHardwareCPU, "cHardwareCPU_SetRegister");
rename(cHardwareCPU.cHardwareCPU_GetRegister, "GetRegister");
-add_method(cHardwareCPU, "cHardwareCPU_SetRegister");
rename(cHardwareCPU.cHardwareCPU_SetRegister, "SetRegister");
-class_code(cHardwareCPU, '.add_property("Register", &cHardwareCPU_GetRegister, &cHardwareCPU_SetRegister)');
+class_code(cHardwareCPU, '.add_property("m_register", &cHardwareCPU_GetRegister, &cHardwareCPU_SetRegister)');
set_policy(cHardwareCPU.Memory, return_internal_reference())
set_policy(cHardwareCPU.GetMemory, return_internal_reference())
set_policy(cHardwareCPU.GetOrganism, return_internal_reference())
exclude(cHardwareCPU.ViewerLock)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/hardware_cpu_thread.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_cpu_thread.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_cpu_thread.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("hardware_base.hh")
cHardwareCPU_Thread = Class("cHardwareCPU_Thread", "hardware_cpu_thread.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/hardware_factory.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_factory.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_factory.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
cHardwareFactory = Class("cHardwareFactory", "hardware_factory.hh")
set_policy(cHardwareFactory.Create, return_internal_reference())
+
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/hardware_status_printer.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/hardware_status_printer.pyste)
Copied: trunk/source/bindings/Boost.Python/hardware_tracer.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/hardware_tracer.pyste)
Copied: trunk/source/bindings/Boost.Python/hardware_tracer_4stack.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/hardware_tracer_4stack.pyste)
Copied: trunk/source/bindings/Boost.Python/hardware_tracer_cpu.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/hardware_tracer_cpu.pyste)
Copied: trunk/source/bindings/Boost.Python/hardware_tracer_test_cpu.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/hardware_tracer_test_cpu.pyste)
Modified: trunk/source/bindings/Boost.Python/hardware_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/hardware_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/hardware_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
cHardwareUtil = Class("cHardwareUtil", "hardware_util.hh")
set_policy(cHardwareUtil.DefaultInstSet, return_value_policy(reference_existing_object))
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/help_alias.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/help_alias.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/help_alias.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,3 +6,5 @@
cHelpAlias = Class("cHelpAlias", "help_alias.hh")
set_policy(cHelpAlias.GetType, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/help_entry.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/help_entry.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/help_entry.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
cHelpEntry = Class("cHelpEntry", "help_entry.hh")
set_policy(cHelpEntry.GetType, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/help_full_entry.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/help_full_entry.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/help_full_entry.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
cHelpFullEntry = Class("cHelpFullEntry", "help_full_entry.hh")
set_policy(cHelpFullEntry.GetType, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/help_manager.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/help_manager.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/help_manager.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
cHelpManager = Class("cHelpManager", "help_manager.hh")
set_policy(cHelpManager.FindEntry, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/help_type.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/help_type.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/help_type.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -8,3 +8,5 @@
set_policy(cHelpType.AddEntry, return_internal_reference())
set_policy(cHelpType.AddAlias, return_internal_reference())
set_policy(cHelpType.FindEntry, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/histogram.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/histogram.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/histogram.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cHistogram = Class("cHistogram", "histogram.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/indexed_block_struct.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/indexed_block_struct.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/indexed_block_struct.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cIndexedBlockStruct = Class("cIndexedBlockStruct", "indexed_block_struct.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/init_file.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/init_file.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/init_file.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Import("file.pyste")
cInitFile = Class("cInitFile", "init_file.hh")
@@ -2 +3,3 @@
set_policy(cInitFile.GetFormat, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inject_genebank.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inject_genebank.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inject_genebank.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -11,3 +11,5 @@
set_policy(cInjectGenebank.GetInjectGenotype, return_internal_reference())
set_policy(cInjectGenebank.NextInjectGenotype, return_internal_reference())
set_policy(cInjectGenebank.ResetThread, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inject_genotype.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inject_genotype.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inject_genotype.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
set_policy(cInjectGenotype.GetName, return_internal_reference())
set_policy(cInjectGenotype.GetNext, return_internal_reference())
set_policy(cInjectGenotype.GetPrev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inject_genotype_birth_data.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inject_genotype_birth_data.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inject_genotype_birth_data.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("inject_genotype.hh")
cInjectGenotype_BirthData = Class("cInjectGenotype_BirthData", "inject_genotype_birth_data.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inject_genotype_control.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inject_genotype_control.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inject_genotype_control.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
set_policy(cInjectGenotypeControl.ResetHistoric, return_internal_reference())
set_policy(cInjectGenotypeControl.Next, return_internal_reference())
set_policy(cInjectGenotypeControl.Prev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inject_genotype_element.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inject_genotype_element.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inject_genotype_element.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
set_policy(cInjectGenotypeElement.GetInjectGenotype, return_internal_reference())
set_policy(cInjectGenotypeElement.GetNext, return_internal_reference())
set_policy(cInjectGenotypeElement.GetPrev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inject_genotype_queue.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inject_genotype_queue.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inject_genotype_queue.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
cInjectGenotypeQueue = Class("cInjectGenotypeQueue", "inject_genotype_queue.hh")
set_policy(cInjectGenotypeQueue.Find, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inst_lib_base.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inst_lib_base.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inst_lib_base.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,3 +6,5 @@
set_policy(cInstLibBase.GetNopName, return_value_policy(reference_existing_object))
set_policy(cInstLibBase.GetInstDefault, return_value_policy(reference_existing_object))
set_policy(cInstLibBase.GetInstError, return_value_policy(reference_existing_object))
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inst_lib_cpu.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inst_lib_cpu.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inst_lib_cpu.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -9,3 +9,4 @@
set_policy(cInstLibCPU.GetInstDefault, return_value_policy(reference_existing_object))
set_policy(cInstLibCPU.GetInstError, return_value_policy(reference_existing_object))
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inst_set.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inst_set.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inst_set.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
cInstSet = Class("cInstSet", "inst_set.hh")
set_policy(cInstSet.GetInstLib, return_value_policy(reference_existing_object))
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/inst_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/inst_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/inst_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
Include("inst_set.hh")
cInstUtil = Class("cInstUtil", "inst_util.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/instruction.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/instruction.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/instruction.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cInstruction = Class("cInstruction", "instruction.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/int_sum.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/int_sum.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/int_sum.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cIntSum = Class("cIntSum", "int_sum.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/integrated_schedule.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/integrated_schedule.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/integrated_schedule.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Import("schedule.pyste")
Include("merit.hh")
@@ -3,2 +4,4 @@
cIntegratedSchedule = Class("cIntegratedSchedule", "integrated_schedule.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/integrated_schedule_node.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/integrated_schedule_node.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/integrated_schedule_node.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,5 @@
cIntegratedScheduleNode = Class("cIntegratedScheduleNode", "integrated_schedule_node.hh")
set_policy(cIntegratedScheduleNode.GetNext, return_internal_reference())
set_policy(cIntegratedScheduleNode.GetPrev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/kaben_brainstorms.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -15,3 +15,5 @@
##endif
#""")
#Function("SetupAvida", "avida.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/landscape.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/landscape.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/landscape.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,8 @@
+
Include("inst_set.hh")
+Include("fstream")
+
cLandscape = Class("cLandscape", "landscape.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/lineage.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/lineage.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/lineage.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("genotype.hh")
cLineage = Class("cLineage", "lineage.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/lineage_control.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/lineage_control.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/lineage_control.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
set_policy(cLineageControl.GetMaxFitnessLineage, return_internal_reference())
set_policy(cLineageControl.GetBestLineage, return_internal_reference())
set_policy(cLineageControl.GetDominantLineage, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/local_mutations.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/local_mutations.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/local_mutations.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("mutation_lib.hh")
cLocalMutations = Class("cLocalMutations", "local_mutations.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/memory_flags.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/memory_flags.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/memory_flags.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cMemoryFlags = Class("cMemoryFlags", "memory_flags.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/merit.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/merit.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/merit.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
exclude(cMerit.BinaryPrint)
# operator is for ostreams; ditch it.
exclude(cMerit.operator['<<'])
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/mutation.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/mutation.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/mutation.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cMutation = Class("cMutation", "mutation.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/mutation_lib.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/mutation_lib.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/mutation_lib.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
cMutationLib = Class("cMutationLib", "mutation_lib.hh")
set_policy(cMutationLib.AddMutation, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/mutation_rates.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/mutation_rates.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/mutation_rates.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cMutationRates = Class("cMutationRates", "mutation_rates.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/mx_code_array.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/mx_code_array.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/mx_code_array.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("my_code_array_less_than.hh")
Include("genome.hh")
@@ -2 +3,3 @@
cMxCodeArray = Class("cMxCodeArray", "mx_code_array.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/my_code_array_less_than.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/my_code_array_less_than.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/my_code_array_less_than.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
MyCodeArrayLessThan = Class("MyCodeArrayLessThan", "my_code_array_less_than.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/org_message.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/org_message.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/org_message.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cOrgMessage = Class("cOrgMessage", "org_message.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/organism.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/organism.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/organism.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -26,3 +26,5 @@
""")
exclude(cOrganism.SaveState)
exclude(cOrganism.LoadState)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/phenotype.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/phenotype.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/phenotype.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -32,3 +32,5 @@
exclude(cPhenotype.CrossNum)
exclude(cPhenotype.ChildFertile)
exclude(cPhenotype.IsMultiThread)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/population.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/population.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/population.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -21,3 +21,5 @@
cPopulation.GetEnvironment().
""")
set_policy(cPopulation.GetEnvironment, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/population_cell.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/population_cell.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/population_cell.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
set_policy(cPopulationCell.GetOrganism, return_internal_reference())
set_policy(cPopulationCell.ConnectionList, return_internal_reference())
set_policy(cPopulationCell.MutationRates, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/population_event.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/population_event.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/population_event.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,6 @@
+
Import("event.pyste")
+
cPopulationEvent = Class("cPopulationEvent", "population_event.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/population_event_factory.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/population_event_factory.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/population_event_factory.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -7,3 +7,5 @@
cPopulationEventFactory = Class("cPopulationEventFactory", "population_event_factory.hh")
set_policy(cPopulationEventFactory.ConstructEvent, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/population_interface.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/population_interface.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/population_interface.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -65,3 +65,5 @@
exclude(cPopulationInterface.SetFun_UpdateMerit)
Function("BuildTestPopInterface", "population_interface-fixups.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/prob_schedule.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/prob_schedule.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/prob_schedule.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Import("schedule.pyste")
Include("merit.hh")
@@ -3,2 +4,4 @@
cProbSchedule = Class("cProbSchedule", "prob_schedule.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/py_avida_driver-fixups.cc
===================================================================
--- trunk/source/bindings/Boost.Python/py_avida_driver-fixups.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/py_avida_driver-fixups.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,39 +1,20 @@
-#ifndef PY_AVIDA_DRIVER_HH
#include "py_avida_driver.hh"
-#endif
-#ifndef GENEBANK_HH
#include "main/genebank.hh"
-#endif
-#ifndef GENOTYPE_HH
#include "main/genotype.hh"
-#endif
-#ifndef POPULATION_CELL_HH
#include "main/population_cell.hh"
-#endif
-#ifndef HARDWARE_FACTORY_HH
#include "cpu/hardware_factory.hh"
-#endif
-#ifndef ORGANISM_HH
#include "main/organism.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "cpu/hardware_base.hh"
-#endif
-#ifndef STRING_HH
#include "tools/string.hh"
-#endif
-#ifndef CONFIG_HH
#include "main/config.hh"
-#endif
-#ifndef POPULATION_HH
#include "main/population.hh"
-#endif
#include <iostream>
+
bool pyAvidaDriver::preUpdate(const unsigned int){
GetEvents();
if(true == done_flag){ return false; }
Modified: trunk/source/bindings/Boost.Python/py_avida_driver.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/py_avida_driver.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/py_avida_driver.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,4 @@
pyAvidaDriver = Class("pyAvidaDriver", "py_avida_driver.hh")
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/py_hardware_tracer-fixups.cc (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/py_hardware_tracer-fixups.cc)
Copied: trunk/source/bindings/Boost.Python/py_hardware_tracer.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/py_hardware_tracer.hh)
Copied: trunk/source/bindings/Boost.Python/py_hardware_tracer.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/py_hardware_tracer.pyste)
Modified: trunk/source/bindings/Boost.Python/random.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/random.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/random.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,5 @@
Include("tList.hh")
cRandom = Class("cRandom", "random.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/reaction.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/reaction.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/reaction.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -7,3 +7,5 @@
set_policy(cReaction.GetTask, return_internal_reference())
set_policy(cReaction.AddProcess, return_internal_reference())
set_policy(cReaction.AddRequisite, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/reaction_lib.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/reaction_lib.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/reaction_lib.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,3 +6,4 @@
set_policy(cReactionLib.AddReaction, return_internal_reference())
set_policy(cReactionLib.GetReaction, return_internal_reference())
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/reaction_process.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/reaction_process.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/reaction_process.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
set_policy(cReactionProcess.GetResource, return_internal_reference())
set_policy(cReactionProcess.GetProduct, return_internal_reference())
set_policy(cReactionProcess.GetDetect, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/reaction_requisite.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/reaction_requisite.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/reaction_requisite.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
Include("reaction.hh")
cReactionRequisite = Class("cReactionRequisite", "reaction_requisite.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/reaction_result.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/reaction_result.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/reaction_result.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
cReactionResult = Class("cReactionResult", "reaction_result.hh")
set_policy(cReactionResult.GetInstArray, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/ref_block.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/ref_block.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/ref_block.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cRefBlock = Class("cRefBlock", "ref_block.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/resource.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/resource.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/resource.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cResource = Class("cResource", "resource.hh")
+
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/resource_count-fixups.cc (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/resource_count-fixups.cc)
Copied: trunk/source/bindings/Boost.Python/resource_count-fixups.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/resource_count-fixups.hh)
Modified: trunk/source/bindings/Boost.Python/resource_count.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/resource_count.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/resource_count.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,5 +1,5 @@
-cResourceCount = Class("cResourceCount", "resource_count.hh")
+cResourceCount = Class("cResourceCount", "resource_count-fixups.hh")
set_policy(cResourceCount.GetResources, return_internal_reference())
set_policy(cResourceCount.GetCellResources, return_internal_reference())
set_policy(cResourceCount.GetResourcesGeometry, return_internal_reference())
@@ -7,6 +7,9 @@
exclude(cResourceCount.Setup)
+add_method(cResourceCount, "cResourceCount_SetTo");
+rename(cResourceCount.cResourceCount_SetTo, "SetTo");
+
print("""
FIXME for resource_count.pyste:
Reenable cResourceCount.Setup(). This will take some work -- the c++
@@ -14,3 +17,4 @@
system.
""")
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/resource_lib.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/resource_lib.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/resource_lib.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,3 +5,5 @@
cResourceLib = Class("cResourceLib", "resource_lib.hh")
set_policy(cResourceLib.AddResource, return_internal_reference())
set_policy(cResourceLib.GetResource, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/running_average.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/running_average.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/running_average.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cRunningAverage = Class("cRunningAverage", "running_average.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/scaled_block.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/scaled_block.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/scaled_block.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,5 @@
cScaledBlock = Class("cScaledBlock", "scaled_block.hh")
set_policy(cScaledBlock.GetData, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/schedule.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/schedule.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/schedule.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("merit.hh")
cSchedule = Class("cSchedule", "schedule.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/spatial_count_elem.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/spatial_count_elem.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/spatial_count_elem.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cSpatialCountElem = Class("cSpatialCountElem", "spatial_count_elem.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/spatial_res_count.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/spatial_res_count.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/spatial_res_count.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cSpatialResCount = Class("cSpatialResCount", "spatial_res_count.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/species.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/species.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/species.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -4,3 +4,5 @@
cSpecies = Class("cSpecies", "species.hh")
set_policy(cSpecies.GetNext, return_internal_reference())
set_policy(cSpecies.GetPrev, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/species_control.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/species_control.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/species_control.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -9,3 +9,5 @@
set_policy(cSpeciesControl.GetFirst, return_internal_reference())
set_policy(cSpeciesControl.GetFirstInactive, return_internal_reference())
set_policy(cSpeciesControl.GetFirstGarbage, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/species_queue.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/species_queue.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/species_queue.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
cSpeciesQueue = Class("cSpeciesQueue", "species_queue.hh")
set_policy(cSpeciesQueue.GetFirst, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/stats.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/stats.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/stats.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -31,3 +31,5 @@
set_policy(cStats.SumExeInst, return_internal_reference())
set_policy(cStats.GetDataFileOFStream, return_internal_reference())
set_policy(cStats.GetDataFile, return_internal_reference())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/string.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/string.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/string.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -19,3 +19,5 @@
set_policy(cString.ClipEnd, return_self())
set_policy(cString.ToLower, return_self())
set_policy(cString.ToUpper, return_self())
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/string_iterator.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/string_iterator.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/string_iterator.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,6 @@
+
Include("string_list.hh")
cStringIterator = Class("cStringIterator", "string_iterator.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/string_list.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/string_list.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/string_list.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
that I have't yet approached).
- What to do about tList and memory-management issues?
""")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/string_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/string_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/string_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,2 +1,4 @@
cStringUtil = Class("cStringUtil", "string_util.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/tArray.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/tArray.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/tArray.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,6 +1,8 @@
-# dir(specialized_type._DeclarationInfo__attributes) :
-# {'__code__': ['.def("__len__", &tArray_int_len)', '.def("__getitem__", &tArray_int_getitem)', '.def("__setitem__", &tArray_int_setitem)'], 'exclude': False, 'include': 'tArray_instantiations.hh', 'name': 'tArray_int'}
+
+# Functions providing python 'len()' and '[]' for class specializations
+# of tArray.
+
def addClass__len__Wrapper(spec_str, spec_type):
len_wrapper_name = "tArray_" + spec_str + "_len"
class_code(spec_type, '.def("__len__", &' + len_wrapper_name + ')');
@@ -25,6 +27,11 @@
tArray_class_T_setitem<>(array, i, item);
}"""
+
+# Functions providing python '[]' for fundamental type specializations
+# of tArray. The 'len()' functionality provided for class types can be
+# reused here.
+
def addFundamental__getitem__Wrapper(spec_str, spec_type):
getitem_wrapper_name = "tArray_" + spec_str + "_getitem"
class_code(spec_type, '.def("__getitem__", &' + getitem_wrapper_name + ')');
@@ -41,6 +48,9 @@
tArray_class_T_setitem<>(array, i, item);
}"""
+
+# Function to wrap class type specializations of tArray.
+
def commonClassWrapperFactors(spec_str, spec_type):
exclude(spec_type.ElementAt)
decl_code_str = ""
@@ -49,6 +59,9 @@
decl_code_str += addClass__setitem__Wrapper(spec_str, spec_type)
return decl_code_str
+
+# Function to wrap fundamental type specializations of tArray.
+
def commonFundamentalWrapperFactors(spec_str, spec_type):
exclude(spec_type.ElementAt)
decl_code_str = ""
@@ -69,6 +82,9 @@
declaration_code_string = ""
+
+# Commands to specialize tArray for various types.
+
pOrganism_str = "pOrganism"
tArray_pOrganism = tArray(pOrganism_str)
declaration_code_string += commonClassWrapperFactors(pOrganism_str, tArray_pOrganism)
@@ -94,59 +110,6 @@
declaration_code_string += commonFundamentalWrapperFactors(int_str, tArray_int)
-
-
-#for specialization in class_specializers:
-# specialized_type = tArray(specialization)
-# exclude(specialized_type.ResizeClear)
-# exclude(specialized_type.ElementAt)
-# #
-# len_wrapper_name = "tArray_" + specialization + "_len"
-# getitem_wrapper_name = "tArray_" + specialization + "_getitem"
-# setitem_wrapper_name = "tArray_" + specialization + "_setitem"
-# #
-# declaration_code_string += """
-#inline int """ + len_wrapper_name + "(tArray<" + specialization + """> &array) {
-# return tArray_class_T_len<>(array);
-#}"""
-# declaration_code_string += """
-#inline """ + specialization + " &" + getitem_wrapper_name + "(tArray<" + specialization + """> &array, int i) {
-# return tArray_class_T_getitem<>(array, i);
-#}"""
-# declaration_code_string += """
-#inline void """ + setitem_wrapper_name + "(tArray<" + specialization + "> &array, int i, " + specialization + """ &item) {
-# tArray_class_T_setitem<>(array, i, item);
-#}"""
-# #
-# class_code(specialized_type, '.def("__len__", &' + len_wrapper_name + ')');
-# class_code(specialized_type, '.def("__getitem__", &' + getitem_wrapper_name + ', return_internal_reference< 1 >())');
-# class_code(specialized_type, '.def("__setitem__", &' + setitem_wrapper_name + ')');
-
-
-#for specialization in fundamental_specializers:
-# specialized_type = tArray(specialization)
-# exclude(specialized_type.ResizeClear)
-# exclude(specialized_type.ElementAt)
-# #
-# len_wrapper_name = "tArray_" + specialization + "_len"
-# getitem_wrapper_name = "tArray_" + specialization + "_getitem"
-# setitem_wrapper_name = "tArray_" + specialization + "_setitem"
-# #
-# declaration_code_string += """
-#inline int """ + len_wrapper_name + "(tArray<" + specialization + """> &array) {
-# return tArray_class_T_len<>(array);
-#}"""
-# declaration_code_string += """
-#inline """ + specialization + " " + getitem_wrapper_name + "(tArray<" + specialization + """> &array, int i) {
-# return tArray_fundamental_T_getitem<>(array, i);
-#}"""
-# declaration_code_string += """
-#inline void """ + setitem_wrapper_name + "(tArray<" + specialization + "> &array, int i, " + specialization + """ item) {
-# tArray_class_T_setitem<>(array, i, item);
-#}"""
-# #
-# class_code(specialized_type, '.def("__len__", &' + len_wrapper_name + ')');
-# class_code(specialized_type, '.def("__getitem__", &' + getitem_wrapper_name + ')');
-# class_code(specialized_type, '.def("__setitem__", &' + setitem_wrapper_name + ')');
-
declaration_code(declaration_code_string)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/tBuffer.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/tBuffer.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/tBuffer.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,3 +6,5 @@
for specialization in template_specializers:
specialized_type = tBuffer(specialization)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/tDictionary.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/tDictionary.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/tDictionary.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,3 +6,5 @@
for specialization in template_specializers:
specialized_type = tDictionary(specialization)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/tList.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/tList.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/tList.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -55,3 +55,5 @@
set_policy(const_list_iterator_type.Get , return_value_policy(reference_existing_object))
set_policy(const_list_iterator_type.Next , return_value_policy(reference_existing_object))
set_policy(const_list_iterator_type.Prev , return_value_policy(reference_existing_object))
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/tMatrix.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/tMatrix.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/tMatrix.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,3 +12,5 @@
set_policy(specialized_type.ElementAt, return_internal_reference())
set_policy(specialized_type.operator['()'], return_internal_reference())
set_policy(specialized_type.operator['[]'], return_internal_reference())
+
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/tVector.pyste (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/tVector.pyste)
Copied: trunk/source/bindings/Boost.Python/tVector_instantiations.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/tVector_instantiations.hh)
Modified: trunk/source/bindings/Boost.Python/task_entry.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/task_entry.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/task_entry.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -3,3 +3,5 @@
# GetTestFun returns a instance method pointer, doesn't play well with
# Python.
exclude(cTaskEntry.GetTestFun)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/task_lib.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/task_lib.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/task_lib.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,5 @@
cTaskLib = Class("cTaskLib", "task_lib.hh")
set_policy(cTaskLib.AddTask, return_internal_reference())
+
+# vim: set ft=python:
Copied: trunk/source/bindings/Boost.Python/test_cpu-fixups.cc (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/test_cpu-fixups.cc)
Copied: trunk/source/bindings/Boost.Python/test_cpu-fixups.hh (from rev 137, branches/developers/kaben-organism-scope/source/bindings/Boost.Python/test_cpu-fixups.hh)
Modified: trunk/source/bindings/Boost.Python/test_cpu.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/test_cpu.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/test_cpu.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -6,26 +6,26 @@
Include("population_interface.hh")
Include("resource_count.hh")
-cTestCPU = Class("cTestCPU", "test_cpu.hh")
-print("""
-XXX in test_cpu.pyste: cTestCPU.GetInstSet needs autopointer to protect
-ownership.
-""")
+cTestCPU = Class("cTestCPU", "test_cpu-fixups.hh")
set_policy(cTestCPU.GetInstSet, return_value_policy(reference_existing_object))
-print("""
-XXX in test_cpu.pyste: cTestCPU.GetEnvironment needs autopointer to protect
-ownership.
-""")
set_policy(cTestCPU.GetEnvironment, return_value_policy(reference_existing_object))
-print("""
-XXX in test_cpu.pyste: cTestCPU.GetResources needs autopointer to protect
-ownership.
-""")
set_policy(cTestCPU.GetResources, return_value_policy(reference_existing_object))
set_policy(cTestCPU.GetResourceCount, return_value_policy(reference_existing_object))
+exclude(cTestCPU.UseResources)
+
+exclude(cTestCPU.UseResources)
+add_method(cTestCPU, "cTestCPU_GetUseResources");
+add_method(cTestCPU, "cTestCPU_SetUseResources");
+rename(cTestCPU.cTestCPU_GetUseResources, "GetUseResources");
+rename(cTestCPU.cTestCPU_SetUseResources, "SetUseResources");
+class_code(cTestCPU, '.add_property("UseResources", &cTestCPU_GetUseResources, &cTestCPU_SetUseResources)');
+
print("""
-XXX in test_cpu.pyste: cTestCPU.UseResources temporarily disabled
-because it returns a reference to built-in type, which makes Pyste kinda
-cranky.
+XXX in test_cpu.pyste:
+- cTestCPU.GetInstSet needs autopointer to protect ownership.
+- cTestCPU.GetEnvironment needs autopointer to protect ownership.
+- cTestCPU.GetResources needs autopointer to protect ownership.
+- cTestCPU.GetResourceCount needs autopointer to protect ownership.
""")
-exclude(cTestCPU.UseResources)
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/test_util.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/test_util.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/test_util.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,3 +1,4 @@
+
Include("genome.hh")
Include("inject_genotype.hh")
Include("genotype.hh")
@@ -3,2 +4,4 @@
cTestUtil = Class("cTestUtil", "test_util.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/tools.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/tools.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/tools.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,3 +2,5 @@
Include("string.hh")
cTools = Class("cTools", "tools.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/uint.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/uint.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/uint.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,3 @@
cUInt = Class("cUInt", "uint.hh")
+
+# vim: set ft=python:
Modified: trunk/source/bindings/Boost.Python/weighted_index.pyste
===================================================================
--- trunk/source/bindings/Boost.Python/weighted_index.pyste 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/bindings/Boost.Python/weighted_index.pyste 2005-04-13 09:32:08 UTC (rev 138)
@@ -1 +1,4 @@
+
cWeightedIndex = Class("cWeightedIndex", "weighted_index.hh")
+
+# vim: set ft=python:
Modified: trunk/source/cpu/CMakeLists.txt
===================================================================
--- trunk/source/cpu/CMakeLists.txt 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/CMakeLists.txt 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,6 +12,7 @@
hardware_cpu_thread.cc
hardware_factory.cc
hardware_util.cc
+ hardware_status_printer.cc
memory_flags.cc
test_cpu.cc
test_util.cc
Modified: trunk/source/cpu/cpu_test_info.cc
===================================================================
--- trunk/source/cpu/cpu_test_info.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/cpu_test_info.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,16 +5,11 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef ORGANISM_HH
+#include "hardware_status_printer.hh"
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
#include <assert.h>
@@ -30,6 +25,7 @@
, trace_task_order(false)
, use_random_inputs(false)
, org_array(max_tests)
+ , m_tracer(NULL)
{
org_array.SetAll(NULL);
Clear();
@@ -60,11 +56,10 @@
}
-void cCPUTestInfo::SetTraceExecution(const cString & filename)
+void cCPUTestInfo::SetTraceExecution(cHardwareTracer *tracer)
{
- trace_execution = true;
- trace_fp.open(filename);
- assert (trace_fp.good() == true); // Unable to open trace file.
+ trace_execution = (tracer)?(true):(false);
+ m_tracer = tracer;
}
Modified: trunk/source/cpu/cpu_test_info.hh
===================================================================
--- trunk/source/cpu/cpu_test_info.hh 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/cpu_test_info.hh 2005-04-13 09:32:08 UTC (rev 138)
@@ -8,8 +8,6 @@
#ifndef CPU_TEST_INFO_HH
#define CPU_TEST_INFO_HH
-#include <fstream>
-
#ifndef CPU_DEFS_HH
#include "cpu_defs.hh"
#endif
@@ -20,6 +18,7 @@
#include "tArray.hh"
#endif
+class cHardwareTracer;
class cOrganism;
class cString;
@@ -33,7 +32,7 @@
bool trace_execution; // Should we trace this CPU?
bool trace_task_order; // Should we keep track of ordering of tasks?
bool use_random_inputs; // Should we give the organism random inputs?
- std::ofstream trace_fp;
+ cHardwareTracer *m_tracer;
// Outputs...
bool is_viable; // Is this organism colony forming?
@@ -55,7 +54,7 @@
void PrintThreads(bool _print=true) { print_threads = _print; }
void TraceTaskOrder(bool _trace=true) { trace_task_order = _trace; }
void UseRandomInputs(bool _rand=true) { use_random_inputs = _rand; }
- void SetTraceExecution(const cString & filename="trace.dat");
+ void SetTraceExecution(cHardwareTracer *tracer = NULL);
// Input Accessors
int GetGenerationTests() const { return generation_tests; }
@@ -64,7 +63,7 @@
bool GetTraceTaskOrder() const { return trace_task_order; }
bool GetUseRandomInputs() const { return use_random_inputs; }
bool GetTraceExecution() const { return trace_execution; }
- std::ofstream & GetTraceFP() { return trace_fp; }
+ cHardwareTracer *GetTracer() { return m_tracer; }
// Output Accessors
Modified: trunk/source/cpu/hardware_4stack.cc
===================================================================
--- trunk/source/cpu/hardware_4stack.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_4stack.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -7,52 +7,24 @@
-#ifndef HARDWARE_4STACK_HH
#include "hardware_4stack.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef FUNCTIONS_HH
#include "functions.hh"
-#endif
-#ifndef GENOME_UTIL_HH
#include "genome_util.hh"
-#endif
-#ifndef INST_LIB_BASE_HH
#include "inst_lib_base.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef MUTATION_HH
+#include "hardware_tracer.hh"
+#include "hardware_tracer_4stack.hh"
#include "mutation.hh"
-#endif
-#ifndef MUTATION_LIB_HH
#include "mutation_lib.hh"
-#endif
-#ifndef MUTATION_MACROS_HH
#include "mutation_macros.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef RANDOM_HH
#include "random.hh"
-#endif
-#ifndef STRING_UTIL_HH
#include "string_util.hh"
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
#include <limits.h>
@@ -289,6 +261,29 @@
}
+cHardware4Stack::cHardware4Stack(const cHardware4Stack &hardware_4stack)
+: cHardwareBase(hardware_4stack.organism, hardware_4stack.inst_set)
+, m_functions(hardware_4stack.m_functions)
+, memory_array(hardware_4stack.memory_array)
+, threads(hardware_4stack.threads)
+, thread_id_chart(hardware_4stack.thread_id_chart)
+, cur_thread(hardware_4stack.cur_thread)
+, mal_active(hardware_4stack.mal_active)
+, inst_cost(hardware_4stack.inst_cost)
+#ifdef INSTRUCTION_COSTS
+, inst_ft_cost(hardware_4stack.inst_ft_cost)
+, inst_remainder(hardware_4stack.inst_remainder)
+#endif
+{
+ for(int i = 0; i < NUM_GLOBAL_STACKS; i++){
+ global_stacks[i] = hardware_4stack.global_stacks[i];
+ }
+ for(int i = 0; i < sizeof(slice_array)/sizeof(float); i++){
+ slice_array[i] = hardware_4stack.slice_array[i];
+ }
+}
+
+
cHardware4Stack::~cHardware4Stack()
{
}
@@ -386,9 +381,12 @@
#endif
// Print the status of this CPU at each step...
- if (trace_fp != NULL) {
- const cString & next_name = inst_set->GetName(IP().GetInst())();
- organism->PrintStatus(*trace_fp, next_name);
+ if (m_tracer != NULL) {
+ if (cHardwareTracer_4Stack * tracer
+ = dynamic_cast<cHardwareTracer_4Stack *>(m_tracer)
+ ){
+ tracer->TraceHardware_4Stack(*this);
+ }
}
// Find the instruction to be executed
@@ -496,10 +494,12 @@
// @CAO FIX PRINTING TO INDICATE THIS IS A BONUS
// Print the status of this CPU at each step...
- if (trace_fp != NULL) {
- cString next_name = cStringUtil::Stringf("%s (bonus instruction)",
- inst_set->GetName(inst)());
- organism->PrintStatus(*trace_fp, next_name);
+ if (m_tracer != NULL) {
+ if (cHardwareTracer_4Stack * tracer
+ = dynamic_cast<cHardwareTracer_4Stack *>(m_tracer)
+ ){
+ tracer->TraceHardware_4StackBonus(*this);
+ }
}
SingleProcess_ExecuteInst(inst);
Modified: trunk/source/cpu/hardware_4stack.hh
===================================================================
--- trunk/source/cpu/hardware_4stack.hh 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_4stack.hh 2005-04-13 09:32:08 UTC (rev 138)
@@ -109,6 +109,7 @@
public:
cHardware4Stack(cOrganism * in_organism, cInstSet * in_inst_set);
+ explicit cHardware4Stack(const cHardware4Stack &);
~cHardware4Stack();
void Recycle(cOrganism * new_organism, cInstSet * in_inst_set);
static cInstLibBase *GetInstLib();
Modified: trunk/source/cpu/hardware_base.cc
===================================================================
--- trunk/source/cpu/hardware_base.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_base.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,13 +5,9 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
using namespace std;
@@ -21,7 +17,7 @@
: organism(in_organism)
, inst_set(in_inst_set)
, viewer_lock(-1)
- , trace_fp(NULL)
+ , m_tracer(NULL)
{
assert(inst_set->OK());
assert(organism != NULL);
Modified: trunk/source/cpu/hardware_base.hh
===================================================================
--- trunk/source/cpu/hardware_base.hh 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_base.hh 2005-04-13 09:32:08 UTC (rev 138)
@@ -19,6 +19,7 @@
class cCodeLabel;
class cCPUMemory;
class cGenome;
+class cHardwareTracer;
class cInstruction; // aggregate
class cInstSet;
class cOrganism;
@@ -30,7 +31,7 @@
int viewer_lock; // Used if the viewer should only lock onto
// one aspect of the hardware.
- ostream * trace_fp; // Set this if you want execution traced.
+ cHardwareTracer * m_tracer; // Set this if you want execution traced.
static int instance_count;
public:
@@ -72,7 +73,7 @@
virtual void SaveState(std::ostream & fp) = 0;
virtual void LoadState(std::istream & fp) = 0;
- void SetTrace(ostream * in_fp) { trace_fp = in_fp; }
+ void SetTrace(cHardwareTracer * tracer) { m_tracer = tracer; }
// -------- Mutations (Must be Virtual) --------
Modified: trunk/source/cpu/hardware_cpu.cc
===================================================================
--- trunk/source/cpu/hardware_cpu.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_cpu.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,52 +5,24 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef HARDWARE_CPU_HH
#include "hardware_cpu.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef FUNCTIONS_HH
#include "functions.hh"
-#endif
-#ifndef GENOME_UTIL_HH
#include "genome_util.hh"
-#endif
-#ifndef GENOTYPE_HH
#include "genotype.hh"
-#endif
-#ifndef INST_LIB_CPU_HH
+#include "hardware_tracer.hh"
+#include "hardware_tracer_cpu.hh"
#include "inst_lib_cpu.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef MUTATION_HH
#include "mutation.hh"
-#endif
-#ifndef MUTATION_LIB_HH
#include "mutation_lib.hh"
-#endif
-#ifndef MUTATION_MACROS_HH
#include "mutation_macros.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef STRING_UTIL_HH
#include "string_util.hh"
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
#include <limits.h>
#include <fstream>
@@ -410,6 +382,25 @@
}
+cHardwareCPU::cHardwareCPU(const cHardwareCPU &hardware_cpu)
+: cHardwareBase(hardware_cpu.organism, hardware_cpu.inst_set)
+, m_functions(hardware_cpu.m_functions)
+, memory(hardware_cpu.memory)
+, global_stack(hardware_cpu.global_stack)
+, thread_time_used(hardware_cpu.thread_time_used)
+, threads(hardware_cpu.threads)
+, thread_id_chart(hardware_cpu.thread_id_chart)
+, cur_thread(hardware_cpu.cur_thread)
+, mal_active(hardware_cpu.mal_active)
+, advance_ip(hardware_cpu.advance_ip)
+#ifdef INSTRUCTION_COSTS
+, inst_cost(hardware_cpu.inst_cost)
+, inst_ft_cost(hardware_cpu.inst_ft_cost)
+#endif
+{
+}
+
+
cHardwareCPU::~cHardwareCPU()
{
}
@@ -484,9 +475,12 @@
#endif
// Print the status of this CPU at each step...
- if (trace_fp != NULL) {
- const cString & next_name = inst_set->GetName(IP().GetInst())();
- organism->PrintStatus(*trace_fp, next_name);
+ if (m_tracer != NULL) {
+ if (cHardwareTracer_CPU * tracer
+ = dynamic_cast<cHardwareTracer_CPU *>(m_tracer)
+ ){
+ tracer->TraceHardware_CPU(*this);
+ }
}
// Find the instruction to be executed
@@ -595,10 +589,12 @@
// @CAO FIX PRINTING TO INDICATE THIS IS A BONUS
// Print the status of this CPU at each step...
- if (trace_fp != NULL) {
- cString next_name = cStringUtil::Stringf("%s (bonus instruction)",
- inst_set->GetName(inst)());
- organism->PrintStatus(*trace_fp, next_name);
+ if (m_tracer != NULL) {
+ if (cHardwareTracer_CPU * tracer
+ = dynamic_cast<cHardwareTracer_CPU *>(m_tracer)
+ ){
+ tracer->TraceHardware_CPUBonus(*this);
+ }
}
SingleProcess_ExecuteInst(inst);
Modified: trunk/source/cpu/hardware_cpu.hh
===================================================================
--- trunk/source/cpu/hardware_cpu.hh 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_cpu.hh 2005-04-13 09:32:08 UTC (rev 138)
@@ -105,6 +105,7 @@
public:
cHardwareCPU(cOrganism * in_organism, cInstSet * in_inst_set);
+ explicit cHardwareCPU(const cHardwareCPU &);
~cHardwareCPU();
void Recycle(cOrganism * new_organism, cInstSet * in_inst_set);
static cInstLibCPU *GetInstLib();
Modified: trunk/source/cpu/hardware_factory.cc
===================================================================
--- trunk/source/cpu/hardware_factory.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/hardware_factory.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,25 +5,13 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef HARDWARE_FACTORY_HH
#include "hardware_factory.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef HARDWARE_CPU_HH
#include "hardware_cpu.hh"
-#endif
-#ifndef HARDWARE_4STACK_HH
#include "hardware_4stack.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
using namespace std;
Copied: trunk/source/cpu/hardware_status_printer.cc (from rev 137, branches/developers/kaben-organism-scope/source/cpu/hardware_status_printer.cc)
Copied: trunk/source/cpu/hardware_status_printer.hh (from rev 137, branches/developers/kaben-organism-scope/source/cpu/hardware_status_printer.hh)
Copied: trunk/source/cpu/hardware_tracer.hh (from rev 137, branches/developers/kaben-organism-scope/source/cpu/hardware_tracer.hh)
Copied: trunk/source/cpu/hardware_tracer_4stack.hh (from rev 137, branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_4stack.hh)
Copied: trunk/source/cpu/hardware_tracer_cpu.hh (from rev 137, branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_cpu.hh)
Copied: trunk/source/cpu/hardware_tracer_test_cpu.hh (from rev 137, branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_test_cpu.hh)
Modified: trunk/source/cpu/test_cpu.cc
===================================================================
--- trunk/source/cpu/test_cpu.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/test_cpu.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,61 +5,27 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef ENVIRONMENT_HH
#include "environment.hh"
-#endif
-#ifndef FUNCTIONS_HH
#include "functions.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef INST_SET_HH
+#include "hardware_status_printer.hh"
#include "inst_set.hh"
-#endif
-#ifndef INST_UTIL_HH
#include "inst_util.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef POPULATION_INTERFACE_HH
#include "population_interface.hh"
-#endif
-#ifndef RESOURCE_COUNT_HH
#include "resource_count.hh"
-#endif
-#ifndef RESOURCE_LIB_HH
#include "resource_lib.hh"
-#endif
-#ifndef RESOURCE_HH
#include "resource.hh"
-#endif
-#ifndef STRING_UTIL_HH
#include "string_util.hh"
-#endif
-#ifndef TMATRIX_HH
#include "tMatrix.hh"
-#endif
#include <iomanip>
-
-#include "population_interface.hh"
-
using namespace std;
@@ -158,15 +124,15 @@
cur_receive = 0;
// Determine if we're tracing and what we need to print.
- ostream * trace_fp =
- test_info.GetTraceExecution() ? &(test_info.GetTraceFP()) : NULL;
+ cHardwareTracer * tracer =
+ test_info.GetTraceExecution() ? (test_info.GetTracer()) : NULL;
int time_used = 0;
while (time_used < time_allocated &&
organism.GetHardware().GetMemory().GetSize() &&
organism.GetPhenotype().GetNumDivides() == 0) {
time_used++;
- organism.GetHardware().SetTrace(trace_fp);
+ organism.GetHardware().SetTrace(tracer);
organism.GetHardware().SingleProcess();
organism.GetHardware().SetTrace(NULL);
//resource_count.Update(1/cConfig::GetAveTimeslice());
@@ -174,19 +140,18 @@
}
// Print out some final info in trace...
- if (trace_fp != NULL) {
- if (time_used == time_allocated) {
- *trace_fp << endl << "TIMEOUT: No offspring produced." << endl;
+ if (tracer != NULL) {
+ if (cHardwareTracer_TestCPU * tracer_test_cpu
+ = dynamic_cast<cHardwareTracer_TestCPU *>(tracer)
+ ){
+ tracer_test_cpu->TraceHardware_TestCPU(
+ time_used,
+ time_allocated,
+ organism.GetHardware().GetMemory().GetSize(),
+ organism.GetHardware().GetMemory().AsString(),
+ organism.ChildGenome().AsString()
+ );
}
- else if (organism.GetHardware().GetMemory().GetSize() == 0) {
- *trace_fp << endl << "ORGANISM DEATH: No offspring produced." << endl;
- }
- else {
- *trace_fp << endl << "Final Memory: "
- << organism.GetHardware().GetMemory().AsString() << endl
- << "Child Memory: " << organism.ChildGenome().AsString()
- << endl;
- }
}
// For now, always return true.
Modified: trunk/source/cpu/test_util.cc
===================================================================
--- trunk/source/cpu/test_util.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/cpu/test_util.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,52 +5,28 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef TEST_UTIL_HH
#include "test_util.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef ENVIRONMENT_HH
#include "environment.hh"
-#endif
-#ifndef GENOME_HH
#include "genome.hh"
-#endif
-#ifndef GENOTYPE_HH
#include "genotype.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef INJECT_GENOTYPE_HH
#include "inject_genotype.hh"
-#endif
-#ifndef INST_UTIL_HH
#include "inst_util.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef STATS_HH
#include "stats.hh"
-#endif
-#ifndef TASK_ENTRY_HH
#include "task_entry.hh"
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
#include <fstream>
#include <iomanip>
+
using namespace std;
+
void cTestUtil::PrintGenome(const cGenome & genome, cString filename,
cGenotype * genotype, int update_out)
{
Modified: trunk/source/main/analyze.cc
===================================================================
--- trunk/source/main/analyze.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/analyze.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -9,101 +9,40 @@
#include <sstream>
#include <string>
-#ifndef ANALYZE_HH
#include "analyze.hh"
-#endif
-#ifndef ANALYZE_COMMAND_HH
#include "analyze_command.hh"
-#endif
-#ifndef ANALYZE_COMMAND_DEF_HH
#include "analyze_command_def.hh"
-#endif
-#ifndef ANALYZE_COMMAND_DEF_BASE_HH
#include "analyze_command_def_base.hh"
-#endif
-#ifndef ANALYZE_FLOW_COMMAND_HH
#include "analyze_flow_command.hh"
-#endif
-#ifndef ANALYZE_FLOW_COMMAND_DEF_HH
#include "analyze_flow_command_def.hh"
-#endif
-#ifndef ANALYZE_FUNCTION_HH
#include "analyze_function.hh"
-#endif
-#ifndef ANALYZE_GENOTYPE_HH
#include "analyze_genotype.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef DATA_FILE_HH
#include "data_file.hh"
-#endif
-#ifndef ENVIRONMENT_HH
#include "environment.hh"
-#endif
-#ifndef FITNESS_MATRIX_HH
#include "fitness_matrix.hh"
-#endif
-#ifndef GENOME_UTIL_HH
#include "genome_util.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef HARDWARE_UTIL_HH
+#include "hardware_status_printer.hh"
#include "hardware_util.hh"
-#endif
-#ifndef HELP_MANAGER_HH
#include "help_manager.hh"
-#endif
-#ifndef INIT_FILE_HH
#include "init_file.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef INST_UTIL_HH
#include "inst_util.hh"
-#endif
-#ifndef LANDSCAPE_HH
#include "landscape.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef SPECIES_HH
#include "species.hh"
-#endif
-#ifndef TARGDATAENTRY_HH
#include "tArgDataEntry.hh"
-#endif
-#ifndef TASK_ENTRY_HH
#include "task_entry.hh"
-#endif
-#ifndef TDATAENTRY_HH
#include "tDataEntry.hh"
-#endif
-#ifndef TDATAENTRYCOMMAND_HH
#include "tDataEntryCommand.hh"
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef TEST_UTIL_HH
#include "test_util.hh"
-#endif
-#ifndef RESOURCE_HH
#include "resource.hh"
-#endif
#ifdef WIN32
-# ifndef WIN32_MKDIR_HACK_HH
# include "win32_mkdir_hack.hh"
-# endif
#endif
extern "C" {
@@ -1215,14 +1154,21 @@
break;
}
+ // Build the hardware status printer for tracing.
+ ofstream trace_fp;
+ trace_fp.open(filename);
+ assert (trace_fp.good() == true); // Unable to open trace file.
+ cHardwareStatusPrinter trace_printer(trace_fp);
+
// Build the test info for printing.
cCPUTestInfo test_info;
test_info.TestThreads();
- test_info.SetTraceExecution(filename);
+ test_info.SetTraceExecution(&trace_printer);
cTestCPU::TestGenome(test_info, genotype->GetGenome());
if (verbose) cout << " Tracing: " << filename << endl;
+ trace_fp.close();
}
if(useResources) {
Modified: trunk/source/main/analyze_genotype.cc
===================================================================
--- trunk/source/main/analyze_genotype.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/analyze_genotype.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,31 +5,15 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef ANALYZE_GENOTYPE_HH
#include "analyze_genotype.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef LANDSCAPE_HH
#include "landscape.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
using namespace std;
Modified: trunk/source/main/avida_driver_population.cc
===================================================================
--- trunk/source/main/avida_driver_population.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/avida_driver_population.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,61 +5,25 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef AVIDA_DRIVER_POPULATION_HH
#include "avida_driver_population.hh"
-#endif
-#ifndef AVIDA_TRIGGERS_HH
#include "avida_triggers.hh"
-#endif
-#ifndef CALLBACK_UTIL_HH
#include "callback_util.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef EVENT_FACTORY_MANAGER_HH
#include "event_factory_manager.hh"
-#endif
-#ifndef EVENT_LIST_HH
#include "event_list.hh"
-#endif
-#ifndef GENEBANK_HH
#include "genebank.hh"
-#endif
-#ifndef GENOTYPE_HH
#include "genotype.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef HARDWARE_FACTORY_HH
#include "hardware_factory.hh"
-#endif
-#ifndef INIT_FILE_HH
#include "init_file.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef POPULATION_HH
#include "population.hh"
-#endif
-#ifndef POPULATION_CELL_HH
#include "population_cell.hh"
-#endif
-#ifndef POPULATION_EVENT_FACTORY_HH
#include "population_event_factory.hh"
-#endif
-#ifndef POPULATION_INTERFACE_HH
#include "population_interface.hh"
-#endif
-#ifndef STRING_HH
#include "string.hh"
-#endif
-#ifndef TOOLS_HH
#include "tools.hh"
-#endif
#include <iostream>
Modified: trunk/source/main/config.cc
===================================================================
--- trunk/source/main/config.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/config.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,26 +5,14 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef DEFS_HH
#include "defs.hh"
-#endif
-#ifndef GENESIS_HH
#include "genesis.hh"
-#endif
-#ifndef TOOLS_HH
#include "tools.hh"
-#endif
-#ifndef POPULATION_DESCR_HI
#include "cPopulation_descr.hi" // declarations and definitions
-#endif
-#ifndef POPULATION_DESCR_CI
#include "cPopulation_descr.ci" // for event documentation
-#endif
using namespace std;
Modified: trunk/source/main/genotype.cc
===================================================================
--- trunk/source/main/genotype.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/genotype.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,34 +5,16 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef GENOTYPE_HH
#include "genotype.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
-#endif
-#ifndef GENOME_UTIL_HH
#include "genome_util.hh"
-#endif
-#ifndef MERIT_HH
#include "merit.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
-#ifndef TOOLS_HH
#include "tools.hh"
-#endif
using namespace std;
Modified: trunk/source/main/landscape.cc
===================================================================
--- trunk/source/main/landscape.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/landscape.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,37 +5,17 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef LANDSCAPE_HH
#include "landscape.hh"
-#endif
-#ifndef CPU_MEMORY_HH
#include "cpu_memory.hh"
-#endif
-#ifndef ENVIRONMENT_HH
#include "environment.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef STATS_HH
#include "stats.hh" // For GetUpdate in outputs...
-#endif
-#ifndef TEST_CPU_HH
#include "test_cpu.hh"
-#endif
-#ifndef TEST_UTIL_HH
#include "test_util.hh"
-#endif
-#ifndef TOOLS_HH
#include "tools.hh"
-#endif
using namespace std;
Modified: trunk/source/main/landscape.hh
===================================================================
--- trunk/source/main/landscape.hh 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/landscape.hh 2005-04-13 09:32:08 UTC (rev 138)
@@ -8,8 +8,6 @@
#ifndef LANDSCAPE_HH
#define LANDSCAPE_HH
-#include <iostream>
-
#ifndef CPU_TEST_INFO_HH
#include "cpu_test_info.hh"
#endif
Modified: trunk/source/main/organism.cc
===================================================================
--- trunk/source/main/organism.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/organism.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,55 +5,23 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef CPU_DEFS_HH
#include "cpu_defs.hh"
-#endif
-#ifndef ENVIRONMENT_HH
#include "environment.hh"
-#endif
-#ifndef FUNCTIONS_HH
#include "functions.hh"
-#endif
-#ifndef GENOME_HH
#include "genome.hh"
-#endif
-#ifndef GENOME_UTIL_HH
#include "genome_util.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef INJECT_GENOTYPE_HH
#include "inject_genotype.hh"
-#endif
-#ifndef INST_SET_HH
#include "inst_set.hh"
-#endif
-#ifndef INST_UTIL_HH
#include "inst_util.hh"
-#endif
-#ifndef ORG_MESSAGE_HH
#include "org_message.hh"
-#endif
-#ifndef STRING_UTIL_HH
#include "string_util.hh"
-#endif
-#ifndef TARRAY_HH
#include "tArray.hh"
-#endif
-#ifndef TOOLS_HH
#include "tools.hh"
-#endif
-#ifndef TLIST_HH
#include "tList.hh"
-#endif
#include <iomanip>
Modified: trunk/source/main/population.cc
===================================================================
--- trunk/source/main/population.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/main/population.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,92 +5,35 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef POPULATION_HH
#include "population.hh"
-#endif
-
-#ifndef CONFIG_HH
#include "config.hh"
-#endif
-#ifndef CONST_SCHEDULE_HH
#include "const_schedule.hh"
-#endif
-#ifndef DATA_FILE_HH
#include "data_file.hh"
-#endif
-#ifndef ENVIRONMENT_HH
#include "environment.hh"
-#endif
-#ifndef FUNCTIONS_HH
#include "functions.hh"
-#endif
-#ifndef GENEBANK_HH
#include "genebank.hh"
-#endif
-#ifndef GENOME_UTIL_HH
#include "genome_util.hh"
-#endif
-#ifndef GENOTYPE_HH
#include "genotype.hh"
-#endif
-#ifndef HARDWARE_BASE_HH
#include "hardware_base.hh"
-#endif
-#ifndef HARDWARE_FACTORY_HH
#include "hardware_factory.hh"
-#endif
-#ifndef HARDWARE_4STACK_HH
#include "hardware_4stack.hh"
-#endif
-#ifndef HARDWARE_UTIL_HH
#include "hardware_util.hh"
-#endif
-#ifndef INIT_FILE_HH
#include "init_file.hh"
-#endif
-#ifndef INJECT_GENEBANK_HH
#include "inject_genebank.hh"
-#endif
-#ifndef INJECT_GENOTYPE_HH
#include "inject_genotype.hh"
-#endif
-#ifndef INST_UTIL_HH
#include "inst_util.hh"
-#endif
-#ifndef INTEGRATED_SCHEDULE_HH
#include "integrated_schedule.hh"
-#endif
-#ifndef LINEAGE_HH
#include "lineage.hh"
-#endif
-#ifndef LINEAGE_CONTROL_HH
#include "lineage_control.hh"
-#endif
-#ifndef ORGANISM_HH
#include "organism.hh"
-#endif
-#ifndef PHENOTYPE_HH
#include "phenotype.hh"
-#endif
-#ifndef POPULATION_CELL_HH
#include "population_cell.hh"
-#endif
-#ifndef PROB_SCHEDULE_HH
#include "prob_schedule.hh"
-#endif
-#ifndef RESOURCE_HH
#include "resource.hh"
-#endif
-#ifndef SPECIES_HH
#include "species.hh"
-#endif
-#ifndef STATS_HH
#include "stats.hh"
-#endif
-#ifndef TASK_ENTRY_HH
#include "task_entry.hh"
-#endif
#include <fstream>
#include <vector>
Modified: trunk/source/python/AvidaEd-osx.py
===================================================================
--- trunk/source/python/AvidaEd-osx.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaEd-osx.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -39,8 +39,8 @@
edu_main_controller = AvidaGui2.pyEduMainCtrl.pyEduMainCtrl()
edu_main_controller.construct()
edu_main_controller.m_main_mdl.m_main_mdtr.m_main_controller_factory_mdtr.emit(
- sys.exc_clear()
- sys.exc_traceback = sys.last_traceback = None
+ #sys.exc_clear()
+ #sys.exc_traceback = sys.last_traceback = None
qt.PYSIGNAL("newMainControllerSig"), ("pySessionCtrl",))
return edu_main_controller
Modified: trunk/source/python/AvidaGui2/pyAnalyzeControlsView.ui
===================================================================
--- trunk/source/python/AvidaGui2/pyAnalyzeControlsView.ui 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyAnalyzeControlsView.ui 2005-04-13 09:32:08 UTC (rev 138)
@@ -8,14 +8,14 @@
<rect>
<x>0</x>
<y>0</y>
- <width>176</width>
- <height>125</height>
+ <width>124</width>
+ <height>40</height>
</rect>
</property>
<property name="caption">
<string>pyAnalyzeControlsView</string>
</property>
- <vbox>
+ <hbox>
<property name="name">
<cstring>unnamed</cstring>
</property>
@@ -25,291 +25,147 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QSlider">
+ <spacer>
<property name="name">
- <cstring>slider1</cstring>
+ <cstring>spacer97_2</cstring>
</property>
<property name="orientation">
<enum>Horizontal</enum>
</property>
- <property name="tickmarks">
- <enum>Below</enum>
+ <property name="sizeType">
+ <enum>Expanding</enum>
</property>
- </widget>
- <widget class="QLayoutWidget">
+ <property name="sizeHint">
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget class="QToolButton">
<property name="name">
- <cstring>layout136</cstring>
+ <cstring>toolButton23</cstring>
</property>
- <hbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <widget class="QLabel">
- <property name="name">
- <cstring>textLabel7</cstring>
- </property>
- <property name="font">
- <font>
- <pointsize>10</pointsize>
- </font>
- </property>
- <property name="text">
- <string>slow</string>
- </property>
- <property name="alignment">
- <set>AlignVCenter|AlignLeft</set>
- </property>
- </widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>textLabel7_2</cstring>
- </property>
- <property name="font">
- <font>
- <pointsize>10</pointsize>
- </font>
- </property>
- <property name="text">
- <string>fast</string>
- </property>
- <property name="alignment">
- <set>AlignVCenter|AlignRight</set>
- </property>
- </widget>
- </hbox>
+ <property name="text">
+ <string></string>
+ </property>
+ <property name="iconSet">
+ <iconset>image0</iconset>
+ </property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="QWidgetStack">
<property name="name">
- <cstring>layout141</cstring>
+ <cstring>widgetStack3</cstring>
</property>
- <hbox>
+ <widget class="QWidget">
<property name="name">
- <cstring>unnamed</cstring>
+ <cstring>WStackPage</cstring>
</property>
- <property name="margin">
+ <attribute name="id">
<number>0</number>
- </property>
- <property name="spacing">
- <number>0</number>
- </property>
- <widget class="QToolButton">
+ </attribute>
+ <vbox>
<property name="name">
- <cstring>toolButton23</cstring>
+ <cstring>unnamed</cstring>
</property>
- <property name="text">
- <string></string>
+ <property name="margin">
+ <number>0</number>
</property>
- <property name="iconSet">
- <iconset>image0</iconset>
+ <property name="spacing">
+ <number>0</number>
</property>
- </widget>
- <widget class="QLayoutWidget">
- <property name="name">
- <cstring>layout140</cstring>
- </property>
- <vbox>
+ <widget class="QToolButton">
<property name="name">
- <cstring>unnamed</cstring>
+ <cstring>toolButton19</cstring>
</property>
- <property name="margin">
- <number>0</number>
+ <property name="text">
+ <string></string>
</property>
- <property name="spacing">
- <number>0</number>
+ <property name="iconSet">
+ <iconset>image1</iconset>
</property>
- <widget class="QLabel">
- <property name="name">
- <cstring>textLabel8</cstring>
- </property>
- <property name="font">
- <font>
- <pointsize>10</pointsize>
- </font>
- </property>
- <property name="text">
- <string># of steps</string>
- </property>
- <property name="alignment">
- <set>AlignCenter</set>
- </property>
- </widget>
- <widget class="QLineEdit">
- <property name="name">
- <cstring>lineEdit1</cstring>
- </property>
- <property name="font">
- <font>
- <pointsize>10</pointsize>
- </font>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget class="QToolButton">
- <property name="name">
- <cstring>toolButton24</cstring>
- </property>
- <property name="text">
- <string></string>
- </property>
- <property name="iconSet">
- <iconset>image1</iconset>
- </property>
- </widget>
- </hbox>
- </widget>
- <widget class="QLayoutWidget">
- <property name="name">
- <cstring>layout137</cstring>
- </property>
- <hbox>
+ <property name="usesBigPixmap">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
+ <widget class="QWidget">
<property name="name">
- <cstring>unnamed</cstring>
+ <cstring>WStackPage</cstring>
</property>
- <property name="margin">
- <number>0</number>
- </property>
- <property name="spacing">
- <number>0</number>
- </property>
- <spacer>
+ <attribute name="id">
+ <number>1</number>
+ </attribute>
+ <vbox>
<property name="name">
- <cstring>spacer97_2</cstring>
+ <cstring>unnamed</cstring>
</property>
- <property name="orientation">
- <enum>Horizontal</enum>
+ <property name="margin">
+ <number>0</number>
</property>
- <property name="sizeType">
- <enum>Expanding</enum>
+ <property name="spacing">
+ <number>0</number>
</property>
- <property name="sizeHint">
- <size>
- <width>10</width>
- <height>10</height>
- </size>
- </property>
- </spacer>
- <widget class="QWidgetStack">
- <property name="name">
- <cstring>widgetStack3</cstring>
- </property>
- <widget class="QWidget">
+ <widget class="QToolButton">
<property name="name">
- <cstring>WStackPage</cstring>
+ <cstring>toolButton20</cstring>
</property>
- <attribute name="id">
- <number>0</number>
- </attribute>
- <vbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>0</number>
- </property>
- <property name="spacing">
- <number>0</number>
- </property>
- <widget class="QToolButton">
- <property name="name">
- <cstring>toolButton19</cstring>
- </property>
- <property name="text">
- <string></string>
- </property>
- <property name="iconSet">
- <iconset>image2</iconset>
- </property>
- <property name="usesBigPixmap">
- <bool>false</bool>
- </property>
- </widget>
- </vbox>
- </widget>
- <widget class="QWidget">
- <property name="name">
- <cstring>WStackPage</cstring>
+ <property name="text">
+ <string></string>
</property>
- <attribute name="id">
- <number>1</number>
- </attribute>
- <vbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>0</number>
- </property>
- <property name="spacing">
- <number>0</number>
- </property>
- <widget class="QToolButton">
- <property name="name">
- <cstring>toolButton20</cstring>
- </property>
- <property name="text">
- <string></string>
- </property>
- <property name="iconSet">
- <iconset>image3</iconset>
- </property>
- <property name="usesBigPixmap">
- <bool>false</bool>
- </property>
- </widget>
- </vbox>
+ <property name="iconSet">
+ <iconset>image2</iconset>
+ </property>
+ <property name="usesBigPixmap">
+ <bool>false</bool>
+ </property>
</widget>
- </widget>
- <spacer>
- <property name="name">
- <cstring>spacer97</cstring>
- </property>
- <property name="orientation">
- <enum>Horizontal</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>10</width>
- <height>10</height>
- </size>
- </property>
- </spacer>
- </hbox>
+ </vbox>
+ </widget>
</widget>
+ <widget class="QToolButton">
+ <property name="name">
+ <cstring>toolButton24</cstring>
+ </property>
+ <property name="text">
+ <string></string>
+ </property>
+ <property name="iconSet">
+ <iconset>image3</iconset>
+ </property>
+ </widget>
<spacer>
<property name="name">
- <cstring>spacer99</cstring>
+ <cstring>spacer97</cstring>
</property>
<property name="orientation">
- <enum>Vertical</enum>
+ <enum>Horizontal</enum>
</property>
<property name="sizeType">
<enum>Expanding</enum>
</property>
<property name="sizeHint">
<size>
- <width>10</width>
- <height>10</height>
+ <width>20</width>
+ <height>20</height>
</size>
</property>
</spacer>
- </vbox>
+ </hbox>
</widget>
<images>
<image name="image0">
<data format="PNG" length="1172">89504e470d0a1a0a0000000d4948445200000021000000140806000000035354710000045b49444154789cad564b6c1357143df7be373f7ba8ddb148e260acaa2109b2e2e0b820542155c0a65d56ac0a59b57ba46e4a37d9259b4aecd8b040d065975d16ba682a51ea4a54842016c456a850a82527b16a2776eccce775318e630707f5932b1dcd7b67e6dd3973de7d57434a29ec0511c501c400d8000c0084a30b05a00d601b404d29f557f7bd4a299c3d7b56ab56aba39393931f2712894b86617c20a57c0f807684225ccff3fe68b7dbbf6f6e6efef4e2c58bfb8ee3fcf9f8f163570280655927cf9f3fff793a9dfe223b951d3d357e0ac99124a49447a6c0f77dad5c2e8f974aa5f1a7cb4f3f8ac7e327d7d6d6ee0158a5ab57af0e6b9af6593299fcfaf2a5cbc96c368bd0b9a3dc89fe585e5ec6831f1f94373636be715df73b994aa592f57afde274763a393d7da647c0ff1511d61af5cd0062422693c14a7125d968342e0e0f0fffcc8ee38c10d1ccc4e4248420b0101082c182207a50ad6ef4cddfc693206c56ab108241428084000b0162861002aee7626464044434e338ce08271289e341109c48a552606608663089f0da83f98585be3933a350280ce47f2b14b0303f0fa67d4e10410801c1028d4603f177e3088!
2e0442291382ee3f1b80d40ea520351c73ceef1af13ed761b4c0200b0bbbb8b7bdfdec3e2e22222d1c8e1bc1080ea6c2f03cc8cfa561df57a1d966901808cc7e3b68cc562510060c1fb220604118105a35c2ee3e6cd9b78fdfa35886830cf212fa4e8ae0f8200b57a0d954a05420830310020168b45a56ddb76af0805054298e44023c3c35f1ee2ce9d3b68b55add8a1bc42ba51004015aad167ccfc7aebb8b46a38156ab05c102d294dddcb66ddb321a8d1e0342ab42d7184a29ec349bd8da6e7445b45a6dacafaf63676707aeeb767921e41b7c10046066acafaf4329157e18110cc308ddeee900d168f4988c4422f69e08220a6dabd5d06c36fb0f9c0a70e1c205a45229dcbe7d1bd56af5509e88c0cc304c23746b2f070042e8f65ecd4522119b4dd30c9d200681b0bdbd0ddff76159561f8410b02c0ba74f9fc6c2c202b2d96c58ed87f0cc0cd330611a268c0ec2b1118e4d1300609ae631d6753dc2cc811ff8f07c17208265599d87f72184e88e138904e6e6e670e5ca957fc41f84d9c9c7cc81aeeb11a9ebfa96e338cdb5b5357b7474146677dffa5bf78daf6ec0d08dbe2d9abd368bdc99dc1bfcb56bb33893cbc130f4fea3be570f00cae5321cc769eababe25354d2b8d8d8d359f3f7f6ea7d3e903c7743fc34c3e8741319827e46766a054f8de41512c16313636d6d!
434adc44454c8e7f33babababeed2d212a4943dd0fe23c2f59a260fe40bf1e!
4c913bc7
cf9d2cde7f33b445490d168f47e2693b95babd5be7cf4e8d13b954a454c4d4d219d4e434af9d606f66fc2f33cbc7af50acf9e3d43a954f2cf9d3bb79dc964eeeaba7e9f3a4d63c8f3bcebc562f1fad2d292b9b2b2222b958af03cef480400809412434343fec4c48497cbe55ae3e3e3b7a494b70054a8b72b02f83408824f88e84300efe388ffac00ac2aa57e65e61f007cbf77e36fdd28b386ae3295220000000049454e44ae426082</data>
</image>
<image name="image1">
- <data format="PNG" length="1176">89504e470d0a1a0a0000000d4948445200000021000000140806000000035354710000045f49444154789cad564d6c135710fe66e6ed8feda576d6228943b0aa86249249d2c405a10aa9225cda63853894637be380d403a4a2f406979e11bd50d16b8f3d167aa88228cd818a10c481d80a150a71e338061b3bc4f1eebe1e16071b1c54d18cf469f77dab37f3edccbcd123ad355a4644090071000e000b0061f74c036800a801a868ad9f6dc7d55ae3d0a14346b95c1e181d1dfd34994c4e5b96f59152ea7d00c62e8a687a9ef777a3d1f86b7d7dfdf7870f1f5e775d77e5ce9d3b4d0500914864ff912347be4ca7d35f8d8f8d0f1c183e80547f0a4aa95d53e0fbbe51281486f3f9fcf0bd857b9f241289fdcbcbcb3f0158a253a74ef51986f1452a95fae6f8f4f1d4f8f838c2cced66253a6d616101377ebb5128954adf379bcd9fd5e0e060aa5aad1e9b189f484d4c7cd826e0ff8a087b8d3a5600312193c96031b798aad7ebc7fafafa66d975dd7e229a1a191d8508814520c26021481bcae552c7fa6d3c0961bd5c8608834440226011103344044daf89fefe7e10d194ebbafd9c4c26f70641b06f707010cc0c61069384cf365cbc74097373731ddc4ebc30e3d2c58b606ae38820221016d4eb75247a120882605f3299d!
ccb8944c201a04c658049c28dc22fdf5fa1d168e0ca951f70f5ea8ff09afe5b79214163ab11669508420c1681a1146af51aaad52a2276040054229170381e8fc70084815b60ee5c0b83884044989d9dc585ef2e60b5b8ba33af425e94400c053104c4844ab582d5d55588084cc30400c4e3f1183b8ee3b48b2021b03044c91b225afdfa64e509ce7f7b1eb7feb8d595bf797316411060737313f55a1d4f9f3ec5caca0a4aa5128405b66dc330c311e4388ea362b1d81e006066800006436b8d171b1b785eab6ff7fae666035b5b5baf7a5f6bacadad75e5fff967158d46036b6b6bd05a4343838860595628ba6d02c462b13d1c8d469d9608610100542a153cab54e0fbde36b40e42875aa3a7a70767cf9ec5d1a347bbf2d3d3d3606658b6053b62231a892062dbb06c0b9665c1b44d9866588e6834ea28dbb6c34c1003006ab51a7cdf472412e938f5220211412693c1e9d3a7f1b28a3bf2cc0cdbb2779c20adf961dbf61e659a669499033ff059eb00207a43402bd889132770f2e4c9ffcc5b96d5550400789e07660e4cd38c2ad3349fbbaebbb1bcbcec0c0c0cc0deae5be7e89e39378383070fbee1ac1baf019c9b99816599af462500b4fa0140a15080ebba1ba6693e578661e4878686361e3c78e0a4d3e9504087bbd0a6b2935dffa83b4fc84e4d41eb306e37cbe572181!
a1ada300c23cf443497cd665f2c2d2d35e7e7e7a1946a83f18e08f71b867ac!
d5f88bb7
7efe2d1a347cd6c36fb8288e6542c16bb9ec964ae552a95af6fdfbefd5eb15894b1b131a4d36928a55ecbccbb9be77978fcf831eedfbf8f7c3eef1f3e7cb896c964ae99a6799d5edeac7a3dcf3b93cbe5cecccfcfdb8b8b8baa582c8ae779bb2200009452e8ededf5474646bcc9c9c9cde1e1e1cb4aa9cb008ad47ebd03f07910049f11d1c7003ec02edfac002c69adff64e65f01fcd2faf02f4d6ab00c1f4920a20000000049454e44ae426082</data>
+ <data format="PNG" length="2819">89504e470d0a1a0a0000000d49484452000000270000002708060000008ca3513500000aca49444154789cad585b6c54c719fee6b2678fb35edb7bf72e1b630c066ce36217c9769c98c4984bb924d0280d9522f5258887f6a14ff4ad804823a57da70f1195a24a488da8d2aa54752b27109404e2a81482afd81bdf646cb3b677f7acedbd9cbd4c1fced9b3c7c6c6d074a4d1ce39fbcfcc37dffffd33ff192284c0f31642880cc006e0050032002b000e8001c801c802480348014800581142a49e7b9e67054708a165656515b22c3baaaaaa76f9fdfee6d2d2d25d9224d570ce8394521721c4268458c9e7f38bd96c765a55d5b1e5e5e587b3b3b3f7a6a6a61ea652a9683c1e8f0921f2ff3770757575ae743aedaeafafff91c3e178c5ed72bf5c5555e50f0402f0783d70395db0dbedb05aad48a7d3585a5ac2626411f3e179cccccc606a6a6a766171e1ab6834fae5e0e0e03fad56ebc2d0d0d0e2f702d7dede5eb2b2b252b975ebd6430e87e358cdb66d4777edde2dedacdd89ca4a9f66240840048400080001024204b4274040e0f1dc638c8e8e607878581d1b1fef8e46a3ff989c9cecb1d96c73b76fdf4e3e37b8cecece8a4c26b3a5babafa4c201078aba9a929b877ef5e382a1c9b2d78c3128d46f1ed836f71fffef!
de99999993f4f4c4c5cb1582c8f6edebc197b66706fbef9a68b52fa03bbdd7eb6beaefe744b6b0bd9595b8b021b00607423021004c4f84b40143814d0fa10c0300730323a82dede6fc4d0d0e0c74b4b4b1fe6f3f9079f7cf2c9136e7e02dc9933679caaaafe5092a45f3437359feae8e880d7e32df8cc3451e1410084c0f0a410103a52ed51ffdfbc2802cc87c3f8e2cb2f70efdebdbfaaaa7a5992a4ff5cb9722562c642cd0fe7ce9db371ce6b64593edbdcdc7ceac08103f0fabc452b7d06420042c8aa5f1895184dcd560756e84b357bafcf87aece03686e6e3e25cbf259ce79cdb973e76c663c7c0d93db28a5ef6edfbefdadfd1dfbe1743acd9e5cbf98911496bb518c1511030270389dd8dfb11fc944f2adb1f1b145009701f49b8702005cbc783198cbe58e959797bfd1d6d6467c3e9fb16a02a233b441c506ed67b0f7f97c687ba98dd86cb63772b9dcb18b172f065781bb76ed1ab3d96cdb3299cca1a6bd4d81ddbb7769ee21042054d3342145b799dad0db6637638d9b6102661ea35077eedc899a6d35814c2673c866b36dbb76ed1a33c0298a52a528ca09afd7bbbfa9b9190005d53b52bd82105042914a26f0c16f3fc077a1ef4009f45a5800d5fb5053356b938090e2d884009431acacac20f8621076bb7dbfa228271445a93234c718ab4a2412fb9a9a9a2497c!
bb546260202b4282542d1dfdf8ffefe7ed4d737e0f4db3fc18eda5a10503da!
08d8dc40
8706a122531629d18a32e2e2cc26eb723180c4aa150681f63ac0ac0386b686870c662b1a34b4b4b6f1fecea7aa1cc5ea6ad8aaeaf9f6c368beb7fbb0e028285f9797cfef92d0c3f1c46c01f80d3e532b1b2b6e289778c334463512c46164129856495303131516eb7db43939393235492a44a4551f604b7045dfec0165d174f02c3869a0206070771e1e205bcfffe6f301a0aadb22d6e35ab8132ce914824100e87c1180563142ea70b4ea7d3a528ca1e49922aa92ccbbe4422511d7c31b84a0b05408541a9ae17523c0a9e28838383b870e13cde7bef1242a1ef56e9ccd02325608c6169298ee9e969e4f37930c6412905650c1eaf178944a25a96651fb5582c95a9542ae0aff41ba08c60a0ebbb47df5c8aecae690f0f0de3fcf9f3b874e9124643a39a0ba9c68e1002f38b0b9879f408799107e73a30cac02885cbe9442a950a582c964a2e4992535555b7dbebd1424f4097b0281c8bbab88511104f9047d66f0f0d0fe1fcf9f3a8afabc3dba74fc3e7f321aec49156d3a08cadeb0587c3015555dd922439b9d56a7564b3597b4559b9b1250800446871a5b1a9c79c80b6ad3cad082d6285d06a3e9fc7bdfbf7f1efbb7751535383e3c78f63fbf6eda6a35a8f5f220001949696229bcddaad56ab8372ce4b73b99c5596ad8670a92e746a885ed721d5a218d00ef45c368b4c26!
035555914ea7914aa5904c25914aa5904ea7914ea791c96490cbe50000e3e3e3b87cf932eedebd0bc63938e7609c8133064e3938e328297901b95cceca392fe5922411c6585a553356b94446219f281044f4739250824c2683a5f8125455453e9fc36649b4d96d9452b4b4b4e0c89123f079bd284c5048520bb4a755158cb1b424498473ce55599693f178dc2a9794e8dad2c009210ca65656125094181445413e9f5fb580a7154a295a5b5b71ece831b8bd1eac5d9149cd00806432095996939c739573ce15bbddbe3cbf305fe1abf4a1108980006514d94c168aa22099d4b26949929eba9d9841b5b5b5e1f8f1e3f0783c9baf422ff1781c76bb7d9973ae708bc51276b95cf1b9b9393436361657442872b91c623105aaaa82736e4cfa34709452bcd4d686e3274e68b9a0418a916eea191329669e26e62291085c2e57dc62b18439636c7acb962df1a9a9298331420872f93c144581103958248bae3d01cef8bae028a578a9bd1d27df38098fdb055386ae47b09ebde8221320850035b62d08606e6e0e5bb76e8d33c6a6392124545b5b3bfbe0c183e4cceca392c0162d9d4a2412c6eead0daa81606bf6274a29dadbdb71f2e44978bc9e2213620d3883b82283664e0501c2738f118bc592070f1e9c25848478201098b2582cdf783c9e7d03038355c1e08b48a7d3c866b3b0!
582c4f30c438d34f0f8a8e8e0e0dd47368ea6965341482d7eb9df7fbfddf78!
3c9ea942
ca74b7a1a121d6dbdb1bdcb76f1f9565198cf37533744992d0d9d98953a74e6d0a4adbcc51dcd89f621b8944303a3a9a6f6f6f8f31c6ee02c5af2faba228ef5dbd7af5677ebfdff7da6baf1507df7476f367df663dc46a2b53ffcf3efd14f3f3f38fdf79e79d3f969797ff1a40baf00d9106d0d3d2d2f278646424f5f0e1433046c119036514945130c6c0f436a5da33e50c8c317046c12803651c94323dc328f661857794835106ae27018c6b638d8e8c606c6c2cd5d2d2f218408f8ea7f8f5555e5ede53575777757676f69777eedc09b83d6ef82bfdc0aa2dd24c80b664233684d06e266066b2101ce68d76759e3c3b3787dbb76fa3bebe3e52575777d566b3f514a659f5ddca18fbb8ababebef1e8f2772e3b31b8846a37a2ab3a63266a4401a235a2ea63154b42ba44245167526758f446331dcb871031e8f27d2d5d5f577c6d8c7663cabc0c9b23c4908f9e8f0e1c37724498a777777231c7eac4dc8340085bcab00929a5d4ff567b35b69d14673b1f63e1c0ea3bbbb1b9224c50f1f3e7c8710f2912ccb93663cebde95a452a9cee5e5e55ff5f4f4bc120e874b5f7df555ecd9b3c7ace9ef55fafbfb71ebd62d78bddee543870e7d595a5afa3b59966faeb5dbf096299bcdbe2c84f8f9cd9b375fefebeb2ba9adade56d6dad70b9dd28dc7c08b3e69ea12c2c2ce0ebafbfc!
6e8e868b6b1b131d9d9d9799d10f27bcef957ebd96f76795893cd66df0d8542677b7b7bede170586a6868208d8d8d0806836b4c4dc7c86aed637a7a1a7d7d7d181818105eaf576d6d6d5ddab163c7879cf33f0018db68f267bad9cce5723f06f0d3818181d7fbfafaf8c4c404733a9db4baba1a8140005eaf17151515906519a9540ab1580ce17018333333989898402412c9575757e71a1b1bb30d0d0dd701fc8931f697cde67de63b610025b95cee7542c891c5c5c5a3636363eea9a929323b3b4b171616483c1e27a9540ab22ca3acac4cb8dd6ee1f7fbf3555555a2a6a666c1e572750b21fec518bb0e60c3dbccff159cb9ec02d00a60af10a20ec036005e0076004b00c200c609214300be05d00be0e1f34ef25f67ef2763415fa3160000000049454e44ae426082</data>
</image>
<image name="image2">
- <data format="PNG" length="2819">89504e470d0a1a0a0000000d49484452000000270000002708060000008ca3513500000aca49444154789cad585b6c54c719fee6b2678fb35edb7bf72e1b630c066ce36217c9769c98c4984bb924d0280d9522f5258887f6a14ff4ad804823a57da70f1195a24a488da8d2aa54752b27109404e2a81482afd81bdf646cb3b677f7acedbd9cbd4c1fced9b3c7c6c6d074a4d1ce39fbcfcc37dffffd33ff192284c0f31642880cc006e0050032002b000e8001c801c802480348014800581142a49e7b9e67054708a165656515b22c3baaaaaa76f9fdfee6d2d2d25d9224d570ce8394521721c4268458c9e7f38bd96c765a55d5b1e5e5e587b3b3b3f7a6a6a61ea652a9683c1e8f0921f2ff3770757575ae743aedaeafafff91c3e178c5ed72bf5c5555e50f0402f0783d70395db0dbedb05aad48a7d3585a5ac2626411f3e179cccccc606a6a6a766171e1ab6834fae5e0e0e03fad56ebc2d0d0d0e2f702d7dede5eb2b2b252b975ebd6430e87e358cdb66d4777edde2dedacdd89ca4a9f66240840048400080001024204b4274040e0f1dc638c8e8e607878581d1b1fef8e46a3ff989c9cecb1d96c73b76fdf4e3e37b8cecece8a4c26b3a5babafa4c201078aba9a929b877ef5e382a1c9b2d78c3128d46f1ed836f71fffef!
de99999993f4f4c4c5cb1582c8f6edebc197b66706fbef9a68b52fa03bbdd7eb6beaefe744b6b0bd9595b8b021b00607423021004c4f84b40143814d0fa10c0300730323a82dede6fc4d0d0e0c74b4b4b1fe6f3f9079f7cf2c9136e7e02dc9933679caaaafe5092a45f3437359feae8e880d7e32df8cc3451e1410084c0f0a410103a52ed51ffdfbc2802cc87c3f8e2cb2f70efdebdbfaaaa7a5992a4ff5cb9722562c642cd0fe7ce9db371ce6b64593edbdcdc7ceac08103f0fabc452b7d06420042c8aa5f1895184dcd560756e84b357bafcf87aece03686e6e3e25cbf259ce79cdb973e76c663c7c0d93db28a5ef6edfbefdadfd1dfbe1743acd9e5cbf98911496bb518c1511030270389dd8dfb11fc944f2adb1f1b145009701f49b8702005cbc783198cbe58e959797bfd1d6d6467c3e9fb16a02a233b441c506ed67b0f7f97c687ba98dd86cb63772b9dcb18b172f065781bb76ed1ab3d96cdb3299cca1a6bd4d81ddbb7769ee21042054d3342145b799dad0db6637638d9b6102661ea35077eedc899a6d35814c2673c866b36dbb76ed1a33c0298a52a528ca09afd7bbbfa9b9190005d53b52bd82105042914a26f0c16f3fc077a1ef4009f45a5800d5fb5053356b938090e2d884009431acacac20f8621076bb7dbfa228271445a93234c718ab4a2412fb9a9a9a2497c!
bb546260202b4282542d1dfdf8ffefe7ed4d737e0f4db3fc18eda5a10503da!
08d8dc40
8706a122531629d18a32e2e2cc26eb723180c4aa150681f63ac0ac0386b686870c662b1a34b4b4b6f1fecea7aa1cc5ea6ad8aaeaf9f6c368beb7fbb0e028285f9797cfef92d0c3f1c46c01f80d3e532b1b2b6e289778c334463512c46164129856495303131516eb7db43939393235492a44a4551f604b7045dfec0165d174f02c3869a0206070771e1e205bcfffe6f301a0aadb22d6e35ab8132ce914824100e87c1180563142ea70b4ea7d3a528ca1e49922aa92ccbbe4422511d7c31b84a0b05408541a9ae17523c0a9e28838383b870e13cde7bef1242a1ef56e9ccd02325608c6169298ee9e969e4f37930c6412905650c1eaf178944a25a96651fb5582c95a9542ae0aff41ba08c60a0ebbb47df5c8aecae690f0f0de3fcf9f3b874e9124643a39a0ba9c68e1002f38b0b9879f408799107e73a30cac02885cbe9442a950a582c964a2e4992535555b7dbebd1424f4097b0281c8bbab88511104f9047d66f0f0d0fe1fcf9f3a8afabc3dba74fc3e7f321aec49156d3a08cadeb0587c3015555dd922439b9d56a7564b3597b4559b9b1250800446871a5b1a9c79c80b6ad3cad082d6285d06a3e9fc7bdfbf7f1efbb7751535383e3c78f63fbf6eda6a35a8f5f220001949696229bcddaad56ab8372ce4b73b99c5596ad8670a92e746a885ed721d5a218d00ef45c368b4c26!
035555914ea7914aa5904c25914aa5904ea7914ea791c96490cbe50000e3e3e3b87cf932eedebd0bc63938e7609c8133064e3938e328297901b95cceca392fe5922411c6585a553356b94446219f281044f4739250824c2683a5f8125455453e9fc36649b4d96d9452b4b4b4e0c89123f079bd284c5048520bb4a755158cb1b424498473ce55599693f178dc2a9794e8dad2c009210ca65656125094181445413e9f5fb580a7154a295a5b5b71ece831b8bd1eac5d9149cd00806432095996939c739573ce15bbddbe3cbf305fe1abf4a1108980006514d94c168aa22099d4b26949929eba9d9841b5b5b5e1f8f1e3f0783c9baf422ff1781c76bb7d9973ae708bc51276b95cf1b9b9393436361657442872b91c623105aaaa82736e4cfa34709452bcd4d686e3274e68b9a0418a916eea191329669e26e62291085c2e57dc62b18439636c7acb962df1a9a9298331420872f93c144581103958248bae3d01cef8bae028a578a9bd1d27df38098fdb055386ae47b09ebde8221320850035b62d08606e6e0e5bb76e8d33c6a6392124545b5b3bfbe0c183e4cceca392c0162d9d4a2412c6eead0daa81606bf6274a29dadbdb71f2e44978bc9e2213620d3883b82283664e0501c2738f118bc592070f1e9c25848478201098b2582cdf783c9e7d03038355c1e08b48a7d3c866b3b0!
582c4f30c438d34f0f8a8e8e0e0dd47368ea6965341482d7eb9df7fbfddf78!
3c9ea942
ca74b7a1a121d6dbdb1bdcb76f1f9565198cf37533744992d0d9d98953a74e6d0a4adbcc51dcd89f621b8944303a3a9a6f6f6f8f31c6ee02c5af2faba228ef5dbd7af5677ebfdff7da6baf1507df7476f367df663dc46a2b53ffcf3efd14f3f3f38fdf79e79d3f969797ff1a40baf00d9106d0d3d2d2f278646424f5f0e1433046c119036514945130c6c0f436a5da33e50c8c317046c12803651c94323dc328f661857794835106ae27018c6b638d8e8c606c6c2cd5d2d2f218408f8ea7f8f5555e5ede53575777757676f69777eedc09b83d6ef82bfdc0aa2dd24c80b664233684d06e266066b2101ce68d76759e3c3b3787dbb76fa3bebe3e52575777d566b3f514a659f5ddca18fbb8ababebef1e8f2772e3b31b8846a37a2ab3a63266a4401a235a2ea63154b42ba44245167526758f446331dcb871031e8f27d2d5d5f577c6d8c7663cabc0c9b23c4908f9e8f0e1c37724498a777777231c7eac4dc8340085bcab00929a5d4ff567b35b69d14673b1f63e1c0ea3bbbb1b9224c50f1f3e7c8710f2912ccb93663cebde95a452a9cee5e5e55ff5f4f4bc120e874b5f7df555ecd9b3c7ace9ef55fafbfb71ebd62d78bddee543870e7d595a5afa3b59966faeb5dbf096299bcdbe2c84f8f9cd9b375fefebeb2ba9adade56d6dad70b9dd28dc7c08b3e69ea12c2c2ce0ebafbfc!
6e8e868b6b1b131d9d9d9799d10f27bcef957ebd96f76795893cd66df0d8542677b7b7bede170586a6868208d8d8d0806836b4c4dc7c86aed637a7a1a7d7d7d181818105eaf576d6d6d5ddab163c7879cf33f0018db68f267bad9cce5723f06f0d3818181d7fbfafaf8c4c404733a9db4baba1a8140005eaf17151515906519a9540ab1580ce17018333333989898402412c9575757e71a1b1bb30d0d0dd701fc8931f697cde67de63b610025b95cee7542c891c5c5c5a3636363eea9a929323b3b4b171616483c1e27a9540ab22ca3acac4cb8dd6ee1f7fbf3555555a2a6a666c1e572750b21fec518bb0e60c3dbccff159cb9ec02d00a60af10a20ec036005e0076004b00c200c609214300be05d00be0e1f34ef25f67ef2763415fa3160000000049454e44ae426082</data>
+ <data format="PNG" length="2611">89504e470d0a1a0a0000000d49484452000000270000002708060000008ca35135000009fa49444154789cad585b6c1bc7153df3e072558a92f816699a9694c8b624ab966440569dd8812cd86d82244883002d90cf18fe683ffae57efbbbffe947e002f9b1d140455a2041d540a88dbcec2840e238b2ec5812649990f5a0f85a4ae263c9dde9c73eb87a5096db5e62c059ee9db967ee3d73e772881002cf2b8410198007c0cf00c800dc0038000640035003500150065004b02584283fb79d83822384d09696963659967d8944e258341a1d6c6e6e3e26495217e73c4e290d10423c42882d5dd733b55a6d4955d585cdcdcd472b2b2b7793c9e4a372b99c2b140a792184fe7f03d7d3d313a8542ac1dedede5ff97cbe978381e04b8944221a8bc5100a8710f007e0f57ae176bb51a954b0b1b1814c3683f5d43a969797914c2657d299f4d7b95ceeab070f1efccbed76a71f3e7c98f99fc09d3973a6696b6babfdc89123177c3edf6b5d9d9daf1e3b7e5c3ada7d14eded1143491080080801100002048408184f8080c0daea1ae6e666f1d34f3fa90b8f1f4fe472b97f3e79f264d2e3f1acdebe7dbbf4dce0464747dbaad5eaa18e8e8e4bb158ec9d818181f8c99327e16bf33d6bc10d2597cbe1de8ff7f0c30f3f2c2d2f2ff!
f6d7171f19acbe57a7aebd6adfc81c1bdfdf6db014ae9cfbd5eefe5de9ededf0c9f1e2647bbbb61790300ec6144008280d8af0484e54301630c016c7500b373b3989afa563c7cf8e0a38d8d8d0f745dfff1e38f3fde15e65de02e5dbae45755754892a4df0f0e0cbe75f6ec598443612b660e43d6830008811d4921204ca4c6a3f9deb92802aca752f8f2ab2f71f7eedd7fa8aafabe2449df5fbb762debc4429d0f57ae5cf170cebb6459be3c3838f8d6f9f3e7118e84eb5aa605420042c8b66fd88dd85d43d704668da5867e3812c1d8e8790c0e0ebe25cbf265ce79d7952b573c4e3c7c87273b29a5efbdf0c20bef9c3b7b0e7ebfdf19c9bdc589c45a6ea33d56470c08c0e7f7e3dcd97328154bef2c3c5ec800781fc07de7540080ab57afc6354d7badb5b5f5cd919111128944ec551310d3430d1a1af40fa01f894430f28b11e2f178ded434edb5ab57afc6b7811b1f1f671e8fa7b35aad5e183839103b7efc98111e4200420d4e13520f9ba30fb3ef0c337684190e60ce39ac76f4e851747576c5aad5ea058fc7d3393e3ece6c708aa2241445793d1c0e9f1b181c044041cd81d46c2004945050d3a8d5a766df0048cd31d4d19cdc2420a43e372100650c5b5b5b881f8ec3ebf59e5314e57545511236e718638962b1786a6060400a04023b682220406d2abdfbeebb7bd2e!
9faf51be686160d756e5cbf0162ef7562cf9a4967e0f57a118fc7a5f9f9f95!
38cb1048
0c7747c7cdc5f2c168738e7033dc78fdb9ea294982bdceec5461fa777f7d680ed396b4ec619f28a8262a908c618e287e30030502c1687c6c7c7fd5492a47645514ec40fc503d1d8219317bb898d5d29637bb3e86771707773ce0730ce512c16914aa5c018056314017f007ebf3fa028ca094992daa92ccb9162b1d8113f1cdfc6050b109c5e23148d843838d658c78808630c1b1b052c2d2d41d77530c6412905650ca17018c562b14396e50875b95cede57239166d8fdaa0ec30d2bdd280c144fbe3f432753ceffc1002c628841058cfa4b1fcf42974a18373131865609422e0f7a35c2ec75c2e573b9724c9afaa6a30180e195b4f000035884b1c950684f1ca7114d55d62647eabbf57e216422093cda2a01450512ba08c19d1d9213e9f0faaaa062549f273b7dbedabd56adeb696563b2508004418fbcaf0a630003fa3f4134200c2f8b69aaeebd0751d9aa62193c9801002ceb9e3a836f72f31c6363737a356ab79dd6eb78f73ce9b354d73cbb2db3c5508a8e925fb24b2cf47233cb6614d836ef6d7d6d6a0eb1a344d47b95cae83758824490d5655efb2260e4dd3dc9cf3662e4912618c5554b5ea969be43aa7ac2899030925a856aba8556bd0740dbaaec169bb52a960679476868d51564762beb38a540b654555c118ab48924438e75c9565b9542814dc725393c92d039c!
10c2e6d2d656118a92875a554da3641b182b547b81b2847206ecf0a683cd008052a90459964b9c739573ce15afd7bbb99e5e6f8bb44760ed444080328a5ab5064551502a19d534a57ba713ceeb054e23709cb13d7f774aa15080d7ebdde49c2bdce572a502814061757515fdfdfd0e03149aa6219f57a0aaaa6dbc9161c698590a897d7438006173dbae3c1d9ecb66b30804020597cb95e28cb1a543870e1592c9a4ed314208345d87a2281042834b7299dcdbcfb0056e9f05700662924c80581bd44e5b10c0eaea2a8e1c3952608c2d5142c87c7777f7cafafa7a6979e529402940088ac5a29dbdade38599b969afc6183374f87e3a14947150cac1280575cc4b19433a9d463e9f2f757777af1042e6792c164bba5cae6f43a1d0a99999078978fc302a950a6ab51a5c2ed7aed537e4d38138b7b3f0de2e73f3f30887c3ebd168f4db502894b44aa6effafafaf2535353f153a74e515996c11cbbcf29376edcd8d78053c748e6a827f67dc664b359cccdcde967ce9cc933c6be03cc62d3eff77f313434f4594b4bcbfad4d49491c54d57b3fd1a657648a81556c77bce181877f41d21dc39fedebd7bf0f97ceb4343439ff9fdfe2f6c70302e5d26878787d7666767cb8f1e3d0263d404687183999ca1a0d434621ba66094997c626685511fc3acdf2807a30c9c9a5ce3c65c73b3!
b3585858280f0f0faf019834f1d4ff7db5b6b64ef6f4f45c5f5959f9c39d3b!
7762c150
10d1f628b02d459a621dba02f5442c84713301e71f68f34938136dbd94000456565771fbf66df4f6f6667b7a7aae7b3c9e49cbccb68cca18fb686c6cecd3502894bdf9ef9bc8e5726629b3a331a3bc61a617ad5accf0505dcf2a85e8b6705ba1a5c8e5f3b879f32642a150766c6cec53c6d8474e3cdbc0c9b2fc8410f2e1c58b17ef489254989898402ab56618640600abeedace37338cd47c768695d6758c101bbfa752294c4c4c4092a4c2c58b17ef10423e9465f98913cf9e7725e57279747373f38f9393932fa752a9e6575e7905274e9c708474d790e792fbf7efe3f3cf3f47381cdebc70e1c257cdcdcd7f9265f9d64ebd86b74cb55aed2521c4ef6eddbaf5c6f4f474537777371f19398d403008abdc144ece1d40d2e934bef9e61bcccdcdd5fafbfb4ba3a3a39f1042fecc39ff7a2ffd675d1e76d56ab5f7e6e7e72f4f4d4d7953a994d4d7d747fafbfb118fc777a8927a7db59dfb585a5ac2f4f43466666644381c564f9f3ebdf1e28b2f7ec039ff0b808546c60f74b3a969daaf01fc766666e68de9e969beb8b8c8fc7e3fede8e8402c1643381c465b5b1b645946b95c463e9f472a95c2f2f23216171791cd66f58e8e0eadbfbfbfd6d7d7f70980bf32c6fefe2cbb07be1306d0a469da1b84905f6632995717161682c96492acacacd0743a4d0a85022997cb9065192!
d2d2d22180c8a6834aa271209d1d5d5950e0402134288cf18639f0068789bf9df8273ca3100a7019c1442f400e8041006e005b0012005e03121e421807b00a6003c7a5e23ff01b479d2670f099ffb0000000049454e44ae426082</data>
</image>
<image name="image3">
- <data format="PNG" length="2611">89504e470d0a1a0a0000000d49484452000000270000002708060000008ca35135000009fa49444154789cad585b6c1bc7153df3e072558a92f816699a9694c8b624ab966440569dd8812cd86d82244883002d90cf18fe683ffae57efbbbffe947e002f9b1d140455a2041d540a88dbcec2840e238b2ec5812649990f5a0f85a4ae263c9dde9c73eb87a5096db5e62c059ee9db967ee3d73e772881002cf2b8410198007c0cf00c800dc0038000640035003500150065004b02584283fb79d83822384d09696963659967d8944e258341a1d6c6e6e3e26495217e73c4e290d10423c42882d5dd733b55a6d4955d585cdcdcd472b2b2b7793c9e4a372b99c2b140a792184fe7f03d7d3d313a8542ac1dedede5ff97cbe978381e04b8944221a8bc5100a8710f007e0f57ae176bb51a954b0b1b1814c3683f5d43a969797914c2657d299f4d7b95ceeab070f1efccbed76a71f3e7c98f99fc09d3973a6696b6babfdc89123177c3edf6b5d9d9daf1e3b7e5c3ada7d14eded1143491080080801100002048408184f8080c0daea1ae6e666f1d34f3fa90b8f1f4fe472b97f3e79f264d2e3f1acdebe7dbbf4dce0464747dbaad5eaa18e8e8e4bb158ec9d818181f8c99327e16bf33d6bc10d2597cbe1de8ff7f0c30f3f2c2d2f2ff!
f6d7171f19acbe57a7aebd6adfc81c1bdfdf6db014ae9cfbd5eefe5de9ededf0c9f1e2647bbbb61790300ec6144008280d8af0484e54301630c016c7500b373b3989afa563c7cf8e0a38d8d8d0f745dfff1e38f3fde15e65de02e5dbae45755754892a4df0f0e0cbe75f6ec598443612b660e43d6830008811d4921204ca4c6a3f9deb92802aca752f8f2ab2f71f7eedd7fa8aafabe2449df5fbb762debc4429d0f57ae5cf170cebb6459be3c3838f8d6f9f3e7118e84eb5aa605420042c8b66fd88dd85d43d704668da5867e3812c1d8e8790c0e0ebe25cbf265ce79d7952b573c4e3c7c87273b29a5efbdf0c20bef9c3b7b0e7ebfdf19c9bdc589c45a6ea33d56470c08c0e7f7e3dcd97328154bef2c3c5ec800781fc07de7540080ab57afc6354d7badb5b5f5cd919111128944ec551310d3430d1a1af40fa01f894430f28b11e2f178ded434edb5ab57afc6b7811b1f1f671e8fa7b35aad5e183839103b7efc98111e4200420d4e13520f9ba30fb3ef0c337684190e60ce39ac76f4e851747576c5aad5ea058fc7d3393e3ece6c708aa2241445793d1c0e9f1b181c044041cd81d46c2004945050d3a8d5a766df0048cd31d4d19cdc2420a43e372100650c5b5b5b881f8ec3ebf59e5314e57545511236e718638962b1786a6060400a04023b682220406d2abdfbeebb7bd2e!
9faf51be686160d756e5cbf0162ef7562cf9a4967e0f57a118fc7a5f9f9f95!
38cb1048
0c7747c7cdc5f2c168738e7033dc78fdb9ea294982bdceec5461fa777f7d680ed396b4ec619f28a8262a908c618e287e30030502c1687c6c7c7fd5492a47645514ec40fc503d1d8219317bb898d5d29637bb3e86771707773ce0730ce512c16914aa5c018056314017f007ebf3fa028ca094992daa92ccb9162b1d8113f1cdfc6050b109c5e23148d843838d658c78808630c1b1b052c2d2d41d77530c6412905650ca17018c562b14396e50875b95cede57239166d8fdaa0ec30d2bdd280c144fbe3f432753ceffc1002c628841058cfa4b1fcf42974a18373131865609422e0f7a35c2ec75c2e573b9724c9afaa6a30180e195b4f000035884b1c950684f1ca7114d55d62647eabbf57e216422093cda2a01450512ba08c19d1d9213e9f0faaaa062549f273b7dbedabd56adeb696563b2508004418fbcaf0a630003fa3f4134200c2f8b69aaeebd0751d9aa62193c9801002ceb9e3a836f72f31c6363737a356ab79dd6eb78f73ce9b354d73cbb2db3c5508a8e925fb24b2cf47233cb6614d836ef6d7d6d6a0eb1a344d47b95cae83758824490d5655efb2260e4dd3dc9cf3662e4912618c5554b5ea969be43aa7ac2899030925a856aba8556bd0740dbaaec169bb52a960679476868d51564762beb38a540b654555c118ab48924438e75c9565b9542814dc725393c92d039c!
10c2e6d2d656118a92875a554da3641b182b547b81b2847206ecf0a683cd008052a90459964b9c739573ce15afd7bbb99e5e6f8bb44760ed444080328a5ab5064551502a19d534a57ba713ceeb054e23709cb13d7f774aa15080d7ebdde49c2bdce572a502814061757515fdfdfd0e03149aa6219f57a0aaaa6dbc9161c698590a897d7438006173dbae3c1d9ecb66b30804020597cb95e28cb1a543870e1592c9a4ed314208345d87a2281042834b7299dcdbcfb0056e9f05700662924c80581bd44e5b10c0eaea2a8e1c3952608c2d5142c87c7777f7cafafa7a6979e529402940088ac5a29dbdade38599b969afc6183374f87e3a14947150cac1280575cc4b19433a9d463e9f2f757777af1042e6792c164bba5cae6f43a1d0a99999078978fc302a950a6ab51a5c2ed7aed537e4d38138b7b3f0de2e73f3f30887c3ebd168f4db502894b44aa6effafafaf2535353f153a74e515996c11cbbcf29376edcd8d78053c748e6a827f67dc664b359cccdcde967ce9cc933c6be03cc62d3eff77f313434f4594b4bcbfad4d49491c54d57b3fd1a657648a81556c77bce181877f41d21dc39fedebd7bf0f97ceb4343439ff9fdfe2f6c70302e5d26878787d7666767cb8f1e3d0263d404687183999ca1a0d434621ba66094997c626685511fc3acdf2807a30c9c9a5ce3c65c73b3!
b3585858280f0f0faf019834f1d4ff7db5b6b64ef6f4f45c5f5959f9c39d3b!
7762c150
10d1f628b02d459a621dba02f5442c84713301e71f68f34938136dbd94000456565771fbf66df4f6f6667b7a7aae7b3c9e49cbccb68cca18fb686c6cecd3502894bdf9ef9bc8e5726629b3a331a3bc61a617ad5accf0505dcf2a85e8b6705ba1a5c8e5f3b879f32642a150766c6cec53c6d8474e3cdbc0c9b2fc8410f2e1c58b17ef489254989898402ab56618640600abeedace37338cd47c768695d6758c101bbfa752294c4c4c4092a4c2c58b17ef10423e9465f98913cf9e7725e57279747373f38f9393932fa752a9e6575e7905274e9c708474d790e792fbf7efe3f3cf3f47381cdebc70e1c257cdcdcd7f9265f9d64ebd86b74cb55aed2521c4ef6eddbaf5c6f4f474537777371f19398d403008abdc144ece1d40d2e934bef9e61bcccdcdd5fafbfb4ba3a3a39f1042fecc39ff7a2ffd675d1e76d56ab5f7e6e7e72f4f4d4d7953a994d4d7d747fafbfb118fc777a8927a7db59dfb585a5ac2f4f43466666644381c564f9f3ebdf1e28b2f7ec039ff0b808546c60f74b3a969daaf01fc766666e68de9e969beb8b8c8fc7e3fede8e8402c1643381c465b5b1b645946b95c463e9f472a95c2f2f23216171791cd66f58e8e0eadbfbfbfd6d7d7f70980bf32c6fefe2cbb07be1306d0a469da1b84905f6632995717161682c96492acacacd0743a4d0a85022997cb9065192!
d2d2d22180c8a6834aa271209d1d5d5950e0402134288cf18639f0068789bf9df8273ca3100a7019c1442f400e8041006e005b0012005e03121e421807b00a6003c7a5e23ff01b479d2670f099ffb0000000049454e44ae426082</data>
+ <data format="PNG" length="1176">89504e470d0a1a0a0000000d4948445200000021000000140806000000035354710000045f49444154789cad564d6c135710fe66e6ed8feda576d6228943b0aa86249249d2c405a10aa9225cda63853894637be380d403a4a2f406979e11bd50d16b8f3d167aa88228cd818a10c481d80a150a71e338061b3bc4f1eebe1e16071b1c54d18cf469f77dab37f3edccbcd123ad355a4644090071000e000b0061f74c036800a801a868ad9f6dc7d55ae3d0a14346b95c1e181d1dfd34994c4e5b96f59152ea7d00c62e8a687a9ef777a3d1f86b7d7dfdf7870f1f5e775d77e5ce9d3b4d0500914864ff912347be4ca7d35f8d8f8d0f1c183e80547f0a4aa95d53e0fbbe51281486f3f9fcf0bd857b9f241289fdcbcbcb3f0158a253a74ef51986f1452a95fae6f8f4f1d4f8f838c2cced66253a6d616101377ebb5128954adf379bcd9fd5e0e060aa5aad1e9b189f484d4c7cd826e0ff8a087b8d3a5600312193c96031b798aad7ebc7fafafa66d975dd7e229a1a191d8508814520c26021481bcae552c7fa6d3c0961bd5c8608834440226011103344044daf89fefe7e10d194ebbafd9c4c26f70641b06f707010cc0c61069384cf365cbc74097373731ddc4ebc30e3d2c58b606ae38820221016d4eb75247a120882605f3299d!
ccb8944c201a04c658049c28dc22fdf5fa1d168e0ca951f70f5ea8ff09afe5b79214163ab11669508420c1681a1146af51aaad52a2276040054229170381e8fc70084815b60ee5c0b83884044989d9dc585ef2e60b5b8ba33af425e94400c053104c4844ab582d5d55588084cc30400c4e3f1183b8ee3b48b2021b03044c91b225afdfa64e509ce7f7b1eb7feb8d595bf797316411060737313f55a1d4f9f3ec5caca0a4aa5128405b66dc330c311e4388ea362b1d81e006066800006436b8d171b1b785eab6ff7fae666035b5b5baf7a5f6bacadad75e5fff967158d46036b6b6bd05a4343838860595628ba6d02c462b13d1c8d469d9608610100542a153cab54e0fbde36b40e42875aa3a7a70767cf9ec5d1a347bbf2d3d3d3606658b6053b62231a892062dbb06c0b9665c1b44d9866588e6834ea28dbb6c34c1003006ab51a7cdf472412e938f5220211412693c1e9d3a7f1b28a3bf2cc0cdbb2779c20adf961dbf61e659a669499033ff059eb00207a43402bd889132770f2e4c9ffcc5b96d5550400789e07660e4cd38c2ad3349fbbaebbb1bcbcec0c0c0cc0deae5be7e89e39378383070fbee1ac1baf019c9b99816599af462500b4fa0140a15080ebba1ba6693e578661e4878686361e3c78e0a4d3e9504087bbd0a6b2935dffa83b4fc84e4d41eb306e37cbe572181!
a1ada300c23cf443497cd665f2c2d2d35e7e7e7a1946a83f18e08f71b867ac!
d5f88bb7
7efe2d1a347cd6c36fb8288e6542c16bb9ec964ae552a95af6fdfbefd5eb15894b1b131a4d36928a55ecbccbb9be77978fcf831eedfbf8f7c3eef1f3e7cb896c964ae99a6799d5edeac7a3dcf3b93cbe5cecccfcfdb8b8b8baa582c8ae779bb2200009452e8ededf5474646bcc9c9c9cde1e1e1cb4aa9cb008ad47ebd03f07910049f11d1c7003ec02edfac002c69adff64e65f01fcd2faf02f4d6ab00c1f4920a20000000049454e44ae426082</data>
</image>
</images>
<layoutdefaults spacing="6" margin="11"/>
Copied: trunk/source/python/AvidaGui2/pyHardwareCPUTrace.py (from rev 137, branches/developers/kaben-organism-scope/source/python/AvidaGui2/pyHardwareCPUTrace.py)
Modified: trunk/source/python/AvidaGui2/pyOneOrg_ScopeView.ui
===================================================================
--- trunk/source/python/AvidaGui2/pyOneOrg_ScopeView.ui 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyOneOrg_ScopeView.ui 2005-04-13 09:32:08 UTC (rev 138)
@@ -26,6 +26,14 @@
<property name="name">
<cstring>m_organism_scope_ctrl</cstring>
</property>
+ <property name="sizePolicy">
+ <sizepolicy>
+ <hsizetype>5</hsizetype>
+ <vsizetype>3</vsizetype>
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
</widget>
<widget class="QSlider">
<property name="name">
@@ -104,7 +112,7 @@
</sizehint>
<container>0</container>
<sizepolicy>
- <hordata>5</hordata>
+ <hordata>0</hordata>
<verdata>0</verdata>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
@@ -113,6 +121,8 @@
<property type="0">3</property>
<property type="1">pyAnalyzeControlsCtrl</property>
<property type="3">-1</property>
+ <property type="1">pyAnalyzeControlsCtrl</property>
+ <property type="3">-1</property>
<property type="pyAnalyzeControlsCtrl"></property>
<property type="-1">1</property>
</customwidget>
Modified: trunk/source/python/AvidaGui2/pyOneOrganismView.ui
===================================================================
--- trunk/source/python/AvidaGui2/pyOneOrganismView.ui 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyOneOrganismView.ui 2005-04-13 09:32:08 UTC (rev 138)
@@ -12,7 +12,7 @@
<x>0</x>
<y>0</y>
<width>613</width>
- <height>510</height>
+ <height>434</height>
</rect>
</property>
<property name="caption">
@@ -151,54 +151,14 @@
<hsizetype>5</hsizetype>
<vsizetype>3</vsizetype>
<horstretch>0</horstretch>
- <verstretch>1</verstretch>
+ <verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
- <widget class="pyTimelineCtrl">
- <property name="name">
- <cstring>pyTimelineCtrl3</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>3</hsizetype>
- <vsizetype>3</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>1</verstretch>
- </sizepolicy>
- </property>
- </widget>
</vbox>
</widget>
<customwidgets>
<customwidget>
- <class>pyTimelineCtrl</class>
- <header location="global">1</header>
- <sizehint>
- <width>-1</width>
- <height>0</height>
- </sizehint>
- <container>0</container>
- <sizepolicy>
- <hordata>0</hordata>
- <verdata>0</verdata>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- <pixmap>image2</pixmap>
- <property type="0">3</property>
- <property type="1">pyTimelineCtrl</property>
- <property type="3">-1</property>
- <property type="1">pyTimelineCtrl</property>
- <property type="3">-1</property>
- <property type="1">pyTimelineCtrl</property>
- <property type="4">-1</property>
- <property type="1">pyTimelineCtrl</property>
- <property type="4">-1</property>
- <property type="pyTimelineCtrl"></property>
- <property type="-1">1</property>
- </customwidget>
- <customwidget>
<class>pyOneOrg_ScopeCtrl</class>
<header location="local">1</header>
<sizehint>
@@ -229,6 +189,5 @@
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>pyoneorg_scopectrl.h</includehint>
- <includehint>pytimelinectrl.h</includehint>
</includehints>
</UI>
Modified: trunk/source/python/AvidaGui2/pyOrganismScopeCtrl.py
===================================================================
--- trunk/source/python/AvidaGui2/pyOrganismScopeCtrl.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyOrganismScopeCtrl.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -2,8 +2,10 @@
from pyOrganismScopeView import pyOrganismScopeView
-import AvidaCore
+from AvidaCore import cAnalyzeGenotype, cGenome, cInstruction, cInstUtil, cString
+from pyHardwareTracer import pyHardwareTracer
+
from qt import *
import os
@@ -33,148 +35,185 @@
if(old_avida): del old_avida
def setDebugOrganismFileSlot(self, organism_filename):
+ print "pyOrganismScopeCtrl.setDebugOrganismFileSlot"
if self.m_avida:
- # Analysis files.
- genebank_dirname = self.m_session_mdl.m_tempdir
- organism_file_basename = os.path.basename(str(organism_filename))
- analyze_filename = '%s/organism_analyze.cfg' % self.m_session_mdl.m_tempdir
- trace_filename = '%s/%s.trace' % (genebank_dirname, organism_file_basename)
- genotype_filename = '%s/%s.gen' % (genebank_dirname, organism_file_basename)
+ inst_set = self.m_avida.m_environment.GetInstSet()
+ genome = cGenome(cInstUtil.LoadGenome(cString(organism_filename.ascii()), inst_set) )
+ analyze_genotype = cAnalyzeGenotype(genome, inst_set)
+ hardware_tracer = pyHardwareTracer()
+ hardware_tracer.traceAnalyzeGenotype(analyze_genotype, self.m_avida.m_environment, should_use_resources = False)
- # Analysis results files.
- is_viable_info_filename = '%s/is_viable.info' % self.m_session_mdl.m_tempdir
- gestation_time_info_filename = '%s/gestation_time.info' % self.m_session_mdl.m_tempdir
- fitness_info_filename = '%s/fitness.info' % self.m_session_mdl.m_tempdir
- size_info_filename = '%s/size.info' % self.m_session_mdl.m_tempdir
- genome_info_filename = '%s/genome.info' % self.m_session_mdl.m_tempdir
- tasks_info_filename = '%s/tasks.info' % self.m_session_mdl.m_tempdir
- ihead_info_filename = '%s/ihead.info' % self.m_session_mdl.m_tempdir
- rhead_info_filename = '%s/rhead.info' % self.m_session_mdl.m_tempdir
- whead_info_filename = '%s/whead.info' % self.m_session_mdl.m_tempdir
- fhead_info_filename = '%s/fhead.info' % self.m_session_mdl.m_tempdir
+ for i in range(len(hardware_tracer.m_hardware_trace.m_genome_info)):
+ print "step %d:" % i,
+ print " genome", hardware_tracer.m_hardware_trace.m_genome_info[i]
+ #print " ihead", hardware_tracer.m_hardware_trace.m_ihead_info[i]
+ #print " rhead", hardware_tracer.m_hardware_trace.m_rhead_info[i]
+ #print " whead", hardware_tracer.m_hardware_trace.m_whead_info[i]
+ #print " fhead", hardware_tracer.m_hardware_trace.m_fhead_info[i]
+ #print " ax", hardware_tracer.m_hardware_trace.m_register_ax_info[i]
+ #print " bx", hardware_tracer.m_hardware_trace.m_register_bx_info[i]
+ #print " cx", hardware_tracer.m_hardware_trace.m_register_cx_info[i]
+ #print " read_label", hardware_tracer.m_hardware_trace.m_read_label_info[i]
+ print " last_copy", hardware_tracer.m_hardware_trace.m_last_copy_info[i]
- # Create a temporary analyze file using organism file name.
- analyze_file = open(analyze_filename, 'w')
- analyze_file.write('LOAD_ORGANISM %s\n' % organism_filename)
- analyze_file.write('RECALCULATE\n')
- analyze_file.write('TRACE %s\n' % genebank_dirname)
- analyze_file.write('PRINT %s\n' % genebank_dirname)
- analyze_file.close()
+ #print " tasks:"
+ #for j in range(hardware_tracer.m_hardware_trace.m_tasks_info[i].GetSize()):
+ # print " %d" % j, hardware_tracer.m_hardware_trace.m_tasks_info[i][j]
- # Create an analyze object using the temporary analyze file and
- # the environment of the current avida object.
- AvidaCore.cConfig.SetAnalyzeFilename(AvidaCore.cString(analyze_filename))
- avida_driver_analyze = AvidaCore.cAvidaDriver_Analyze(
- False, self.m_avida.m_environment)
- avida_driver_analyze.Run()
+ print "is_viable", hardware_tracer.m_hardware_trace.m_is_viable
+ print "gestation_time", hardware_tracer.m_hardware_trace.m_gestation_time
+ print "fitness", hardware_tracer.m_hardware_trace.m_fitness
+ print "size", hardware_tracer.m_hardware_trace.m_size
- # Extract organism viability, gestation time, fitness, and size numbers.
- os.system( 'cat ' + genotype_filename + ' | grep Is | grep Viable | cut -d\ -f4-20 > ' + is_viable_info_filename)
- os.system( 'cat ' + genotype_filename + ' | grep Gestation | cut -d\ -f4-20 > ' + gestation_time_info_filename)
- os.system( 'cat ' + genotype_filename + ' | grep Fitness | cut -d\ -f4-20 > ' + fitness_info_filename)
- os.system( 'cat ' + genotype_filename + ' | grep Genome | cut -d\ -f4-20 > ' + size_info_filename)
- # Extract genome info.
- os.system( 'cat ' + trace_filename + ' | grep Mem | cut -d\ -f6 > ' + genome_info_filename)
- # Extract the tasks done at each point in execution.
- os.system( 'cat ' + trace_filename + ' | grep Task | cut -d\ -f9-17 > ' + tasks_info_filename)
- # Extract the instruction pointer locations from the trace file.
- os.system( 'cat ' + trace_filename + ' | grep IP | cut -d\ -f2 | cut -b4-7 > ' + ihead_info_filename)
- # Extract the read/write/flow head info.
- os.system( 'cat ' + trace_filename + ' | grep "R-Head" | cut -d\ -f3 | cut -d\: -f2 > ' + rhead_info_filename)
- os.system( 'cat ' + trace_filename + ' | grep "W-Head" | cut -d\ -f4 | cut -d\: -f2 > ' + whead_info_filename)
- os.system( 'cat ' + trace_filename + ' | grep "F-Head" | cut -d\ -f5 | cut -d\: -f2 > ' + fhead_info_filename)
- # Load organism viability, gestation time, fitness, and size.
- def load_info(info_filename):
- info_file = file(info_filename, 'rU')
- info = info_file.read()
- info_file.close()
- return info.strip()
-
- ( is_viable_info_string,
- gestation_time_info_string,
- fitness_info_string,
- size_info_string,
- ) = [load_info(info_filename) for info_filename in (
- is_viable_info_filename,
- gestation_time_info_filename,
- fitness_info_filename,
- size_info_filename,)]
- is_viable_info = bool(int(is_viable_info_string))
- gestation_time_info = int(gestation_time_info_string)
- fitness_info = float(fitness_info_string)
- size_info = int(size_info_string)
-
- # Load genome, tasks, and heads at each point in execution.
- def load_info_lines(info_filename):
- info_file = file(info_filename, 'rU')
- info_lines = info_file.readlines()
- info_file.close()
- return [info_line.strip() for info_line in info_lines]
-
- ( genome_info,
- tasks_info_strings,
- ihead_info_strings,
- rhead_info_strings,
- whead_info_strings,
- fhead_info_strings,
- ) = [load_info_lines(info_filename) for info_filename in (
- genome_info_filename,
- tasks_info_filename,
- ihead_info_filename,
- rhead_info_filename,
- whead_info_filename,
- fhead_info_filename,)]
- tasks_info = [[bool(int(task)) for task in tasks] for tasks in [line.split() for line in tasks_info_strings]]
- ihead_info = [int(line) for line in ihead_info_strings]
- rhead_info = [int(line) for line in rhead_info_strings]
- whead_info = [int(line) for line in whead_info_strings]
- fhead_info = [int(line) for line in fhead_info_strings]
-
- class pyMdl: pass
- frames = pyMdl()
- frames.m_is_viable = is_viable_info
- frames.m_gestation_time = gestation_time_info
- frames.m_fitness = fitness_info
- frames.m_size = size_info
- frames.m_genome_info = genome_info
- frames.m_tasks_info = tasks_info
- frames.m_ihead_info = ihead_info
- frames.m_rhead_info = rhead_info
- frames.m_whead_info = whead_info
- frames.m_fhead_info = fhead_info
-
- # Delete analyze files and analysis results files.
- #for filename in (
- # analyze_filename,
- # trace_filename,
- # genotype_filename,
- # is_viable_info_filename,
- # gestation_time_info_filename,
- # fitness_info_filename,
- # size_info_filename,
- # genome_info_filename,
- # tasks_info_filename,
- # ihead_info_filename,
- # rhead_info_filename,
- # whead_info_filename,
- # fhead_info_filename,
- #):
- # os.remove(filename)
-
# Translate from string genome representation to actual command names.
inst_names = {}
inst_set = self.m_avida.m_environment.GetInstSet()
- instruction = AvidaCore.cInstruction()
+ instruction = cInstruction()
for id in range(inst_set.GetSize()):
instruction.SetOp(id)
inst_names[instruction.GetSymbol()] = str(inst_set.GetName(instruction))
self.setInstNames(inst_names)
- self.setFrames(frames)
+ self.setFrames(hardware_tracer.m_hardware_trace)
- # load task info
- # determine points at which tasks appear, both in genome and
- # frame number
+ # Organism viability.
+
+ # Gestation time.
+
+ # Fitness.
+
+ # Genome frames.
+ # Position of last-used instruction. Before allocate, this is
+ # the position of the last instruction of the organism. After
+ # allocate, at each frame this is the position of the final
+ # copied instruction. Usually as each new instructions is copied
+ # it becomes the final copied instruction in the genome. I'm
+ # tracking this information because I want to animate addition
+ # of new instructions at the end of the genome as the organism
+ # copies itself.
+
+ # Task frames.
+
+ # Head positions at each frame.
+
pass
+ #if self.m_avida:
+ # # Analysis files.
+ # genebank_dirname = self.m_session_mdl.m_tempdir
+ # organism_file_basename = os.path.basename(str(organism_filename))
+ # analyze_filename = '%s/organism_analyze.cfg' % self.m_session_mdl.m_tempdir
+ # trace_filename = '%s/%s.trace' % (genebank_dirname, organism_file_basename)
+ # genotype_filename = '%s/%s.gen' % (genebank_dirname, organism_file_basename)
+
+ # # Analysis results files.
+ # is_viable_info_filename = '%s/is_viable.info' % self.m_session_mdl.m_tempdir
+ # gestation_time_info_filename = '%s/gestation_time.info' % self.m_session_mdl.m_tempdir
+ # fitness_info_filename = '%s/fitness.info' % self.m_session_mdl.m_tempdir
+ # size_info_filename = '%s/size.info' % self.m_session_mdl.m_tempdir
+ # genome_info_filename = '%s/genome.info' % self.m_session_mdl.m_tempdir
+ # tasks_info_filename = '%s/tasks.info' % self.m_session_mdl.m_tempdir
+ # ihead_info_filename = '%s/ihead.info' % self.m_session_mdl.m_tempdir
+ # rhead_info_filename = '%s/rhead.info' % self.m_session_mdl.m_tempdir
+ # whead_info_filename = '%s/whead.info' % self.m_session_mdl.m_tempdir
+ # fhead_info_filename = '%s/fhead.info' % self.m_session_mdl.m_tempdir
+
+ # # Create a temporary analyze file using organism file name.
+ # analyze_file = open(analyze_filename, 'w')
+ # analyze_file.write('LOAD_ORGANISM %s\n' % organism_filename)
+ # analyze_file.write('RECALCULATE\n')
+ # analyze_file.write('TRACE %s\n' % genebank_dirname)
+ # analyze_file.write('PRINT %s\n' % genebank_dirname)
+ # analyze_file.close()
+
+ # # Create an analyze object using the temporary analyze file and
+ # # the environment of the current avida object.
+ # AvidaCore.cConfig.SetAnalyzeFilename(AvidaCore.cString(analyze_filename))
+ # avida_driver_analyze = AvidaCore.cAvidaDriver_Analyze(False, self.m_avida.m_environment)
+ # avida_driver_analyze.Run()
+
+ # # Extract organism viability, gestation time, fitness, and size numbers.
+ # os.system( 'cat ' + genotype_filename + ' | grep Is | grep Viable | cut -d\ -f4-20 > ' + is_viable_info_filename)
+ # os.system( 'cat ' + genotype_filename + ' | grep Gestation | cut -d\ -f4-20 > ' + gestation_time_info_filename)
+ # os.system( 'cat ' + genotype_filename + ' | grep Fitness | cut -d\ -f4-20 > ' + fitness_info_filename)
+ # os.system( 'cat ' + genotype_filename + ' | grep Genome | cut -d\ -f4-20 > ' + size_info_filename)
+ # # Extract genome info.
+ # os.system( 'cat ' + trace_filename + ' | grep Mem | cut -d\ -f6 > ' + genome_info_filename)
+ # # Extract the tasks done at each point in execution.
+ # os.system( 'cat ' + trace_filename + ' | grep Task | cut -d\ -f9-17 > ' + tasks_info_filename)
+ # # Extract the instruction pointer locations from the trace file.
+ # os.system( 'cat ' + trace_filename + ' | grep IP | cut -d\ -f2 | cut -b4-7 > ' + ihead_info_filename)
+ # # Extract the read/write/flow head info.
+ # os.system( 'cat ' + trace_filename + ' | grep "R-Head" | cut -d\ -f3 | cut -d\: -f2 > ' + rhead_info_filename)
+ # os.system( 'cat ' + trace_filename + ' | grep "W-Head" | cut -d\ -f4 | cut -d\: -f2 > ' + whead_info_filename)
+ # os.system( 'cat ' + trace_filename + ' | grep "F-Head" | cut -d\ -f5 | cut -d\: -f2 > ' + fhead_info_filename)
+
+ # # Load organism viability, gestation time, fitness, and size.
+ # def load_info(info_filename):
+ # info_file = file(info_filename, 'rU')
+ # info = info_file.read()
+ # info_file.close()
+ # return info.strip()
+
+ # ( is_viable_info_string,
+ # gestation_time_info_string,
+ # fitness_info_string,
+ # size_info_string,
+ # ) = [load_info(info_filename) for info_filename in (
+ # is_viable_info_filename,
+ # gestation_time_info_filename,
+ # fitness_info_filename,
+ # size_info_filename,)]
+ # is_viable_info = bool(int(is_viable_info_string))
+ # gestation_time_info = int(gestation_time_info_string)
+ # fitness_info = float(fitness_info_string)
+ # size_info = int(size_info_string)
+
+ # # Load genome, tasks, and heads at each point in execution.
+ # def load_info_lines(info_filename):
+ # info_file = file(info_filename, 'rU')
+ # info_lines = info_file.readlines()
+ # info_file.close()
+ # return [info_line.strip() for info_line in info_lines]
+
+ # ( genome_info,
+ # tasks_info_strings,
+ # ihead_info_strings,
+ # rhead_info_strings,
+ # whead_info_strings,
+ # fhead_info_strings,
+ # ) = [load_info_lines(info_filename) for info_filename in (
+ # genome_info_filename,
+ # tasks_info_filename,
+ # ihead_info_filename,
+ # rhead_info_filename,
+ # whead_info_filename,
+ # fhead_info_filename,)]
+ # tasks_info = [[bool(int(task)) for task in tasks] for tasks in [line.split() for line in tasks_info_strings]]
+ # ihead_info = [int(line) for line in ihead_info_strings]
+ # rhead_info = [int(line) for line in rhead_info_strings]
+ # whead_info = [int(line) for line in whead_info_strings]
+ # fhead_info = [int(line) for line in fhead_info_strings]
+
+ # # Delete analyze files and analysis results files.
+ # #for filename in (
+ # # analyze_filename,
+ # # trace_filename,
+ # # genotype_filename,
+ # # is_viable_info_filename,
+ # # gestation_time_info_filename,
+ # # fitness_info_filename,
+ # # size_info_filename,
+ # # genome_info_filename,
+ # # tasks_info_filename,
+ # # ihead_info_filename,
+ # # rhead_info_filename,
+ # # whead_info_filename,
+ # # fhead_info_filename,
+ # #):
+ # # os.remove(filename)
+
+ # # load task info
+ # # determine points at which tasks appear, both in genome and
+ # # frame number
Modified: trunk/source/python/AvidaGui2/pyOrganismScopeView.py
===================================================================
--- trunk/source/python/AvidaGui2/pyOrganismScopeView.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyOrganismScopeView.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -1,10 +1,10 @@
# -*- coding: utf-8 -*-
-from qt import *
-from qtcanvas import *
+from qt import PYSIGNAL, QFont, QFontMetrics, QScrollView, QWMatrix
+from qtcanvas import QCanvas, QCanvasView, QCanvasText
+import math
-
class pyOrganismScopeView(QCanvasView):
def __init__(self,parent = None,name = None,fl = 0):
QCanvasView.__init__(self,parent,name,fl)
@@ -14,9 +14,23 @@
self.setHScrollBarMode(QScrollView.AlwaysOff)
self.m_canvas = QCanvas()
self.setCanvas(self.m_canvas)
+
+ font = QFont(self.font())
+ font_metrics = QFontMetrics(font)
+ self.m_font_points_per_pixel = font.pointSizeFloat()/font_metrics.height()
+
+ self.m_organism_circle_margin = 10
+ self.m_font_oversize_factor = 1.2
+
+ self.m_visible_width = 0
+ self.m_visible_height = 0
+
self.reset()
def reset(self):
+ if hasattr(self, "m_instruction_items") and self.m_instruction_items is not None:
+ for instruction_item in self.m_instruction_items:
+ instruction_item.setCanvas(None)
self.m_instruction_items = None
self.m_task_items = None
self.m_ihead_item = None
@@ -56,24 +70,49 @@
if self.m_frames.m_genome_info is not None:
self.m_max_genome_size = max([len(genome) for genome in self.m_frames.m_genome_info])
self.m_instruction_items = [QCanvasText(self.m_canvas) for i in range(self.m_max_genome_size)]
+ self.emit(PYSIGNAL("gestationTimeChangedSig"),(self.m_frames.m_gestation_time,))
self.updateCircle()
- self.emit(PYSIGNAL("gestationTimeChangedSig"),(self.m_frames.m_gestation_time,))
self.showFrame(0)
- def resizeEvent(self, resize_event):
- new_size = resize_event.size()
- self.m_canvas.resize(new_size.width(), new_size.height())
- QCanvasView.resizeEvent(self, resize_event)
+ def viewportResizeEvent(self, resize_event):
+ QCanvasView.viewportResizeEvent(self, resize_event)
+ # XXX Fragility: If the top-level Avida-ED window is allowed to change height, this is going to cause a painful slow-down
+ # whenever the window height changes. But having chosen a fixed window height, we're okay for now.
+ #
+ # @kgn
+ if self.m_visible_height != resize_event.size().height() or self.m_visible_width != resize_event.size().width():
+ self.m_canvas.resize(resize_event.size().width(), resize_event.size().height())
+ self.m_visible_width = resize_event.size().width()
+ self.m_visible_height = resize_event.size().height()
+ self.updateCircle()
+ self.showFrame(self.m_current_frame_number)
def updateCircle(self):
+ self.m_circle_center_x = self.m_visible_width / 2
+ self.m_circle_center_y = self.m_visible_height / 2
+ self.m_max_circle_radius = (self.m_visible_height / 2) - self.m_organism_circle_margin
if self.m_instruction_items is not None:
- x = 0
+ text_height = 2 * 3.14159 * self.m_max_circle_radius / self.m_max_genome_size
+ font = QFont(self.font())
+ font.setPointSizeFloat(self.m_font_oversize_factor * text_height * self.m_font_points_per_pixel)
for instruction_item in self.m_instruction_items:
- x += 5
- instruction_item.setX(x)
- instruction_item.setY(100)
- instruction_item.setText('@')
- instruction_item.hide()
+ instruction_item.setFont(font)
+ self.m_circles = []
+ for frame_no in range(self.m_frames.m_gestation_time):
+ organism_current_size = max(self.m_frames.m_last_copy_info[frame_no] + 1, self.m_frames.m_size)
+ circumference = text_height * organism_current_size
+ radius = circumference / (2 * 3.14159)
+ dt = 2 * 3.14159 / (organism_current_size + 1)
+ angle_offset = 3.14159 / 2
+ circle_pts = []
+ for i in range(organism_current_size):
+ theta = i * dt + angle_offset
+ c = math.cos(theta)
+ s = -math.sin(theta)
+ x = radius * c + self.m_circle_center_x
+ y = radius * s + self.m_circle_center_y
+ circle_pts.append((x,y))
+ self.m_circles.append(circle_pts)
def showFrame(self, frame_number = 0):
old_frame_number = self.m_current_frame_number
@@ -96,27 +135,39 @@
self.m_current_frame_number = frame_number
if self.m_frames.m_genome_info is not None:
self.m_current_genome = self.m_frames.m_genome_info[frame_number]
+ circle_pts = self.m_circles[self.m_current_frame_number]
if old_genome is None:
+ displayed_genome_size = max(self.m_frames.m_last_copy_info[self.m_current_frame_number], self.m_frames.m_size)
# Update all instruction_items.
- for i in range(len(self.m_current_genome)):
- self.m_instruction_items[i].setText(self.m_current_genome[i])
- self.m_instruction_items[i].show()
+ for i in range(displayed_genome_size):
+ instruction_item = self.m_instruction_items[i]
+ instruction_item.setX(circle_pts[i][0])
+ instruction_item.setY(circle_pts[i][1])
+ instruction_item.setText(self.m_current_genome[i])
+ instruction_item.show()
else:
# Update changed instruction_items.
- old_length = len(old_genome)
- new_length = len(self.m_current_genome)
+ old_length = max(self.m_frames.m_last_copy_info[old_frame_number] + 1, self.m_frames.m_size)
+ new_length = max(self.m_frames.m_last_copy_info[self.m_current_frame_number] + 1, self.m_frames.m_size)
compare_max = min(old_length, new_length)
range_end = max(old_length, new_length)
for i in range(compare_max):
+ instruction_item = self.m_instruction_items[i]
+ instruction_item.setX(circle_pts[i][0])
+ instruction_item.setY(circle_pts[i][1])
if old_genome[i] == self.m_current_genome[i]:
pass
else:
- self.m_instruction_items[i].setText(self.m_current_genome[i])
+ #self.m_instruction_items[i].setText(self.m_current_genome[i])
+ instruction_item.setText(self.m_current_genome[i])
if old_length < new_length:
for i in range(compare_max, range_end):
- self.m_instruction_items[i].setText(self.m_current_genome[i])
- self.m_instruction_items[i].show()
+ instruction_item = self.m_instruction_items[i]
+ instruction_item.setX(circle_pts[i][0])
+ instruction_item.setY(circle_pts[i][1])
+ instruction_item.setText(self.m_current_genome[i])
+ instruction_item.show()
else:
for i in range(compare_max, range_end):
self.m_instruction_items[i].hide()
Modified: trunk/source/python/AvidaGui2/pyPetriCanvasView.py
===================================================================
--- trunk/source/python/AvidaGui2/pyPetriCanvasView.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyPetriCanvasView.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -8,8 +8,9 @@
def contentsMousePressEvent(self,e): # QMouseEvent e
if e.button() != Qt.LeftButton: return
point = self.inverseWorldMatrix().map(e.pos())
- ilist = self.canvas().collisions(point) #QCanvasItemList ilist
- for item in ilist:
- if item.rtti()==271828:
- self.emit(PYSIGNAL("orgClickedOnSig"), (item.m_population_cell.GetID(),))
+ if self.canvas():
+ ilist = self.canvas().collisions(point) #QCanvasItemList ilist
+ for item in ilist:
+ if item.rtti()==271828:
+ self.emit(PYSIGNAL("orgClickedOnSig"), (item.m_population_cell.GetID(),))
Modified: trunk/source/python/AvidaGui2/pyPetriDishCtrl.py
===================================================================
--- trunk/source/python/AvidaGui2/pyPetriDishCtrl.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyPetriDishCtrl.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -10,8 +10,8 @@
from AvidaCore import cConfig
from math import exp
-from qt import Qt, QWidget, QSize, QVBoxLayout, QLayout, QColor, QWMatrix, PYSIGNAL
-from qtcanvas import QCanvas
+from qt import PYSIGNAL, QBrush, QColor, QLayout, QPen, QSize, Qt, QVBoxLayout, QWidget, QWMatrix
+from qtcanvas import QCanvas, QCanvasRectangle
from pyPetriCanvasView import pyPetriCanvasView
from pyPopulationCellItem import pyPopulationCellItem
#from pyPetriDishView import pyPetriDishView
@@ -39,6 +39,7 @@
self.m_changed_cell_items = []
self.m_indexer = None
self.m_color_lookup_functor = None
+ self.m_background_rect = None
self.connect( self.m_session_mdl.m_session_mdtr, PYSIGNAL("setAvidaSig"), self.setAvidaSlot)
self.connect( self.m_canvas_view, PYSIGNAL("orgClickedOnSig"), self.m_session_mdl.m_session_mdtr, PYSIGNAL("orgClickedOnSig"))
@@ -62,7 +63,14 @@
if self.m_canvas: del self.m_canvas
self.m_canvas = QCanvas(self.m_map_cell_w * world_w, self.m_map_cell_h * world_h)
+ self.m_canvas.setBackgroundColor(Qt.darkGray)
self.m_canvas_view.setCanvas(self.m_canvas)
+ if self.m_background_rect: del self.m_background_rect
+ self.m_background_rect = QCanvasRectangle(0, 0, self.m_map_cell_w * world_w, self.m_map_cell_h * world_h, self.m_canvas)
+ self.m_background_rect.setBrush(QBrush(Qt.black))
+ self.m_background_rect.setPen(QPen(Qt.black))
+ self.m_background_rect.show()
+ self.m_background_rect.setZ(0.0)
if self.m_cell_info: del self.m_cell_info
self.m_cell_info = [pyPopulationCellItem(
Modified: trunk/source/python/AvidaGui2/pyPopulationCellItem.py
===================================================================
--- trunk/source/python/AvidaGui2/pyPopulationCellItem.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyPopulationCellItem.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,6 +5,7 @@
class pyPopulationCellItem(QCanvasRectangle):
s_empty_color = QColor(Qt.black)
+ s_null_pen = QPen(Qt.NoPen)
def rtti(self):
return 271828
@@ -14,6 +15,8 @@
self.m_population_cell = population_cell
self.m_index = 0
self.show()
+ self.setZ(1.0 + population_cell.GetID())
+ self.setPen(self.s_null_pen)
def checkNormalizedIndexUsingFunctor(self, functor, min, range):
index = 1.0
@@ -30,5 +33,4 @@
def updateColorUsingFunctor(self, functor):
color = (self.m_population_cell.IsOccupied() and functor) and functor(self.m_index) or self.s_empty_color
self.setBrush(QBrush(color))
- self.setPen(QPen(color))
Modified: trunk/source/python/AvidaGui2/pyTemporaryReloads.py
===================================================================
--- trunk/source/python/AvidaGui2/pyTemporaryReloads.py 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/AvidaGui2/pyTemporaryReloads.py 2005-04-13 09:32:08 UTC (rev 138)
@@ -54,6 +54,8 @@
"AvidaGui2.pyGradientScaleCtrl",
"AvidaGui2.pyGraphView",
"AvidaGui2.pyGraphCtrl",
+ "AvidaGui2.pyHardwareCPUTrace",
+ "AvidaGui2.pyHardwareTracer",
"AvidaGui2.pyInstructionSet",
"AvidaGui2.pyLiveControlsView",
"AvidaGui2.pyLiveControlsCtrl",
Modified: trunk/source/python/CMakeLists.txt
===================================================================
--- trunk/source/python/CMakeLists.txt 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/CMakeLists.txt 2005-04-13 09:32:08 UTC (rev 138)
@@ -21,21 +21,21 @@
IF(UNIX)
IF(APPLE)
- CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/AvidaEd-osx.py ${CMAKE_CURRENT_BINARY_DIR}/AvidaEd.py COPYONLY)
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/AvidaEd-osx.py ${CMAKE_CURRENT_BINARY_DIR}/Avida-ED.py COPYONLY)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/setup_osx.py.in ${CMAKE_CURRENT_BINARY_DIR}/setup.py)
# CMake custom targets often produce strange and idiosyncratic
# output in Makefiles, and this has become a real pain. I would
# like a different build system again.
# @kgn
- ADD_CUSTOM_TARGET(BUILD_AvidaEd ALL DEPENDS ${EXECUTABLE_OUTPUT_PATH}/AvidaEd.app)
+ ADD_CUSTOM_TARGET(BUILD_AvidaEd ALL DEPENDS ${EXECUTABLE_OUTPUT_PATH}/Avida-ED.app)
#ADD_CUSTOM_TARGET(
# ${CMAKE_CURRENT_BINARY_DIR}/build
# ALL
# DEPENDS ${EXECUTABLE_OUTPUT_PATH}/AvidaEd.app/Contents/MacOS/AvidaEd
#)
ADD_CUSTOM_COMMAND(
- OUTPUT ${EXECUTABLE_OUTPUT_PATH}/AvidaEd.app
+ OUTPUT ${EXECUTABLE_OUTPUT_PATH}/Avida-ED.app
COMMAND ${PYTHON_EXE}
DEPENDS ${LIBRARY_OUTPUT_PATH}/libPyAvidaRepairHacks.dylib
ARGS setup.py py2app
Modified: trunk/source/python/setup_osx.py.in
===================================================================
--- trunk/source/python/setup_osx.py.in 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/python/setup_osx.py.in 2005-04-13 09:32:08 UTC (rev 138)
@@ -47,6 +47,7 @@
includes = ['iqt', 'qt', 'qwt', 'readline', 'unittest', 'IPython', 'AvidaGui2', 'AvidaCore'],
packages = ['IPython', 'AvidaGui2'],
dist_dir = '${EXECUTABLE_OUTPUT_PATH}',
+ strip = False,
)
),
data_files=[
@@ -70,3 +71,9 @@
+ svn_metadata_files,
)
+print """
+FIXME:
+Remember to reenable symbol stripping by commenting-out the option "strip = False"
+at line 51 of source/python/setup_osx.py.in.
+ at kgn
+"""
Modified: trunk/source/tools/const_schedule.cc
===================================================================
--- trunk/source/tools/const_schedule.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/tools/const_schedule.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,14 +5,11 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef CONST_SCHEDULE_HH
#include "const_schedule.hh"
-#endif
-#ifndef MERIT_HH
#include "merit.hh"
-#endif
+
////////////////////
// cConstSchedule
////////////////////
Modified: trunk/source/tools/integrated_schedule.cc
===================================================================
--- trunk/source/tools/integrated_schedule.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/tools/integrated_schedule.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,20 +5,13 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef INTEGRATED_SCHEDULE_HH
#include "integrated_schedule.hh"
-#endif
-#ifndef FUNCTIONS_HH
#include "functions.hh"
-#endif
-#ifndef INTEGRATED_SCHEDULE_NODE_HH
#include "integrated_schedule_node.hh"
-#endif
-#ifndef MERIT_HH
#include "merit.hh"
-#endif
+
/////////////////////////
// cIntegratedSchedule
/////////////////////////
Modified: trunk/source/tools/prob_schedule.cc
===================================================================
--- trunk/source/tools/prob_schedule.cc 2005-04-13 00:32:18 UTC (rev 137)
+++ trunk/source/tools/prob_schedule.cc 2005-04-13 09:32:08 UTC (rev 138)
@@ -5,17 +5,12 @@
// before continuing. SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE. //
//////////////////////////////////////////////////////////////////////////////
-#ifndef PROB_SCHEDULE_HH
#include "prob_schedule.hh"
-#endif
-#ifndef MERIT_HH
#include "merit.hh"
-#endif
-#ifndef TOOLS_HH
#include "tools.hh"
-#endif
+
///////////////////
// cProbSchedule
///////////////////
More information about the Avida-cvs
mailing list