1 /*
2  *  cOrgSinkMessage.h
3  *  Avida
4  *
5  *  Created by David on 3/26/06.
6  *  Copyright 1999-2011 Michigan State University. All rights reserved.
7  *
8  *
9  *  This file is part of Avida.
10  *
11  *  Avida is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
12  *  as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
13  *
14  *  Avida is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public License along with Avida.
18  *  If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef cOrgSinkMessage_h
23 #define cOrgSinkMessage_h
24 
25 class cOrgSinkMessage
26 {
27 private:
28   int m_source_id;
29   int m_orig_val;
30   int m_actual_val;
31   bool m_validated;
32 
33 public:
cOrgSinkMessage()34   cOrgSinkMessage() : m_source_id(-1), m_orig_val(0), m_actual_val(0), m_validated(false) { ; }
cOrgSinkMessage(int source,int original,int actual)35   cOrgSinkMessage(int source, int original, int actual)
36     : m_source_id(source), m_orig_val(original), m_actual_val(actual), m_validated(false) { ; }
37 
GetSourceID()38   int GetSourceID() { return m_source_id; }
GetOriginalValue()39   int GetOriginalValue() { return m_orig_val; }
GetActualValue()40   int GetActualValue() { return m_actual_val; }
41 
SetValidated()42   void SetValidated() { m_validated = true; }
GetValidated()43   bool GetValidated() { return m_validated; }
44 };
45 
46 #endif
47