OacPredictionFunction.h
Go to the documentation of this file.
1 /*
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * 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 * @package MemoryX::Core
17 * @author Nils Adermann <naderman@naderman.de>
18 * @date 2013
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22 
23 #pragma once
24 
26 
27 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
28 
29 namespace memoryx::VariantType
30 {
32  armarx::Variant::addTypeName("::memoryx::OacPredictionFunctionBase");
33 }
34 
35 namespace memoryx
36 {
39 
40  class OacPredictionFunction : public OacPredictionFunctionBase
41  {
42  public:
43  std::string
44  getPreconditionExpression(const Ice::Current& c = Ice::emptyCurrent) const override;
45  void setPreconditionExpression(const std::string& precondition,
46  const Ice::Current& c = Ice::emptyCurrent) override;
47 
48  std::string getEffectExpression(const Ice::Current& c = Ice::emptyCurrent) const override;
49  void setEffectExpression(const std::string& effect,
50  const Ice::Current& c = Ice::emptyCurrent) override;
51 
52  SECObjectRelationsBasePtr
53  getSECPreconditions(const Ice::Current& c = Ice::emptyCurrent) const override;
54  void setSECPreconditions(const SECObjectRelationsBasePtr& preconditions,
55  const Ice::Current& c = Ice::emptyCurrent) override;
56 
57  SECObjectRelationsBasePtr
58  getSECEffects(const Ice::Current& c = Ice::emptyCurrent) const override;
59  void setSECEffects(const SECObjectRelationsBasePtr& effects,
60  const Ice::Current& c = Ice::emptyCurrent) override;
61 
62  SECRelationPairList
63  getSECSideConstraints(const Ice::Current& c = Ice::emptyCurrent) const override;
64  void setSECSideConstraints(const SECRelationPairList& sideConstraints,
65  const Ice::Current& c = Ice::emptyCurrent) override;
66 
67  void serialize(const armarx::ObjectSerializerBasePtr& serializer,
68  const Ice::Current& c = Ice::emptyCurrent) const override;
69  void deserialize(const armarx::ObjectSerializerBasePtr& serializer,
70  const Ice::Current& c = Ice::emptyCurrent) override;
71 
72  armarx::VariantDataClassPtr clone(const Ice::Current& c = Ice::emptyCurrent) const override;
73  std::string output(const Ice::Current& c = Ice::emptyCurrent) const override;
74  int getType(const Ice::Current& c = Ice::emptyCurrent) const override;
75 
76  bool
77  validate(const Ice::Current& c = Ice::emptyCurrent) override
78  {
79  return true;
80  }
81 
83  ice_clone() const override
84  {
85  return this->clone();
86  }
87  };
88 } // namespace memoryx
memoryx::OacPredictionFunction::output
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:188
memoryx::OacPredictionFunction::setSECSideConstraints
void setSECSideConstraints(const SECRelationPairList &sideConstraints, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:233
memoryx::OacPredictionFunction::setEffectExpression
void setEffectExpression(const std::string &effect, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:52
memoryx::OacPredictionFunction::deserialize
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:102
memoryx::OacPredictionFunction::getSECPreconditions
SECObjectRelationsBasePtr getSECPreconditions(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:200
memoryx::VariantType
Definition: Affordance.h:31
memoryx::OacPredictionFunction::serialize
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:58
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
memoryx::OacPredictionFunction::clone
armarx::VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:140
memoryx::OacPredictionFunction::getSECSideConstraints
SECRelationPairList getSECSideConstraints(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:227
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::OacPredictionFunction::setSECEffects
void setSECEffects(const SECObjectRelationsBasePtr &effects, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:220
memoryx::OacPredictionFunction::getPreconditionExpression
std::string getPreconditionExpression(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:33
memoryx::OacPredictionFunction::getSECEffects
SECObjectRelationsBasePtr getSECEffects(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:214
memoryx::OacPredictionFunction::getType
int getType(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:194
armarx::VariantTypeId
Ice::Int VariantTypeId
Definition: Variant.h:43
memoryx::OacPredictionFunction::setSECPreconditions
void setSECPreconditions(const SECObjectRelationsBasePtr &preconditions, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:206
memoryx::OacPredictionFunction
Definition: OacPredictionFunction.h:40
memoryx::OacPredictionFunction::setPreconditionExpression
void setPreconditionExpression(const std::string &precondition, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:39
memoryx::OacPredictionFunction::validate
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.h:77
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::OacPredictionFunction::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: OacPredictionFunction.h:83
memoryx::OacPredictionFunction::getEffectExpression
std::string getEffectExpression(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:46
Variant.h
armarx::Variant::addTypeName
static VariantTypeId addTypeName(const std::string &typeName)
Register a new type for the use in a Variant.
Definition: Variant.cpp:869