EvalCase.hpp
Go to the documentation of this file.
1 //
2 // EvalCase.hpp
3 //
4 // Created on: 05.09.2011
5 // Author: wahnfla
6 //
7 
8 #ifndef EVALCASE_HPP
9 #define EVALCASE_HPP
10 
11 #include "../BasicDatatypes.hpp"
12 #include <vector>
13 
14 namespace datatypes
15 {
16 
17 //
18 // The parameters of an EvalCase. This *is* an EvalCase.
19 //
20 class EvalCase : public BasicData
21 {
22 public:
24  {
25  BLANKING = 0,
26  PIXEL = 1,
27  CONTOUR = 2,
30  };
31 
32  static std::string strategyToString(EvaluationStrategy strategy)
33  {
34  switch (strategy)
35  {
36  case BLANKING:
37  return "BLANKING";
38  case PIXEL:
39  return "PIXEL";
40  case CONTOUR:
41  return "CONTOUR";
42  case IO_MAPPING:
43  return "IO_MAPPING";
44  case FOCALPOSITION:
45  return "FOCALPOSITION";
46  }
47  return "";
48  }
49 
51  {
55  };
56 
59  {
62  };
63 
66  {
68  };
69 
70 // typedef std::vector<InputState> InputStateVector;
71 
72  EvalCase();
73 
74  virtual ~EvalCase();
75 
76  virtual const UINT32 getUsedMemory() const;
77  double getBlankingSize() const;
78  const std::string& getCaseName() const;
79  UINT8 getCaseNumber() const;
80  const std::string& getComment() const;
81  UINT16 getFieldNumber() const;
82  FilterType getFilterType() const;
83 // const InputStateVector& getHardwareInputs() const;
85  double getMaxRadialCorridor() const;
86  double getMinFieldExp() const;
87  UINT8 getOutputNumber() const;
88  UINT32 getResponseTime() const;
91 // UINT8 getStrategy() const;
93  bool isDistDependent() const;
94  bool isResultNegation() const;
95  void setBlankingSize(double blankingSize);
96  void setCaseName(const std::string& caseName);
97  void setCaseNumber(UINT8 caseNumber);
98  void setComment(const std::string& comment);
99  void setDistDependent(bool distDependent);
100  bool getDistDependent();
101  void setFieldNumber(UINT16 fieldNumber);
102  void setFilterType(FilterType filterType);
103 // void setHardwareInputs(const InputStateVector& hardwareInputs);
104 // void setLogicalInputs(const InputStateVector& logicalInputs);
105  void setMaxRadialCorridor(double maxRadialCorridor);
106  void setMinFieldExp(double minFieldExp);
107  void setOutputNumber(UINT8 outputNumber);
108  void setResponseTime(UINT32 responseTime);
109  void setResponseTimeExtended(UINT32 responseTimeExtended);
110  void setResultNegation(bool resultNegation);
111  bool getResultNegation();
112  void setStrategy(EvaluationStrategy strategy);
113  void setVersionNumber(UINT16 versionNumber);
115 
119 
120 private:
121  InputState m_logicalInputState[2]; // two inputs
129 // InputStateVector m_hardwareInputs;
130 // InputStateVector m_logicalInputs;
134  double m_blankingSize;
135  double m_minFieldExp;
138  std::string m_caseName;
139  std::string m_comment;
140 };
141 
142 
143 } // namespace datatypes
144 
145 #endif // EVALCASE_HPP
double m_minFieldExp
[m]; minimum radial distance between field start and end point
Definition: EvalCase.hpp:135
void setMinFieldExp(double minFieldExp)
Definition: EvalCase.cpp:195
void setResponseTime(UINT32 responseTime)
Definition: EvalCase.cpp:205
UINT16 m_outputNumber
output which belongs to this evaluation case
Definition: EvalCase.hpp:128
void setDistDependent(bool distDependent)
Definition: EvalCase.cpp:160
FilterType m_filterType
Definition: EvalCase.hpp:137
void setStrategy(EvaluationStrategy strategy)
Definition: EvalCase.cpp:225
double getMaxRadialCorridor() const
Definition: EvalCase.cpp:77
uint16_t UINT16
ManipulationPrevention m_manipulationPrevention
Definition: EvalCase.hpp:133
void setFieldNumber(UINT16 fieldNumber)
Definition: EvalCase.cpp:170
const std::string & getComment() const
Definition: EvalCase.cpp:51
double getMinFieldExp() const
Definition: EvalCase.cpp:82
bool getResultNegation()
Definition: EvalCase.cpp:220
ManipulationPrevention
Manipulation prevention. If active, shadowing of field parts may trigger an event.
Definition: EvalCase.hpp:58
uint32_t UINT32
const std::string & getCaseName() const
Definition: EvalCase.cpp:41
virtual ~EvalCase()
Definition: EvalCase.cpp:23
FilterType
kind of filter which is connected to evaluation case
Definition: EvalCase.hpp:65
UINT8 getOutputNumber() const
Definition: EvalCase.cpp:87
UINT16 m_fieldNumber
index of field which is connected to evaluation case
Definition: EvalCase.hpp:136
void setCaseName(const std::string &caseName)
Definition: EvalCase.cpp:133
FilterType getFilterType() const
Definition: EvalCase.cpp:61
input is not relevant for this evaluation case
Definition: EvalCase.hpp:52
void setOutputNumber(UINT8 outputNumber)
Definition: EvalCase.cpp:200
double getBlankingSize() const
Definition: EvalCase.cpp:36
UINT32 m_responseTimeExtended
[µs]
Definition: EvalCase.hpp:127
bool isDistDependent() const
Definition: EvalCase.cpp:112
UINT16 getFieldNumber() const
Definition: EvalCase.cpp:56
UINT32 getVersionNumberIntern() const
Definition: EvalCase.cpp:107
UINT32 getResponseTimeExtended() const
Definition: EvalCase.cpp:97
UINT32 getResponseTime() const
Definition: EvalCase.cpp:92
EvaluationStrategy getStrategy() const
Definition: EvalCase.cpp:102
bool m_distDependent
if TRUE field evaluation works distance dependent
Definition: EvalCase.hpp:131
double m_blankingSize
[m]; minimum object size
Definition: EvalCase.hpp:134
InputState m_logicalInputState[2]
Definition: EvalCase.hpp:121
void setVersionNumber(UINT16 versionNumber)
Definition: EvalCase.cpp:233
ManipulationPrevention getManipulationPrevention() const
Definition: EvalCase.cpp:246
void setBlankingSize(double blankingSize)
Definition: EvalCase.cpp:122
UINT8 getCaseNumber() const
Definition: EvalCase.cpp:46
void setLogicalInputState_from_UINT8(UINT8 value)
Definition: EvalCase.cpp:260
bool m_resultNegation
negation of evaluation result
Definition: EvalCase.hpp:125
void setCaseNumber(UINT8 caseNumber)
Definition: EvalCase.cpp:142
void setResultNegation(bool resultNegation)
Definition: EvalCase.cpp:215
UINT16 m_versionNumberIntern
Definition: EvalCase.hpp:122
void setResponseTimeExtended(UINT32 responseTimeExtended)
Definition: EvalCase.cpp:210
EvaluationStrategy m_strategy
Definition: EvalCase.hpp:124
virtual const UINT32 getUsedMemory() const
Definition: EvalCase.cpp:28
void setMaxRadialCorridor(double maxRadialCorridor)
Definition: EvalCase.cpp:190
void setFilterType(FilterType filterType)
Definition: EvalCase.cpp:175
void setManipulationPrevention(ManipulationPrevention manPrev)
Definition: EvalCase.cpp:251
static std::string strategyToString(EvaluationStrategy strategy)
Definition: EvalCase.hpp:32
void setComment(const std::string &comment)
Definition: EvalCase.cpp:151
bool isResultNegation() const
Definition: EvalCase.cpp:117
std::string m_caseName
name of evaluation case is optional
Definition: EvalCase.hpp:138
UINT16 getVersionNumber()
Definition: EvalCase.cpp:241
UINT32 m_responseTime
[µs]
Definition: EvalCase.hpp:126
double m_maxRadialCorridor
[m]; max radial corridor (only active if distance dependency is active)
Definition: EvalCase.hpp:132
std::string m_comment
comment is optional
Definition: EvalCase.hpp:139
const UINT8 getLogicalInputState_as_UINT8() const
Definition: EvalCase.cpp:71
uint8_t UINT8


libsick_ldmrs
Author(s): SICK AG , Martin Günther , Jochen Sprickerhof
autogenerated on Mon Oct 26 2020 03:27:30