Blame view

src/ExternLib/StatisticProcesses/AMDAPlugin.cc 6.85 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
/* -*- Base: 10 ; Mode: C++ -*- */
/*------------------------------------------------------------------------
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
3
4
5
 **	
                                FOST project
 **
fbe3c2bb   Benjamin Renard   First commit
6
7
--------------------------------------------------------------------------
--------------------------------------------------------------------------
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
8
9
                                FILE LOG
                $Revision: 1.3 $    $Date: 2012-06-15 13:04:42 $
fbe3c2bb   Benjamin Renard   First commit
10
11
--------------------------------------------------------------------------
CREATION
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
12
        V.SAC
fbe3c2bb   Benjamin Renard   First commit
13
14
15
16
17

SUMMARY

DESCRIPTION

bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
18
19
20
21
        The main function performs the following actions :
        <ul>
        <li>
        </ul>
fbe3c2bb   Benjamin Renard   First commit
22
23
24
25
26
27
28
29
30
31
32
33
34
35

------------------------------------------------------------------------*/

//=============================================================================
// 
// History of code
//
// creation 
//
// modification 
//=============================================================================

/**

bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
36
 */
fbe3c2bb   Benjamin Renard   First commit
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//=============================================================================
// Include section
//=============================================================================

// Standard libraries include files
//-----------------------------------------------------------------------------
#include <iostream>

// Include oriented definitions 
//-----------------------------------------------------------------------------

// Module Kernel include files
//-----------------------------------------------------------------------------

#include "ServicesServer.hh"
#include "PluginManager.hh"
#include "MinMaxMeanStatisticProcess.hh"
#include "MinVarStatisticProcess.hh"
4b695af7   Hacene SI HADJ MOHAND   tested ok
55
56
#include "CountStatisticProcess.hh"
#include "CountStatistic.hh"
3b301911   Hacene SI HADJ MOHAND   ok for countTrue
57
58
#include "CountBoolStatisticProcess.hh"
#include "CountBoolStatistic.hh"
fbe3c2bb   Benjamin Renard   First commit
59
60
61
62
63
64
65
66
67
68
69
70

using namespace AMDA::Parameters;

// Other modules include files
//-----------------------------------------------------------------------------



//=============================================================================
// Methods of Class AMDAPlugin
//=============================================================================

fbe3c2bb   Benjamin Renard   First commit
71
72
/**
   Retrieve the Plugin version we're going to expect
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
73
74
75
 */
extern "C" const char* getPluginVersion() {
    return "(Version)";
fbe3c2bb   Benjamin Renard   First commit
76
77
78
79
}

/**
   Tells us to register our functionality to an engine kernel
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
80
 */
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
81
82
extern "C" void registerPlugin(AMDA::Plugins::PluginManager & pm) {
    std::string pluginPath = pm.getCurrentPluginPath();
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
83
84
    StatisticProcessFactory factMinProcess = boost::factory<AMDA::Statistic::MinMaxMean::MinStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("min", factMinProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
85
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("min", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
86
87
88

    StatisticProcessFactory factMaxProcess = boost::factory<AMDA::Statistic::MinMaxMean::MaxStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("max", factMaxProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
89
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("max", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
90
91
92

    StatisticProcessFactory factMeanProcess = boost::factory<AMDA::Statistic::MinMaxMean::MeanStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("mean", factMeanProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
93
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("mean", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
94
95
96

    StatisticProcessFactory factRMSProcess = boost::factory<AMDA::Statistic::MinMaxMean::RMSStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("RMS", factRMSProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
97
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("RMS", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
98
99
100

    StatisticProcessFactory factMinVarProcess = boost::factory<AMDA::Statistic::MinVar::MinVarStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("minvar", factMinVarProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
101
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("minvar", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
102
103
104

    StatisticProcessFactory factMedianProcess = boost::factory<AMDA::Statistic::MinMaxMean::MedianStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("median", factMedianProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
105
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("median", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
106
107
108

    StatisticProcessFactory factVarianceProcess = boost::factory<AMDA::Statistic::MinMaxMean::VarianceStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("variance", factVarianceProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
109
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("variance", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
110
111
112

    StatisticProcessFactory factSkewnessProcess = boost::factory<AMDA::Statistic::MinMaxMean::SkewnessStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("skewness", factSkewnessProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
113
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("skewness", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
114
115
116

    StatisticProcessFactory factKurtosisProcess = boost::factory<AMDA::Statistic::MinMaxMean::KurtosisStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("kurtosis", factKurtosisProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
117
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("kurtosis", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
118
119
120

    StatisticProcessFactory factCountProcess = boost::factory<AMDA::Statistic::Count::CountStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("count", factCountProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
121
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("count", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
122
123
124

    StatisticProcessFactory factCountNotNanProcess = boost::factory<AMDA::Statistic::Count::CountNotNanStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("countNotNan", factCountNotNanProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
125
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("countNotNan", pluginPath);
bf54b7d4   Hacene SI HADJ MOHAND   not woring yet
126
127
128

    StatisticProcessFactory factBoolProcess = boost::factory<AMDA::Statistic::CountBool::CountBoolStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("countTrue", factBoolProcess);
3caf58ee   Hacene SI HADJ MOHAND   compil mais march...
129
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("countTrue", pluginPath);
2ed0b752   Hacene SI HADJ MOHAND   first last ok
130
131
132
133
134
135
    
     StatisticProcessFactory factFirstProcess = boost::factory<AMDA::Statistic::MinMaxMean::FirstValueStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("firstValue", factFirstProcess);
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("firstValue", pluginPath);
    
     StatisticProcessFactory factMiddleProcess = boost::factory<AMDA::Statistic::MinMaxMean::MiddleValueStatisticProcess*>();
d520ef0b   Hacene SI HADJ MOHAND   correcting middel...
136
137
    ServicesServer::getInstance()->addStatisticProcessFactory("middleIntervalValue", factMiddleProcess);
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("middleIntervalValue", pluginPath);
2ed0b752   Hacene SI HADJ MOHAND   first last ok
138
139
140
141
142
    
      StatisticProcessFactory factLastProcess = boost::factory<AMDA::Statistic::MinMaxMean::LastValueStatisticProcess*>();
    ServicesServer::getInstance()->addStatisticProcessFactory("lastValue", factLastProcess);
    ServicesServer::getInstance()->linkStatisticProcessWithPlugin("lastValue", pluginPath);
    
fbe3c2bb   Benjamin Renard   First commit
143
}