Loading...
Searching...
No Matches
ClassifierDummyStrategy.h
Go to the documentation of this file.
1/* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2
3 This file is part of the TerraLib - a Framework for building GIS enabled applications.
4
5 TerraLib is free software: you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
9
10 TerraLib is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public License
16 along with TerraLib. See COPYING. If not, write to
17 TerraLib Team at <terralib-team@terralib.org>.
18 */
19
20/*!
21 \file terralib/rp/ClassifierDummyStrategy.h
22
23 \brief Dummy strategy (just for testing purposes).
24*/
25
26#ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
27#define __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
28
29#include "ClassifierStrategy.h"
31#include "Config.h"
32
33namespace te
34{
35 namespace rp
36 {
37 /*!
38 \class ClassifierDummyStrategy
39
40 \brief Dummy strategy (just for testing purposes).
41
42 \ingroup rp_class
43 */
45 {
46 public:
47
48 /*!
49 \class Parameters
50
51 \brief Classifier Parameters
52 */
54 {
55 public:
56
57 unsigned int m_dummyParameter; //!< A dummy parameter.
58
60
62
63 //overload
64 const Parameters& operator=(const Parameters& params);
65
66 //overload
67 void reset() ;
68
69 //overload
70 AbstractParameters* clone() const;
71 };
72
73 public:
74
76
78
79 //overload
80 bool initialize(ClassifierStrategyParameters const* const strategyParams) ;
81
82 //overload
83 bool execute() ;
84
85 protected:
86
87 bool m_isInitialized; //!< True if this instance is initialized.
88 ClassifierDummyStrategy::Parameters m_parameters; //!< Internal execution parameters.
89 };
90
91 /*!
92 \class ClassifierDummyStrategyFactory
93
94 \brief Raster dummy Classifier strategy factory.
95
96 \note Factory key: RegionGrowing
97 */
99 {
100 public:
101
103
105
106 //overload
108 };
109
110 } // end namespace rp
111} // end namespace te
112
113#endif // __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
114
Raster classifier strategy factory base class.
Raster classifier strategy base class.
Raster dummy Classifier strategy factory.
te::rp::ClassifierStrategy * build()
Concrete factories (derived from this one) must implement this method in order to create objects.
const Parameters & operator=(const Parameters &params)
void reset()
Clear all internal allocated resources and reset the parameters instance to its initial state.
AbstractParameters * clone() const
Create a clone copy of this instance.
Dummy strategy (just for testing purposes).
bool initialize(ClassifierStrategyParameters const *const strategyParams)
Initialize the classification strategy.
ClassifierDummyStrategy::Parameters m_parameters
Internal execution parameters.
bool execute()
Executes the classification strategy.
bool m_isInitialized
True if this instance is initialized.
Raster classifier strategy factory base class.
Raster classifier strategy base class.
TerraLib.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:139
Proxy configuration file for TerraView (see terraview_config.h).