ControlFunctions.hh
00001 // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー鄒、繧ッ繝ゥ繧ケ
00002 // 2011/03/31 Yuki YOKOKURA
00003 //
00004 // 螳滄圀縺ョ蛻カ蠕。繝励Ο繧ー繝ゥ繝�繧貞ョ溯。後@縺セ縺吶��
00005 //
00006 // Copyright (C) 2011 Yuki YOKOKURA
00007 // This program is free software;
00008 // you can redistribute it and/or modify it under the terms of the GNU General Public License
00009 // as published by the Free Software Foundation; either version 3 of the License, or any later version.
00010 // This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00011 // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00012 // See the GNU General Public License for more details <http://www.gnu.org/licenses/>.
00013 // Besides, you can negotiate about other options of licenses instead of GPL.
00014 // If you would like to get other licenses, please contact us<yuki@katsura.sd.keio.ac.jp>.
00015 
00016 #ifndef CONTROL_FUNCTIONS
00017 #define CONTROL_FUCNTIONS
00018 
00019 #include <math.h>
00020 #include "Parameters.hh"
00021 #include "PCI-3340.hh"
00022 #include "PCI-6205.hh"
00023 #include "DataStorage.hh"
00024 
00025 namespace ARCS {        // ARCS蜷榊燕遨コ髢�
00026         enum CtrlFuncMode {
00027                 CTRL_INIT,      // 蛻晄悄蛹悶Δ繝シ繝�
00028                 CTRL_LOOP,      // 蜻ィ譛溘Δ繝シ繝�
00029                 CTRL_EXIT       // 邨ゆコ�蜃ヲ逅�繝「繝シ繝�
00030         };
00031 
00032         class ControlFunctions {
00033                 private:
00034                         // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー鄒、
00035                         static void ControlFunction0(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー0
00036                         static void ControlFunction1(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー1
00037                         static void ControlFunction2(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー2
00038                         static void ControlFunction3(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー3
00039                         static void ControlFunction4(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー4
00040                         static void ControlFunction5(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー5
00041                         static void ControlFunction6(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー6
00042                         static void ControlFunction7(ControlFunctions* pCF);    // 蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー7
00043                         
00044                 public:
00045                         ControlFunctions();                                                                     // 繧ウ繝ウ繧ケ繝医Λ繧ッ繧ソ
00046                         ~ControlFunctions();                                                            // 繝�繧ケ繝医Λ繧ッ繧ソ
00047                         void InitialProcess();                                                          // 蛻晄悄蛹悶Δ繝シ繝峨�ョ螳溯。�
00048                         void ExitProcess();                                                                     // 邨ゆコ�蜃ヲ逅�繝「繝シ繝峨�ョ螳溯。�
00049                         void SaveDataFiles();                                                           // 繝�繝シ繧ソ繝輔ぃ繧、繝ォ縺ョ菫晏ュ�
00050                         void GetControlValue(VariableParams* VarParams);        // 蛻カ蠕。逕ィ螟画焚蛟、繧貞叙蠕励☆繧矩未謨ー
00051                         void (*pCFuncs[8])(ControlFunctions*);                          // 蜷�蛻カ蠕。逕ィ蜻ィ譛溷ョ溯。碁未謨ー縺ク縺ョ髢「謨ー繝昴う繝ウ繧ソ
00052         };
00053 }
00054 
00055 #endif
00056 
 All Classes Files