[Avida-cvs] [Avida2-svn] r131 - branches/developers/kaben-organism-scope/source/cpu

kaben at myxo.css.msu.edu kaben at myxo.css.msu.edu
Fri Apr 8 18:46:27 PDT 2005


Author: kaben
Date: 2005-04-08 21:46:27 -0400 (Fri, 08 Apr 2005)
New Revision: 131

Added:
   branches/developers/kaben-organism-scope/source/cpu/hardware_tracer.hh
   branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_4stack.hh
   branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_cpu.hh
   branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_test_cpu.hh
Log:

* Added classes cHardwareTracer, cHardwareTracer_4Stack,
  cHardwareTracer_CPU, and cHardwareTracer_TestCPU for generalizing
  tracing genotypes.



Added: branches/developers/kaben-organism-scope/source/cpu/hardware_tracer.hh
===================================================================
--- branches/developers/kaben-organism-scope/source/cpu/hardware_tracer.hh	2005-04-09 01:45:40 UTC (rev 130)
+++ branches/developers/kaben-organism-scope/source/cpu/hardware_tracer.hh	2005-04-09 01:46:27 UTC (rev 131)
@@ -0,0 +1,15 @@
+//////////////////////////////////////////////////////////////////////////////
+// Copyright (C) 1993 - 2004 California Institute of Technology             //
+//                                                                          //
+// Read the COPYING and README files, or contact 'avida at alife.org',         //
+// before continuing.  SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE.     //
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef HARDWARE_TRACER_HH
+#define HARDWARE_TRACER_HH
+
+struct cHardwareTracer {
+  virtual ~cHardwareTracer(){}
+};
+
+#endif

Added: branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_4stack.hh
===================================================================
--- branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_4stack.hh	2005-04-09 01:45:40 UTC (rev 130)
+++ branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_4stack.hh	2005-04-09 01:46:27 UTC (rev 131)
@@ -0,0 +1,17 @@
+//////////////////////////////////////////////////////////////////////////////
+// Copyright (C) 1993 - 2004 California Institute of Technology             //
+//                                                                          //
+// Read the COPYING and README files, or contact 'avida at alife.org',         //
+// before continuing.  SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE.     //
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef HARDWARE_TRACER_4STACK_HH
+#define HARDWARE_TRACER_4STACK_HH
+
+class cHardware4Stack;
+struct cHardwareTracer_4Stack {
+  virtual void TraceHardware_4Stack(cHardware4Stack &) = 0;
+  virtual void TraceHardware_4StackBonus(cHardware4Stack &) = 0;
+};
+
+#endif

Added: branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_cpu.hh
===================================================================
--- branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_cpu.hh	2005-04-09 01:45:40 UTC (rev 130)
+++ branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_cpu.hh	2005-04-09 01:46:27 UTC (rev 131)
@@ -0,0 +1,17 @@
+//////////////////////////////////////////////////////////////////////////////
+// Copyright (C) 1993 - 2004 California Institute of Technology             //
+//                                                                          //
+// Read the COPYING and README files, or contact 'avida at alife.org',         //
+// before continuing.  SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE.     //
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef HARDWARE_TRACER_CPU_HH
+#define HARDWARE_TRACER_CPU_HH
+
+class cHardwareCPU;
+struct cHardwareTracer_CPU {
+  virtual void TraceHardware_CPU(cHardwareCPU &) = 0;
+  virtual void TraceHardware_CPUBonus(cHardwareCPU &) = 0;
+};
+
+#endif

Added: branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_test_cpu.hh
===================================================================
--- branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_test_cpu.hh	2005-04-09 01:45:40 UTC (rev 130)
+++ branches/developers/kaben-organism-scope/source/cpu/hardware_tracer_test_cpu.hh	2005-04-09 01:46:27 UTC (rev 131)
@@ -0,0 +1,21 @@
+//////////////////////////////////////////////////////////////////////////////
+// Copyright (C) 1993 - 2004 California Institute of Technology             //
+//                                                                          //
+// Read the COPYING and README files, or contact 'avida at alife.org',         //
+// before continuing.  SOME RESTRICTIONS MAY APPLY TO USE OF THIS FILE.     //
+//////////////////////////////////////////////////////////////////////////////
+
+#ifndef HARDWARE_TRACER_TEST_CPU_HH
+#define HARDWARE_TRACER_TEST_CPU_HH
+
+class cOrganism;
+struct cHardwareTracer_TestCPU {
+  virtual void TraceHardware_TestCPU(
+    int time_used,
+    int time_allocated,
+    cOrganism &organism
+  ) = 0;
+};
+
+#endif
+




More information about the Avida-cvs mailing list