00001 /***************************************************************************** 00002 * Copyright (C) 2011 by Benjamin Hadorn (b_hadorn@bluewin.ch) 00003 ***************************************************************************** 00004 * Project : Zeus Math Library 00005 * Module : INeuronalNetwork 00006 * Package : Zeus.ZeusMath.Intel.Interfaces 00007 * Author : Benjamin Hadorn 00008 * Date : 27.12.2011 00009 * System : Zeus-Framework 00010 ***************************************************************************** 00011 * Licence: * 00012 * This library is free software; you can redistribute it and/or modify * 00013 * it under the terms of the GNU Lesser General Public License as * 00014 * published by the Free Software Foundation; either version * 00015 * 2.1 of the License, or (at your option) any later version. * 00016 * * 00017 * This library is distributed in the hope that it will be useful, * 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00020 * GNU Lesser General Public License for more details. * 00021 * * 00022 * You should have received a copy of the GNU Lesser General Public * 00023 * License along with this library; if not, write to the Free Software * 00024 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA * 00025 *****************************************************************************/ 00026 00027 /***************************************************************************** 00028 * Changes: 00029 * 27.12.2011 bha: created zeus 2.0 00030 *****************************************************************************/ 00031 00032 #ifndef INeuronalNetworkHPP 00033 #define INeuronalNetworkHPP 00034 00035 #include <zeusmath/Intel/Interfaces/INeuron.hpp> 00036 #include <zeusbase/System/Interfaces/IList.hpp> 00037 #include <zeusbase/System/Interfaces/IString.hpp> 00038 #include <zeusbase/System/Interfaces/ISubject.hpp> 00039 00040 00041 BEGIN_NAMESPACE_Zeus 00042 00043 // {B573D8CC-88A6-4927-931E-01B4B29D9817} 00044 #define INTERFACE_INeuronalNetwork TIID(0xb573d8cc, 0x88a6, 0x4927, 0x93, 0x1e, 0x1, 0xb4, 0xb2, 0x9d, 0x98, 0x17) 00045 00046 /***************************************************************************/ 00050 /***************************************************************************/ 00051 class INeuronalNetwork : public ISubject 00052 { 00053 HIDE_ASSIGNMENT_OPERATOR(INeuronalNetwork) 00054 00055 public: 00056 /***********************************************************************/ 00060 /***********************************************************************/ 00061 virtual Retval MQUALIFIER addHiddenLayer(Int iNeuronCount) = 0; 00062 00063 /***********************************************************************/ 00067 /***********************************************************************/ 00068 virtual Retval MQUALIFIER createInputLayer(Int iNeuronCount) = 0; 00069 00070 /***********************************************************************/ 00074 /***********************************************************************/ 00075 virtual Retval MQUALIFIER createOutputLayer(Int iNeuronCount) = 0; 00076 00077 /***********************************************************************/ 00081 /***********************************************************************/ 00082 virtual void MQUALIFIER findFixed(const IList<bool>& rList) = 0; 00083 00084 /***********************************************************************/ 00088 /***********************************************************************/ 00089 virtual void MQUALIFIER getOutputActivity(IList<bool>& rList) const = 0; 00090 00091 /***********************************************************************/ 00094 /***********************************************************************/ 00095 virtual Int MQUALIFIER getLayerCount() const = 0; 00096 00097 /***********************************************************************/ 00101 /***********************************************************************/ 00102 virtual void MQUALIFIER setInputActivity(const IList<bool>& rList) = 0; 00103 00104 /***********************************************************************/ 00107 /***********************************************************************/ 00108 virtual void MQUALIFIER loadFromXML(const IString& rFileName)=0; 00109 00110 /***********************************************************************/ 00113 /***********************************************************************/ 00114 virtual void MQUALIFIER saveToXML() = 0; 00115 }; 00116 00117 00118 END_NAMESPACE_Zeus 00119 00120 00121 #endif 00122