xc
ActionRepresentativeValues.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. Pérez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //ActionRepresentativeValues.hxx
22 //Representative values of an action.
23 
24 #ifndef ACTIONREPRESENTATIVEVALUES_H
25 #define ACTIONREPRESENTATIVEVALUES_H
26 
27 #include "Action.h"
28 
29 namespace cmb_acc{
30 
31 class PartialSafetyFactors;
32 class CombinationFactors;
33 class Variations;
34 class LeadingActionInfo;
35 class ActionWrapper;
36 
38 //
41  {
42  protected:
45 
46  inline double getCombinationFactor(short int r) const;
47 
48  friend class SingleActionWrapper;
49  friend class GroupActionWrapper;
51  ActionRepresentativeValues(const std::string &n="", const std::string &descrip="", ActionWrapper *wrapper= nullptr);
52  ActionRepresentativeValues(const Action &a,ActionWrapper *wrapper= nullptr,const std::string &nmb_comb_factors= "");
53  Action getRepresentativeValue(const LeadingActionInfo &, const int &index) const;
54  public:
55  Action getValue(short int r) const;
56  void setCombinationFactors(const std::string &);
57  void Print(std::ostream &os) const;
58  };
59 
60 } //fin namespace nmb_acc.
61 
62 #endif
void Print(std::ostream &os) const
Print stuff.
Definition: ActionRepresentativeValues.cc:126
Action getRepresentativeValue(const LeadingActionInfo &, const int &index) const
Return the representative value for the action.
Definition: ActionRepresentativeValues.cc:114
Routines to generate combinations of actions.
Action getValue(short int r) const
Return the representative value of the action.
Definition: ActionRepresentativeValues.cc:90
Wrapper for a single action.
Definition: SingleActionWrapper.h:34
Wrapper for a group action.
Definition: GroupActionWrapper.h:34
Action or linear combination of actions.
Definition: Action.h:44
ActionWrapper * wrapper
Wrapper for this action.
Definition: ActionRepresentativeValues.h:43
Representative values of an action.
Definition: ActionRepresentativeValues.h:40
Information about the leading action.
Definition: LeadingActionInfo.h:35
void setCombinationFactors(const std::string &)
Asigna los coeficientes de simultaneidad de la acción.
Definition: ActionRepresentativeValues.cc:47
Coeficientes de simultaneidad de una acción.
Definition: CombinationFactors.h:34
Base class for action design values and action groups.
Definition: ActionWrapper.h:42
const CombinationFactors * combination_factors
Combination factors.
Definition: ActionRepresentativeValues.h:44
ActionRepresentativeValues(const std::string &n="", const std::string &descrip="", ActionWrapper *wrapper=nullptr)
Default constructor.
Definition: ActionRepresentativeValues.cc:33
double getCombinationFactor(short int r) const
Return the r-th combination factor.
Definition: ActionRepresentativeValues.cc:76