Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
create.hxx
1
/*
2
** Copyright 2007-2024, RTE (https://www.rte-france.com)
3
** See AUTHORS.txt
4
** SPDX-License-Identifier: MPL-2.0
5
** This file is part of Antares-Simulator,
6
** Adequacy and Performance assessment for interconnected energy networks.
7
**
8
** Antares_Simulator is free software: you can redistribute it and/or modify
9
** it under the terms of the Mozilla Public Licence 2.0 as published by
10
** the Mozilla Foundation, either version 2 of the License, or
11
** (at your option) any later version.
12
**
13
** Antares_Simulator is distributed in the hope that it will be useful,
14
** but WITHOUT ANY WARRANTY; without even the implied warranty of
15
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
** Mozilla Public Licence 2.0 for more details.
17
**
18
** You should have received a copy of the Mozilla Public Licence 2.0
19
** along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20
*/
21
#ifndef __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_CONSTRAINT_CREATE_HXX__
22
#define __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_CONSTRAINT_CREATE_HXX__
23
24
namespace
Antares
25
{
26
namespace
Action
27
{
28
namespace
AntaresStudy
29
{
30
namespace
Constraint
31
{
32
template
<
class
StringT>
33
inline
Create::Create
(
const
StringT& areaname,
34
Data::BindingConstraint::Type
t,
35
Data::BindingConstraint::Operator o) :
36
pOriginalConstraintName(areaname), pType(t), pOperator(o)
37
{
38
pInfos
.
behavior
= bhOverwrite;
39
}
40
41
template
<
class
StringT1,
class
StringT2>
42
inline
Create::Create
(
const
StringT1& areaname,
43
const
StringT2& targetname,
44
Data::BindingConstraint::Type
t,
45
Data::BindingConstraint::Operator o) :
46
pOriginalConstraintName(areaname), pTargetConstraintName(targetname), pType(t), pOperator(o)
47
{
48
pInfos
.
behavior
= bhOverwrite;
49
}
50
51
inline
Create::~Create
()
52
{
53
}
54
55
inline
bool
Create::allowUpdate()
const
56
{
57
return
true
;
58
}
59
60
}
// namespace Constraint
61
}
// namespace AntaresStudy
62
}
// namespace Action
63
}
// namespace Antares
64
65
#endif
// __ANTARES_LIBS_STUDY_ACTION_HANDLER_ANTARES_CONSTRAINT_CREATE_HXX__
AntaresStudy
Definition
antares-study.h:28
Antares::Action::ActionInformations::behavior
Behavior behavior
Behavior of the action.
Definition
fwd.h:56
Antares::Action::AntaresStudy::Constraint::Create::~Create
virtual ~Create()
Destructor.
Definition
create.hxx:51
Antares::Action::AntaresStudy::Constraint::Create::Create
Create(const StringT &areaname, Data::BindingConstraint::Type t, Data::BindingConstraint::Operator o)
Default constructor.
Definition
create.hxx:33
Antares::Action::IAction::pInfos
ActionInformations pInfos
All data related to the action.
Definition
action.h:168
Antares::Data::BindingConstraint::Type
Type
Definition
BindingConstraint.h:55
src
ui
action
include
action
handler
antares-study
constraint
create.hxx
Generated by
1.12.0