[Avida-cvs] [avida-svn] r560 - development/source/main

brysonda@myxo.css.msu.edu brysonda at myxo.css.msu.edu
Tue Apr 4 08:51:49 PDT 2006


Author: brysonda
Date: 2006-04-04 11:51:40 -0400 (Tue, 04 Apr 2006)
New Revision: 560

Removed:
   development/source/main/cReactionResult.H
Log:
Remove duplicate cReactionResult.H file

Deleted: development/source/main/cReactionResult.H
===================================================================
--- development/source/main/cReactionResult.H	2006-04-04 01:29:05 UTC (rev 559)
+++ development/source/main/cReactionResult.H	2006-04-04 15:51:40 UTC (rev 560)
@@ -1,71 +0,0 @@
-/*
- *  cReactionResult.h
- *  Avida
- *
- *  Created by David on 12/5/05.
- *  Copyright 2005-2006 Michigan State University. All rights reserved.
- *  Copyright 1993-2004 California Institute of Technology.
- *
- */
-
-#ifndef cReactionResult_h
-#define cReactionResult_h
-
-#ifndef tArray_h
-#include "tArray.h"
-#endif
-
-class cReactionResult {
-private:
-  tArray<double> resources_consumed;
-  tArray<double> resources_produced;
-  tArray<double> resources_detected;  //Initialize to -1.0
-  tArray<bool> tasks_done;
-  tArray<double> tasks_quality;
-  tArray<bool> receive_tasks_done;
-  tArray<bool> send_tasks_done;
-  tArray<bool> reactions_triggered;
-  double bonus_add;
-  double bonus_mult;
-  tArray<int> insts_triggered;
-  bool lethal;
-  bool active_reaction;
-
-
-  inline void ActivateReaction();
-  
-  cReactionResult(); // @not_implemented
-  cReactionResult(const cReactionResult&); // @not_implemented
-  cReactionResult& operator=(const cReactionResult&); // @not_implemented
-
-public:
-  cReactionResult(const int num_resources, const int num_tasks, const int num_reactions);
-  ~cReactionResult() { ; }
-
-  bool GetActive() { return active_reaction; }
-
-  void Consume(int id, double num);
-  void Produce(int id, double num);
-  void Detect(int id, double num);
-  void Lethal(bool flag);
-  void MarkTask(int id, const double quality=1);
-  void MarkReceiveTask(int id);
-  void MarkSendTask(int id);
-  void MarkReaction(int id);
-  void AddBonus(double value);
-  void MultBonus(double value);
-  void AddInst(int id);
-
-  double GetConsumed(int id);
-  double GetProduced(int id);
-  double GetDetected(int id);
-  bool GetLethal();
-  bool ReactionTriggered(int id);
-  bool TaskDone(int id);
-  double TaskQuality(int id);
-  double GetAddBonus() { return bonus_add; }
-  double GetMultBonus() { return bonus_mult; }
-  tArray<int>& GetInstArray() { return insts_triggered; }
-};
-
-#endif




More information about the Avida-cvs mailing list