DMPEntity.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 Alexey Kozlov ( kozlov at kit dot edu)
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>
30 
31 namespace memoryx
32 {
33 
34  class DMPEntity;
36 
37  class DMPEntity :
38  public memoryx::DMPEntityBase,
39  public memoryx::Entity
40  {
41  public:
42  DMPEntity();
43  DMPEntity(const DMPEntity& source);
44  DMPEntity(const std::string& name, const std::string& id = "");
45  ~DMPEntity() override;
46 
47  void setDMPName(const std::string& dmpName, const ::Ice::Current& = Ice::emptyCurrent) override;
48  std::string getDMPName(const ::Ice::Current& = Ice::emptyCurrent) const override;
49  void setDMPType(const std::string& dmpType, const ::Ice::Current& = Ice::emptyCurrent) override;
50  int getDMPType(const ::Ice::Current& = Ice::emptyCurrent) const override;
51  void setDMPtextStr(const std::string& dmptext, const ::Ice::Current& = Ice::emptyCurrent) override;
52  std::string getDMPtextStr(const ::Ice::Current& = Ice::emptyCurrent) const override;
53  void set3rdOrder(const bool is3rdOrder, const ::Ice::Current& = Ice::emptyCurrent) override;
54  bool get3rdOrder(const ::Ice::Current& = Ice::emptyCurrent) const override;
55  void setTrajDim(const int trajdim, const ::Ice::Current& = Ice::emptyCurrent) override;
56  int getTrajDim(const ::Ice::Current& = Ice::emptyCurrent) const override;
57 
58  // cloning
59  Ice::ObjectPtr ice_clone() const override;
60  DMPEntityPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
61 
62  private:
63  void output(std::ostream& stream) const;
64 
65  public: // streaming operator
66  friend std::ostream& operator<<(std::ostream& stream, const DMPEntity& rhs)
67  {
68  rhs.output(stream);
69  return stream;
70  }
71 
72  friend std::ostream& operator<<(std::ostream& stream, const DMPEntityPtr& rhs)
73  {
74  rhs->output(stream);
75  return stream;
76  }
77 
78  friend std::ostream& operator<<(std::ostream& stream, const DMPEntityBasePtr& rhs)
79  {
80  stream << DMPEntityPtr::dynamicCast(rhs);
81  return stream;
82  }
83  };
84 
85 }
86 
memoryx::DMPEntity::DMPEntity
DMPEntity()
Definition: DMPEntity.cpp:30
memoryx::DMPEntity::clone
DMPEntityPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
Definition: DMPEntity.cpp:121
memoryx::DMPEntity::setDMPType
void setDMPType(const std::string &dmpType, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: DMPEntity.cpp:65
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::DMPEntity::setDMPtextStr
void setDMPtextStr(const std::string &dmptext, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: DMPEntity.cpp:70
memoryx::DMPEntity::setDMPName
void setDMPName(const std::string &dmpName, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: DMPEntity.cpp:60
memoryx::DMPEntity::operator<<
friend std::ostream & operator<<(std::ostream &stream, const DMPEntityPtr &rhs)
Definition: DMPEntity.h:72
memoryx::DMPEntity::getDMPName
std::string getDMPName(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: DMPEntity.cpp:86
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::DMPEntity
Definition: DMPEntity.h:37
memoryx::DMPEntity::~DMPEntity
~DMPEntity() override
Definition: DMPEntity.cpp:55
memoryx::DMPEntity::setTrajDim
void setTrajDim(const int trajdim, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: DMPEntity.cpp:80
boost::source
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:681
Entity.h
memoryx::DMPEntity::getDMPtextStr
std::string getDMPtextStr(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: DMPEntity.cpp:96
memoryx::DMPEntity::getTrajDim
int getTrajDim(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: DMPEntity.cpp:106
memoryx::DMPEntity::set3rdOrder
void set3rdOrder(const bool is3rdOrder, const ::Ice::Current &=Ice::emptyCurrent) override
Definition: DMPEntity.cpp:75
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::DMPEntity::operator<<
friend std::ostream & operator<<(std::ostream &stream, const DMPEntityBasePtr &rhs)
Definition: DMPEntity.h:78
memoryx::DMPEntity::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: DMPEntity.cpp:116
memoryx::DMPEntity::operator<<
friend std::ostream & operator<<(std::ostream &stream, const DMPEntity &rhs)
Definition: DMPEntity.h:66
memoryx::Entity
Definition: Entity.h:246
Variant.h
memoryx::DMPEntity::getDMPType
int getDMPType(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: DMPEntity.cpp:91
memoryx::DMPEntity::get3rdOrder
bool get3rdOrder(const ::Ice::Current &=Ice::emptyCurrent) const override
Definition: DMPEntity.cpp:101