← Documentation
ADS-IDAC Engine 5.0.0
RMTokens.h
Go to the documentation of this file.
1#pragma once
2
3// State machine tokens for the ReasonMachine cognitive model.
4//
5// Three independent token systems drive the RM state machines:
6// rm:: — ReasonMachine top-level token (m_RM_Token)
7// inv:: — Investigator token (m_investigator_token)
8// inv_link:: — InvestigatorLink token (m_invest_link_Token)
9//
10// Values are constexpr int (not enum class) because they are stored in
11// int member variables, serialized via Boost as int, and compared against
12// thresholds (e.g., > inv::ActiveThreshold).
13
14namespace rm {
15 constexpr int RoutineMonitor = 10; // default — routine monitoring
16 constexpr int Prioritize = 30; // prioritize investigation
17 constexpr int WorkOnInvestigator = 3000; // work on selected Investigator
18 constexpr int WorkOnInvestigatorLink = 3100; // work on selected InvestigatorLink
19}
20
21namespace inv {
22 // Active states (token <= ActiveThreshold)
23 constexpr int GetCorrespondingKE = 3001; // find matching knowledge element
24 constexpr int FindMatchingStatement = 3002; // find a matching statement
25 constexpr int CheckAvailableFromMR = 3003; // check if info available from MR
26 constexpr int VerifyFromControlPanel = 3004; // verify KE from control panel
27 constexpr int RequestInfoInit = 3005; // request info initiation
28 constexpr int RequestInfoRead = 3006; // request info reading
29 constexpr int CompareKEAndStatement = 3007; // compare KE and statement
30 constexpr int ChooseDownstreamLink = 3008; // choose downstream link for feedback
31 constexpr int DecideWhetherToClose = 3009; // decide whether to close investigator
32 constexpr int SearchPossibleCauses = 3012; // search for possible causes
33 constexpr int RetrieveNextLink = 3013; // retrieve next likely link
34 constexpr int EvaluateNewFeedback = 3014; // evaluate after new feedback
35
36 constexpr int ActiveThreshold = 3029; // tokens > this are terminal
37
38 // Terminal states (token > ActiveThreshold)
39 constexpr int SuccessNotHappened = 3030; // KE didn't happen — closed
40 constexpr int Undetermined = 3031; // could not determine — closed
41 constexpr int NoMatchingKE = 3090; // no corresponding KE found
42 constexpr int CauseUndeterminedFeedback = 3091; // cause undetermined after feedback
43 constexpr int CauseUndetermined = 3097; // cause could not be determined
44 constexpr int CauseFound = 3098; // found the cause — success
45 constexpr int FailedToExplain = 3099; // failed to explain — closed
46}
47
48namespace inv_link {
49 // Active states (token < ActiveThreshold)
50 constexpr int RetrieveNextInvestigator = 3101; // retrieve next investigator
51 constexpr int CheckPathStatus = 3102; // check path status
52 constexpr int FeedbackDetermined = 3103; // feedback: all causes found
53 constexpr int FeedbackPartial = 3104; // feedback: not all causes found
54 constexpr int FeedbackUndetermined = 3105; // feedback: undetermined
55
56 constexpr int ActiveThreshold = 3109; // tokens < this are active
57
58 // Terminal
59 constexpr int TransferOut = 3110; // transfer out — done
60}
Definition: RMTokens.h:21
constexpr int VerifyFromControlPanel
Definition: RMTokens.h:26
constexpr int RequestInfoInit
Definition: RMTokens.h:27
constexpr int FindMatchingStatement
Definition: RMTokens.h:24
constexpr int RetrieveNextLink
Definition: RMTokens.h:33
constexpr int CauseUndetermined
Definition: RMTokens.h:43
constexpr int CauseFound
Definition: RMTokens.h:44
constexpr int SuccessNotHappened
Definition: RMTokens.h:39
constexpr int DecideWhetherToClose
Definition: RMTokens.h:31
constexpr int CheckAvailableFromMR
Definition: RMTokens.h:25
constexpr int ChooseDownstreamLink
Definition: RMTokens.h:30
constexpr int GetCorrespondingKE
Definition: RMTokens.h:23
constexpr int RequestInfoRead
Definition: RMTokens.h:28
constexpr int Undetermined
Definition: RMTokens.h:40
constexpr int NoMatchingKE
Definition: RMTokens.h:41
constexpr int CompareKEAndStatement
Definition: RMTokens.h:29
constexpr int ActiveThreshold
Definition: RMTokens.h:36
constexpr int FailedToExplain
Definition: RMTokens.h:45
constexpr int CauseUndeterminedFeedback
Definition: RMTokens.h:42
constexpr int SearchPossibleCauses
Definition: RMTokens.h:32
constexpr int EvaluateNewFeedback
Definition: RMTokens.h:34
Definition: RMTokens.h:14
constexpr int WorkOnInvestigator
Definition: RMTokens.h:17
constexpr int Prioritize
Definition: RMTokens.h:16
constexpr int WorkOnInvestigatorLink
Definition: RMTokens.h:18