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 
25 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
26 
28 
29 namespace memoryx::VariantType
30 {
31  const armarx::VariantTypeId OacPredictionFunction = armarx::Variant::addTypeName("::memoryx::OacPredictionFunctionBase");
32 }
33 
34 namespace memoryx
35 {
38 
39  class OacPredictionFunction: public OacPredictionFunctionBase
40  {
41  public:
42  std::string getPreconditionExpression(const Ice::Current& c = Ice::emptyCurrent) const override;
43  void setPreconditionExpression(const std::string& precondition, const Ice::Current& c = Ice::emptyCurrent) override;
44 
45  std::string getEffectExpression(const Ice::Current& c = Ice::emptyCurrent) const override;
46  void setEffectExpression(const std::string& effect, const Ice::Current& c = Ice::emptyCurrent) override;
47 
48  SECObjectRelationsBasePtr getSECPreconditions(const Ice::Current& c = Ice::emptyCurrent) const override;
49  void setSECPreconditions(const SECObjectRelationsBasePtr& preconditions, const Ice::Current& c = Ice::emptyCurrent) override;
50 
51  SECObjectRelationsBasePtr getSECEffects(const Ice::Current& c = Ice::emptyCurrent) const override;
52  void setSECEffects(const SECObjectRelationsBasePtr& effects, const Ice::Current& c = Ice::emptyCurrent) override;
53 
54  SECRelationPairList getSECSideConstraints(const Ice::Current& c = Ice::emptyCurrent) const override;
55  void setSECSideConstraints(const SECRelationPairList& sideConstraints, const Ice::Current& c = Ice::emptyCurrent) override;
56 
57  void serialize(const armarx::ObjectSerializerBasePtr& serializer, const Ice::Current& c = Ice::emptyCurrent) const override;
58  void deserialize(const armarx::ObjectSerializerBasePtr& serializer, const Ice::Current& c = Ice::emptyCurrent) override;
59 
60  armarx::VariantDataClassPtr clone(const Ice::Current& c = Ice::emptyCurrent) const override;
61  std::string output(const Ice::Current& c = Ice::emptyCurrent) const override;
62  int getType(const Ice::Current& c = Ice::emptyCurrent) const override;
63 
64 
65  bool validate(const Ice::Current& c = Ice::emptyCurrent) override
66  {
67  return true;
68  }
69 
70  Ice::ObjectPtr ice_clone() const override
71  {
72  return this->clone();
73  }
74 
75  };
76 }
77 
memoryx::OacPredictionFunction::output
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:172
memoryx::OacPredictionFunction::setSECSideConstraints
void setSECSideConstraints(const SECRelationPairList &sideConstraints, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:209
memoryx::OacPredictionFunction::setEffectExpression
void setEffectExpression(const std::string &effect, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:47
memoryx::OacPredictionFunction::deserialize
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:93
memoryx::OacPredictionFunction::getSECPreconditions
SECObjectRelationsBasePtr getSECPreconditions(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:183
memoryx::VariantType
Definition: Affordance.h:32
memoryx::OacPredictionFunction::serialize
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:52
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::OacPredictionFunction::clone
armarx::VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:129
memoryx::OacPredictionFunction::getSECSideConstraints
SECRelationPairList getSECSideConstraints(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:204
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:198
memoryx::OacPredictionFunction::getPreconditionExpression
std::string getPreconditionExpression(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:32
memoryx::OacPredictionFunction::getSECEffects
SECObjectRelationsBasePtr getSECEffects(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:193
memoryx::OacPredictionFunction::getType
int getType(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:177
armarx::VariantTypeId
Ice::Int VariantTypeId
Definition: Variant.h:44
memoryx::OacPredictionFunction::setSECPreconditions
void setSECPreconditions(const SECObjectRelationsBasePtr &preconditions, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:188
memoryx::OacPredictionFunction
Definition: OacPredictionFunction.h:39
memoryx::OacPredictionFunction::setPreconditionExpression
void setPreconditionExpression(const std::string &precondition, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.cpp:37
memoryx::OacPredictionFunction::validate
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacPredictionFunction.h:65
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:70
memoryx::OacPredictionFunction::getEffectExpression
std::string getEffectExpression(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacPredictionFunction.cpp:42
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:751