6#include <boost/serialization/export.hpp>
21#include "../Scheduler/CommunicationPlace.h"
22#include "../Procedure/ExpectedMentalBelief.h"
26#include <boost/serialization/vector.hpp>
27#include <boost/serialization/shared_ptr.hpp>
28#include <boost/serialization/serialization.hpp>
29#include <boost/archive/text_oarchive.hpp>
30#include <boost/archive/text_iarchive.hpp>
135 std::vector<std::shared_ptr<DecisionGoal>>
goal;
136 std::vector<std::shared_ptr<DecisionStrategy>>
strategy;
137 std::vector<std::shared_ptr<DecisionSubGoal>>
subgoal;
138 std::vector<std::shared_ptr<DecisionDiagnosis>>
diagnosis;
141 std::vector<std::shared_ptr<DecisionAction>>
action;
151 template<
class Archive>
152 void serialize(Archive & ar,
const unsigned int version) {
void replaceObjecByPointerForGroupedInfoActionPack(InfoChunk &)
bool diagnosisIsIncluded(std::string)
DecisionProcedureStep * identifyTheMentalProcedureToBePerformed(std::string, std::string)
void pointToTheNewActionPack(DecisionActionPack *)
std::vector< std::shared_ptr< MentalSupportSystemState > > perceived_support_system_state
void interruptCurrentProcedureStep()
void replaceObjecByPointerForGroupedInfoProcedureStep(InfoChunk &)
void addANewSubGoal(int, int)
DecisionAction * checkExistanceOfAction(std::string)
DecisionSubGoal * getActiveSubGoalPt()
int getTotalNumberOfFailedDiagnosis()
std::string getCurrentDiagnosis()
void interruptCurrentSubGoal()
void pauseCurrenDiagnosisAndAddANewOne(std::string)
void interruptCurrentActionObjective()
std::vector< std::shared_ptr< MentalParameterValue > > perceived_parameter_value
std::vector< std::shared_ptr< DecisionSubGoal > > subgoal
void pointToTheNewGoal(DecisionGoal *)
int ReturnPositionOfOneMentalParameterValue(MentalParameterValue *)
std::string getCurrentProceduralStepName()
void interruptCurrentAction()
DecisionProcedureStep * getCurrentProcedureStepPtr(int)
MentalParameterValue * checkExistanceOfPerceivedParameterValue(std::string)
std::string getCurrentInstinctiveResponseProceduralStepName()
void clearInfoChunkPointers()
bool includeActiveDiagnosis()
void replaceObjecByPointerForGroupedInfoSubGoal(InfoChunk &)
MentalAlarm * checkExistanceOfPerceivedAlarms(std::string)
std::vector< std::shared_ptr< MentalParameterTrend > > perceived_parameter_trend
DecisionStrategy * getActiveStrategyPt()
void replaceObjecByPointerForGroupedInfoStrategy(InfoChunk &)
void interruptCurrentDiagnosis()
std::vector< std::shared_ptr< DecisionStrategy > > strategy
std::string getCurrentProcedureName()
int getTotalNumberOfAlarmPerceived()
bool isThereMentalProcedureWaitingForExecution(std::string, std::string)
void pauseCurrenSubGoalAndAddANewOne(int)
int checkWhetherExpectedParameterValueMatchObservation(KBExpectedParameterValueUnit *)
void replaceObjecByPointerForGroupedInfoAlarm(InfoChunk &)
int ReturnPositionOfOneMentalAlarmInTheVector(MentalAlarm *)
void pauseCurrenGoalAndAddANewOne(int)
DecisionProcedureStep * checkExistanceOfAProcedure(std::string, std::string)
MentalComponentState * checkExistanceOfPerceivedComponentState(std::string)
int checkWhetherExpectedAlarmMatchObservation(KBExpectedAlarmStateUnit *)
void interruptCurrentGoal()
int checkWhetherExpectedComponentStateMatchObservation(KBExpectedComponentStateUnit *)
DecisionGoal * getActiveGoalPt()
std::vector< std::shared_ptr< DecisionAction > > action
void addANewGoal(int, int)
void interruptCurrentStrategy()
void copyInfoChunk(InfoChunk &)
int checkWhetherExpectedSupportSystemStateMatchObservation(KBExpectedSupportSystemStateUnit *)
void pointToTheNewActionObjective(DecisionActionObjective *)
void pointToTheNewProcedureStep(DecisionProcedureStep *)
std::string doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne()
std::vector< std::shared_ptr< DecisionActionPack > > action_pack
void pointToTheNewAction(DecisionAction *)
DecisionProcedureStep * getCurrentInstinctiveResponseProcedurePtr()
std::vector< std::shared_ptr< ExpectedMentalBelief > > mental_belief
void pauseCurrenStrategyAndAddANewOne(int)
void pointToTheNewSubGoal(DecisionSubGoal *)
void replaceObjecByPointerForGroupedInfoGoal(InfoChunk &)
int doneWithCurrentSubGoalAndGoForPreviouslyPausedOne()
void saveInfoChunkToFile(std::ofstream &)
void addANewStrategy(int, int)
void replaceObjecByPointerForGroupedInfoDiagnosis(InfoChunk &)
MentalParameterTrend * checkExistanceOfPerceivedParameterTrend(std::string)
int checkWhetherExpectedParameterTrendMatchObservation(KBExpectedParameterTrendUnit *)
int checkWhetherExpectedParameterDifferenceMatchObservation(KBExpectedParameterDifferenceUnit *)
MentalSupportSystemState * checkExistanceOfPerceivedSupportSystemState(std::string)
void pointToAvtiveGoalAndStrategy(InfoChunk &)
DecisionProcedureStep * checkExistanceOfAnInstinctiveResponseProcedure(std::string, std::string)
void replaceObjecByPointerForGroupedInfoMentalBelief(InfoChunk &)
void serialize(Archive &ar, const unsigned int version)
void addANewDiagnosis(std::string, int)
void pointToTheNewStrategy(DecisionStrategy *)
void pointToTheNewInstinctiveResponseProcedureStep(DecisionProcedureStep *)
int getStateOfAProcedureStep(std::string, std::string)
void replaceObjecByPointerForGroupedInfoSupportSystemState(InfoChunk &)
std::vector< std::shared_ptr< DecisionGoal > > goal
std::vector< std::shared_ptr< DecisionDiagnosis > > diagnosis
int doneWithCurrentStrategyAndGoForPreviouslyPausedOne()
void pointToTheNewDiagnosis(DecisionDiagnosis *)
std::vector< std::shared_ptr< DecisionProcedureStep > > instinctive_response_procedure
std::vector< std::shared_ptr< MentalAlarm > > perceived_alarms
int doneWithCurrentGoalAndGoForPreviouslyPausedOne()
std::vector< std::shared_ptr< MentalComponentState > > perceived_component_state
std::vector< std::shared_ptr< DecisionProcedureStep > > procedure_step
int ReturnPositionOfOneMentalComponentStateInTheVector(MentalComponentState *)
void replaceObjecByPointerForGroupedInfoActionObjective(InfoChunk &)
double getTotalWeightOfAlarmPerceived()
void addNewInstinctiveResponseProcedure(std::string, std::string, int, int, double)
void replaceObjecByPointerForGroupedInfoParameterValue(InfoChunk &)
void setStateOfAProcedureStep(std::string, std::string, int)
void replaceObjecByPointerForGroupedInfoAll(InfoChunk &)
void replaceObjecByPointerForGroupedInfoInstinctiveResponseProcedure(InfoChunk &)
bool activateTheDiagnosis(std::string)
ExpectedMentalBelief * checkExistanceOfMentalBelief(std::string)
void addNewProcedureStep(std::string, std::string, int)
void replaceObjecByPointerForGroupedInfoComponentState(InfoChunk &)
void generateErrorMessage(std::string)
int getMentalPriorityOfAProcedureStep(std::string, std::string)
int getTotalPieceOfInfoPerceived()
void replaceObjecByPointerForGroupedInfoAction(InfoChunk &)
void interruptCurrentActionPack()
int ReturnPositionOfOneMentalSupportSystemStateInTheVector(MentalSupportSystemState *)
std::vector< std::shared_ptr< DecisionActionObjective > > action_objective
std::string getCurrentInstinctiveResponseProcedureName()
void replaceObjecByPointerForGroupedInfoParameterTrend(InfoChunk &)
void retrieveInfoChunkFromFile(std::ifstream &)
void updateActionState(std::string, int)