PredictionTaskEntity.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * Copyright (C) 2012-2016, High Performance Humanoid Technologies (H2T), Karlsruhe Institute of Technology (KIT), all rights reserved.
5  *
6  * ArmarX is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * ArmarX is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  *
18  * @package MemoryX::Core::MemoryTypes
19  * @author Manfred Kroehnert (Manfred dot Kroehnert at kit dot edu)
20  * @date 2015
21  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
22  * GNU General Public License
23  */
24 
25 #pragma once
26 
27 #include <MemoryX/interface/memorytypes/PredictionEntities.h>
29 
30 namespace memoryx
31 {
32  class PredictionTaskEntity;
34 
36  virtual public memoryx::PredictionTaskEntityBase,
37  virtual public memoryx::Entity
38  {
39  public:
41  PredictionTaskEntity(const std::string& predictionTaskName, const EntityRefBaseList& predictionList);
43  ~PredictionTaskEntity() override;
44 
45  void initializeAttributes();
46 
47 
48  // cloning
49  Ice::ObjectPtr ice_clone() const override;
50  PredictionTaskEntityPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
51 
52  // PredictionEntityBase interface
53  std::string getPredictionTaskName(const Ice::Current& c = Ice::emptyCurrent) const override;
54  void setPredictionTaskName(const std::string& predictionTaskName, const Ice::Current& c = Ice::emptyCurrent) override;
55 
56  EntityRefBaseList getPredictionEntityRefList(const Ice::Current& c = Ice::emptyCurrent) const override;
57  void setPredictionEntityRefList(const EntityRefBaseList& predictedEntityRefList, const Ice::Current& c = Ice::emptyCurrent) override;
58 
59  // streaming operator
60  friend std::ostream& operator<<(std::ostream& stream, const PredictionTaskEntity& rhs)
61  {
62  rhs.output(stream);
63  return stream;
64  }
65 
66  friend std::ostream& operator<<(std::ostream& stream, const PredictionTaskEntityPtr& rhs)
67  {
68  rhs->output(stream);
69  return stream;
70  }
71 
72  friend std::ostream& operator<<(std::ostream& stream, const PredictionTaskEntityBasePtr& rhs)
73  {
74  stream << PredictionTaskEntityPtr::dynamicCast(rhs);
75  return stream;
76  }
77  private:
78  void output(std::ostream& stream) const;
79 
80  static const std::string TASK_NAME_ATTRIBUTE;
81  static const std::string PREDICTION_LIST_ATTRIBUTE;
82  };
83 
84 }
85 
memoryx::PredictionTaskEntity::initializeAttributes
void initializeAttributes()
Definition: PredictionTaskEntity.cpp:63
memoryx::PredictionTaskEntity::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: PredictionTaskEntity.cpp:76
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:43
memoryx::PredictionTaskEntity::getPredictionTaskName
std::string getPredictionTaskName(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: PredictionTaskEntity.cpp:90
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::PredictionTaskEntity::operator<<
friend std::ostream & operator<<(std::ostream &stream, const PredictionTaskEntity &rhs)
Definition: PredictionTaskEntity.h:60
memoryx::PredictionTaskEntity::operator<<
friend std::ostream & operator<<(std::ostream &stream, const PredictionTaskEntityBasePtr &rhs)
Definition: PredictionTaskEntity.h:72
memoryx::PredictionTaskEntity::PredictionTaskEntity
PredictionTaskEntity()
Definition: PredictionTaskEntity.cpp:34
memoryx::PredictionTaskEntity::operator<<
friend std::ostream & operator<<(std::ostream &stream, const PredictionTaskEntityPtr &rhs)
Definition: PredictionTaskEntity.h:66
boost::source
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
Definition: point_cloud_graph.h:681
memoryx::PredictionTaskEntity::getPredictionEntityRefList
EntityRefBaseList getPredictionEntityRefList(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: PredictionTaskEntity.cpp:101
memoryx::PredictionTaskEntity::~PredictionTaskEntity
~PredictionTaskEntity() override
Definition: PredictionTaskEntity.cpp:59
Entity.h
memoryx::PredictionTaskEntity::setPredictionTaskName
void setPredictionTaskName(const std::string &predictionTaskName, const Ice::Current &c=Ice::emptyCurrent) override
Definition: PredictionTaskEntity.cpp:95
memoryx::PredictionTaskEntity::setPredictionEntityRefList
void setPredictionEntityRefList(const EntityRefBaseList &predictedEntityRefList, const Ice::Current &c=Ice::emptyCurrent) override
Definition: PredictionTaskEntity.cpp:114
memoryx::PredictionTaskEntity::clone
PredictionTaskEntityPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
Definition: PredictionTaskEntity.cpp:82
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::PredictionTaskEntity
Definition: PredictionTaskEntity.h:35
memoryx::Entity
Definition: Entity.h:246