Points&Forces (survey)
Software tools facilitating the task of surveying architecture
a_ocriteria_H.h
Go to the documentation of this file.
1 /*
2 Copyright 2010-2011 Pierre SMARS (smars@yuntech.edu.tw)
3 This program is free software: you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation, either version 2 of the License, or
6 (at your option) any later version.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16 #ifndef _A_OCRITERIA_H_H_
17 #define _A_OCRITERIA_H_H_
18 
19 #include "a_ocriteria.h"
20 #include "a_point.h"
21 
25 class a_ocriteria_H : public a_ocriteria
26 {
27 public:
28  a_ocriteria_H(const int rb, const int rf, const a_point& dir): rb_(rb), rf_(rf), dir_(dir) {}
30  virtual double f(const a_structure * f) const;
31 protected:
32  int rb_;
33  int rf_;
34  a_point dir_;
35 };
36 
37 #endif
38 
a_ocriteria_H(const int rb, const int rf, const a_point &dir)
Definition: a_ocriteria_H.h:28
virtual double f(const a_structure *f) const
return an objective value used for optimization (can be the thrust for instance) (look at derived cla...
structure class
Definition: a_structure.h:33