DummyWorldStateObserver.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::ArmarXObjects::DummyWorrldStateObserver
17 * @author Peter Kaiser ( peter dot kaiser at kit dot edu )
18 * @date 2016
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#ifndef _ARMARX_COMPONENT_MemoryX_DummyWorldStateObserver_H
24#define _ARMARX_COMPONENT_MemoryX_DummyWorldStateObserver_H
25
27
28#include <MemoryX/interface/observers/WorldStateObserver.h>
29
30namespace armarx
31{
32 /**
33 * @class DummyWorldStateObserverPropertyDefinitions
34 * @brief
35 */
37 {
38 public:
41 {
42 //defineRequiredProperty<std::string>("PropertyName", "Description");
43 //defineOptionalProperty<std::string>("PropertyName", "DefaultValue", "Description");
44 }
45 };
46
47 /**
48 * @defgroup Component-DummyWorldStateObserver DummyWorldStateObserver
49 * @ingroup MemoryX-Components
50 * A description of the component DummyWorldStateObserver.
51 *
52 * @class DummyWorldStateObserver
53 * @ingroup Component-DummyWorldStateObserver
54 * @brief Brief description of class DummyWorldStateObserver.
55 *
56 * Detailed description of class DummyWorldStateObserver.
57 */
59 virtual public memoryx::WorldStateObserverInterface,
60 virtual public armarx::Component
61 {
62 public:
63 /**
64 * @see armarx::ManagedIceObject::getDefaultName()
65 */
66 virtual std::string
67 getDefaultName() const override
68 {
69 return "DummyWorldStateObserver";
70 }
71
72 protected:
73 /**
74 * @see armarx::ManagedIceObject::onInitComponent()
75 */
76 virtual void onInitComponent() override;
77
78 /**
79 * @see armarx::ManagedIceObject::onConnectComponent()
80 */
81 virtual void onConnectComponent() override;
82
83 /**
84 * @see armarx::ManagedIceObject::onDisconnectComponent()
85 */
86 virtual void onDisconnectComponent() override;
87
88 /**
89 * @see armarx::ManagedIceObject::onExitComponent()
90 */
91 virtual void onExitComponent() override;
92
93 /**
94 * @see PropertyUser::createPropertyDefinitions()
95 */
97
98 public:
99 virtual memoryx::PredicateInstanceList getWorldState(const ::Ice::Current&) override;
100 virtual bool isObservable(const ::std::string& predicateName,
101 const ::Ice::Current&) override;
102 virtual bool updatePredicateValue(const memoryx::PredicateInstance& pi,
103 bool removePredicate,
104 const ::Ice::Current&) override;
105 virtual void setPredicateArgumentWhitelist(const memoryx::EntityBaseList& argumentWhitelist,
106 const Ice::Current&) override;
107 virtual void resetPredicateArgumentWhitelist(const ::Ice::Current&) override;
108 void addObservablePredicateInstances(const memoryx::PredicateInstanceList& predicates,
109 const Ice::Current&) override;
110 void registerAsUpdater(const std::string& name,
111 const memoryx::WorldStateUpdaterInterfacePrx& updater,
112 const Ice::Current&) override;
113 memoryx::WorldStateUpdaterInterfaceList getRegisteredUpdaters(const Ice::Current&) override;
114 };
115} // namespace armarx
116
117#endif
#define pi
Default component property definition container.
Definition Component.h:70
ComponentPropertyDefinitions(std::string prefix, bool hasObjectNameParameter=true)
Definition Component.cpp:46
Baseclass for all ArmarX ManagedIceObjects requiring properties.
Definition Component.h:94
Brief description of class DummyWorldStateObserver.
virtual void onDisconnectComponent() override
virtual void resetPredicateArgumentWhitelist(const ::Ice::Current &) override
void addObservablePredicateInstances(const memoryx::PredicateInstanceList &predicates, const Ice::Current &) override
virtual void setPredicateArgumentWhitelist(const memoryx::EntityBaseList &argumentWhitelist, const Ice::Current &) override
virtual armarx::PropertyDefinitionsPtr createPropertyDefinitions() override
virtual memoryx::PredicateInstanceList getWorldState(const ::Ice::Current &) override
memoryx::WorldStateUpdaterInterfaceList getRegisteredUpdaters(const Ice::Current &) override
void registerAsUpdater(const std::string &name, const memoryx::WorldStateUpdaterInterfacePrx &updater, const Ice::Current &) override
virtual bool updatePredicateValue(const memoryx::PredicateInstance &pi, bool removePredicate, const ::Ice::Current &) override
virtual std::string getDefaultName() const override
virtual bool isObservable(const ::std::string &predicateName, const ::Ice::Current &) override
std::string prefix
Prefix of the properties such as namespace, domain, component name, etc.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.