← Documentation
ADS-IDAC Engine 5.0.0
MRComponentStateUnit.h
Go to the documentation of this file.
1#pragma once
2
3// MRComponentState.h: interface for the MRComponentState class.
4//
6
7#include "MRStateSchema.h"
8#include <vector>
9#include <memory>
10#include<string>
11#include "SentenceUnit.h"
12#include "MRValueSchema.h" // Added by ClassView
13#include "IDElement.h"
14#include "Statement.h"
15
16
18 public IDElement
19{
20public:
27 void ErrorMessage(std::string str);
31 MRStateSchema * CheckComponentStateWithinTimeRange(float _start, float _end);
32 void PrintMessage(std::string);
33 void AddNewStateForFirstRoundCheck(int, int);
36
40 virtual ~MRComponentStateUnit();
41
42 void AddNewPositionValue(float, int, bool);
43 void AddNewState(int, int, bool);
44
45 int m_CS_type; //type 0: full open or full close; type 1, modulate control, 0-1
48
49
50 std::unique_ptr<MRValueSchema> m_recent_position_value;
51 std::unique_ptr<MRStateSchema> m_recent_state;
52
53 std::vector<std::unique_ptr<MRStateSchema>> m_history_state;
54 std::vector<std::unique_ptr<MRValueSchema>> m_history_position_value;
55
59
60 std::string m_concept_ID;
63
66
67
68};
MRValueSchema * FindAPositionReadingConsistantWithASentenceWithinTimeRange(float _start, float _end, SentenceUnit *_sent_pt)
std::unique_ptr< MRStateSchema > m_recent_state
MRValueSchema * FindTheFirstPositionReadingAfterATime(float _end)
void AddNewState(int, int, bool)
void AddNewStateForFirstRoundCheck(int, int)
std::string m_ID_recent_state_statement
MRValueSchema * FindTheLastPositionReadingBeforeATime(float _start)
MRValueSchema * CheckPositionReadingWithinTimeRange(double, double)
MRStateSchema * CheckTheFirstComponentStateReadingAfterATime(float _end)
MRValueSchema * FindAPositionReadingInconsitantWithASentenceWithinTimeRange(float _start, float _end, SentenceUnit *_sent_pt)
MRStateSchema * CheckComponentStateWithinTimeRange(float _start, float _end)
Statement * m_recent_state_statement
std::string Control_Value_Indicator_ID
void ReadComponentStateIndication(double)
MRStateSchema * CheckLastComponentStateReadingBeforeATime(float _start)
std::string Component_State_Indicator_ID
void AddNewPositionValue(float, int, bool)
void CopyMRComponentStateInfoFromAnother(MRComponentStateUnit *)
std::vector< std::unique_ptr< MRValueSchema > > m_history_position_value
MRValueSchema * FoundAPositionReadingWithinTimeRange(float, float)
Statement * m_recent_action_statement
std::unique_ptr< MRValueSchema > m_recent_position_value
std::vector< std::unique_ptr< MRStateSchema > > m_history_state
void AddNewPositionValueForFirstRoundCheck(float, int)
void ErrorMessage(std::string str)
void PrintMessage(std::string)
void BuildConnectionsForThisMRComponentState(void *)
std::string m_ID_recent_action_statement