Oac.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 2012
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/core/EntityBase.h>
28 #include <MemoryX/interface/memorytypes/MemoryEntities.h>
29 
31 
32 namespace memoryx::VariantType
33 {
35 }
36 
37 namespace memoryx
38 {
39  class Oac;
41 
42  class Oac: public OacBase, public Entity
43  {
44  friend class OacObjectFactory;
45 
46  public:
47  /**
48  * Constructs a new Oac entity. A name needs to be assigned. The id is optional.
49  * The Oac can also be associated with a state via UUID and the statechart this state can be found in
50  *
51  * @param name friendly name of the OAC
52  * @param id optional id of the OAC
53  * @param statechartProxyName optional statechart proxy name this OAC is associated with
54  * @param stateUUID optional stateUUID this OAC is associated with
55  **/
56  Oac(const std::string& name = std::string(), const std::string& id = "", const std::string& statechartProxyName = "", const std::string& stateUUID = "", bool isPlannable = true);
57 
58  std::vector<std::string> getParameters(const ::Ice::Current& = Ice::emptyCurrent) const override;
59  void setParameters(const std::vector<std::string>& parameters, const ::Ice::Current& = Ice::emptyCurrent) override;
60 
61  std::string getStatechartProxyName(const ::Ice::Current& = Ice::emptyCurrent) const override;
62  void setStatechartProxyName(const std::string& statechartProxyName, const ::Ice::Current& = Ice::emptyCurrent) override;
63 
64  std::string getStateUUID(const ::Ice::Current& = Ice::emptyCurrent) const override;
65  void setStateUUID(const std::string& stateUUID, const ::Ice::Current& = Ice::emptyCurrent) override;
66 
67  bool isPlannable(const ::Ice::Current& = Ice::emptyCurrent) const override;
68  void setPlannable(bool isPlannable, const ::Ice::Current& = Ice::emptyCurrent) override;
69 
70  OacPredictionFunctionBasePtr getPredictionFunction(const ::Ice::Current& = Ice::emptyCurrent) const override;
71  void setPredictionFunction(const ::memoryx::OacPredictionFunctionBasePtr& prediction, const ::Ice::Current& = Ice::emptyCurrent) override;
72 
73  OacStatisticalMeasureBasePtr getStatisticalMeasure(const ::Ice::Current& = Ice::emptyCurrent) const override;
74  void setStatisticalMeasure(const ::memoryx::OacStatisticalMeasureBasePtr& measure, const ::Ice::Current& = Ice::emptyCurrent) override;
75 
76  Ice::ObjectPtr ice_clone() const override;
77  OacPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
78 
79  };
80 }
81 
memoryx::VariantType
Definition: Affordance.h:32
memoryx::Oac::getStateUUID
std::string getStateUUID(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: Oac.cpp:68
memoryx::Oac::OacObjectFactory
friend class OacObjectFactory
Definition: Oac.h:44
memoryx::Oac::isPlannable
bool isPlannable(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: Oac.cpp:78
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::Oac::getParameters
std::vector< std::string > getParameters(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: Oac.cpp:44
memoryx::Oac::setStateUUID
void setStateUUID(const std::string &stateUUID, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: Oac.cpp:73
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::Oac::Oac
Oac(const std::string &name=std::string(), const std::string &id="", const std::string &statechartProxyName="", const std::string &stateUUID="", bool isPlannable=true)
Constructs a new Oac entity.
Definition: Oac.cpp:30
memoryx::Oac::clone
OacPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
Definition: Oac.cpp:117
memoryx::Oac::getStatisticalMeasure
OacStatisticalMeasureBasePtr getStatisticalMeasure(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: Oac.cpp:100
armarx::VariantTypeId
Ice::Int VariantTypeId
Definition: Variant.h:44
memoryx::Oac::setPlannable
void setPlannable(bool isPlannable, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: Oac.cpp:83
memoryx::Oac::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: Oac.cpp:112
Entity.h
memoryx::Oac
Definition: Oac.h:42
memoryx::Oac::setStatechartProxyName
void setStatechartProxyName(const std::string &statechartProxyName, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: Oac.cpp:63
memoryx::Oac::setPredictionFunction
void setPredictionFunction(const ::memoryx::OacPredictionFunctionBasePtr &prediction, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: Oac.cpp:95
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::Oac::setStatisticalMeasure
void setStatisticalMeasure(const ::memoryx::OacStatisticalMeasureBasePtr &measure, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: Oac.cpp:107
memoryx::Entity
Definition: Entity.h:246
memoryx::Oac::getPredictionFunction
OacPredictionFunctionBasePtr getPredictionFunction(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: Oac.cpp:88
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
memoryx::Oac::setParameters
void setParameters(const std::vector< std::string > &parameters, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: Oac.cpp:51
memoryx::Oac::getStatechartProxyName
std::string getStatechartProxyName(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: Oac.cpp:58