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
28#include <MemoryX/interface/memorytypes/PredictionEntities.h>
29
30namespace memoryx
31{
34
36 virtual public memoryx::PredictionTaskEntityBase,
37 virtual public memoryx::Entity
38 {
39 public:
41 PredictionTaskEntity(const std::string& predictionTaskName,
42 const EntityRefBaseList& predictionList);
44 ~PredictionTaskEntity() override;
45
47
48
49 // cloning
50 Ice::ObjectPtr ice_clone() const override;
51 PredictionTaskEntityPtr clone(const Ice::Current& c = Ice::emptyCurrent) const;
52
53 // PredictionEntityBase interface
54 std::string getPredictionTaskName(const Ice::Current& c = Ice::emptyCurrent) const override;
55 void setPredictionTaskName(const std::string& predictionTaskName,
56 const Ice::Current& c = Ice::emptyCurrent) override;
57
58 EntityRefBaseList
59 getPredictionEntityRefList(const Ice::Current& c = Ice::emptyCurrent) const override;
60 void setPredictionEntityRefList(const EntityRefBaseList& predictedEntityRefList,
61 const Ice::Current& c = Ice::emptyCurrent) override;
62
63 // streaming operator
64 friend std::ostream&
65 operator<<(std::ostream& stream, const PredictionTaskEntity& rhs)
66 {
67 rhs.output(stream);
68 return stream;
69 }
70
71 friend std::ostream&
72 operator<<(std::ostream& stream, const PredictionTaskEntityPtr& rhs)
73 {
74 rhs->output(stream);
75 return stream;
76 }
77
78 friend std::ostream&
79 operator<<(std::ostream& stream, const PredictionTaskEntityBasePtr& rhs)
80 {
81 stream << PredictionTaskEntityPtr::dynamicCast(rhs);
82 return stream;
83 }
84
85 private:
86 void output(std::ostream& stream) const;
87
88 static const std::string TASK_NAME_ATTRIBUTE;
89 static const std::string PREDICTION_LIST_ATTRIBUTE;
90 };
91
92} // namespace memoryx
constexpr T c
Entity is the superclass for all MemoryX memory chunks.
Definition Entity.h:246
void setPredictionEntityRefList(const EntityRefBaseList &predictedEntityRefList, const Ice::Current &c=Ice::emptyCurrent) override
friend std::ostream & operator<<(std::ostream &stream, const PredictionTaskEntity &rhs)
void setPredictionTaskName(const std::string &predictionTaskName, const Ice::Current &c=Ice::emptyCurrent) override
Ice::ObjectPtr ice_clone() const override
EntityRefBaseList getPredictionEntityRefList(const Ice::Current &c=Ice::emptyCurrent) const override
PredictionTaskEntityPtr clone(const Ice::Current &c=Ice::emptyCurrent) const
std::string getPredictionTaskName(const Ice::Current &c=Ice::emptyCurrent) const override
VirtualRobot headers.
IceInternal::Handle< PredictionTaskEntity > PredictionTaskEntityPtr