OacStatisticalMeasure.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 2013
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/memorytypes/MemoryEntities.h>
28 
29 namespace memoryx::VariantType
30 {
32  armarx::Variant::addTypeName("::memoryx::OacStatisticalMeasureBase");
33 }
34 
35 namespace memoryx
36 {
39 
40  class OacStatisticalMeasure : public OacStatisticalMeasureBase
41  {
42  public:
44  int getExperimentCount(const Ice::Current& c = Ice::emptyCurrent) const override;
45  void setExperimentCount(int count, const Ice::Current& c = Ice::emptyCurrent) override;
46 
47  int getFailedExperimentCount(const Ice::Current& c = Ice::emptyCurrent) const override;
48  void setFailedExperimentCount(int countFailed,
49  const Ice::Current& c = Ice::emptyCurrent) override;
50 
51 
52  void increaseExperimentCount(int amount = 1);
53  void increaseFailedExperimentCount(int amount = 1);
54 
55  void serialize(const armarx::ObjectSerializerBasePtr& serializer,
56  const Ice::Current& c = Ice::emptyCurrent) const override;
57  void deserialize(const armarx::ObjectSerializerBasePtr& serializer,
58  const Ice::Current& c = Ice::emptyCurrent) override;
59 
60  armarx::VariantDataClassPtr clone(const Ice::Current& c = Ice::emptyCurrent) const override;
61  std::string output(const Ice::Current& c = Ice::emptyCurrent) const override;
62  int getType(const Ice::Current& c = Ice::emptyCurrent) const override;
63 
64  bool validate(const Ice::Current& c = Ice::emptyCurrent) override;
65 
66  Ice::ObjectPtr ice_clone() const override;
67  };
68 } // namespace memoryx
memoryx::OacStatisticalMeasure::getType
int getType(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacStatisticalMeasure.cpp:111
memoryx::OacStatisticalMeasure::getFailedExperimentCount
int getFailedExperimentCount(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacStatisticalMeasure.cpp:48
memoryx::OacStatisticalMeasure
Definition: OacStatisticalMeasure.h:40
memoryx::VariantType
Definition: Affordance.h:31
memoryx::OacStatisticalMeasure::serialize
void serialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacStatisticalMeasure.cpp:72
memoryx
VirtualRobot headers.
Definition: CommonPlacesTester.cpp:48
c
constexpr T c
Definition: UnscentedKalmanFilterTest.cpp:46
memoryx::OacStatisticalMeasure::setExperimentCount
void setExperimentCount(int count, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacStatisticalMeasure.cpp:42
memoryx::OacStatisticalMeasure::ice_clone
Ice::ObjectPtr ice_clone() const override
Definition: OacStatisticalMeasure.cpp:123
memoryx::OacStatisticalMeasure::clone
armarx::VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacStatisticalMeasure.cpp:94
IceInternal::Handle
Definition: forward_declarations.h:8
memoryx::OacStatisticalMeasure::getExperimentCount
int getExperimentCount(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacStatisticalMeasure.cpp:36
memoryx::OacStatisticalMeasure::increaseExperimentCount
void increaseExperimentCount(int amount=1)
Definition: OacStatisticalMeasure.cpp:60
armarx::VariantTypeId
Ice::Int VariantTypeId
Definition: Variant.h:43
memoryx::OacStatisticalMeasure::increaseFailedExperimentCount
void increaseFailedExperimentCount(int amount=1)
Definition: OacStatisticalMeasure.cpp:66
memoryx::OacStatisticalMeasure::setFailedExperimentCount
void setFailedExperimentCount(int countFailed, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacStatisticalMeasure.cpp:54
memoryx::OacStatisticalMeasure::validate
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacStatisticalMeasure.cpp:117
armarx::aron::type::ObjectPtr
std::shared_ptr< Object > ObjectPtr
Definition: Object.h:36
memoryx::OacStatisticalMeasure::deserialize
void deserialize(const armarx::ObjectSerializerBasePtr &serializer, const Ice::Current &c=Ice::emptyCurrent) override
Definition: OacStatisticalMeasure.cpp:83
Variant.h
memoryx::OacStatisticalMeasure::OacStatisticalMeasure
OacStatisticalMeasure()
Definition: OacStatisticalMeasure.cpp:29
memoryx::OacStatisticalMeasure::output
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
Definition: OacStatisticalMeasure.cpp:105
armarx::Variant::addTypeName
static VariantTypeId addTypeName(const std::string &typeName)
Register a new type for the use in a Variant.
Definition: Variant.cpp:869