6#include <boost/serialization/export.hpp>
9#include <boost/archive/binary_oarchive.hpp>
10#include <boost/archive/binary_iarchive.hpp>
48 e->setSender(
e->getIntendedReceiver());
54 e->setSender(
e->getIntendedReceiver());
60 e->setSender(
e->getIntendedReceiver());
66 e->setSender(
e->getIntendedReceiver());
72 e->setSender(
e->getIntendedReceiver());
78 e->setSender(
e->getIntendedReceiver());
84 e->setSender(
e->getIntendedReceiver());
92 auto p = make_shared<BranchSystemAction>();
93 p->copyBranchSystemAction(*
e);
97 auto p = make_shared<BranchSupportSystemAction>();
98 p->copyBranchSupportSystemAction(*
e);
102 auto p = make_shared<BranchSystemAlarmState>();
103 p->copyBranchSystemAlarmState(*
e);
112 for (
auto &
e :
goal) {
e->saveInfoToFile(fout); }
113 for (
auto &
e :
strategy) {
e->saveInfoToFile(fout); }
114 for (
auto &
e :
subgoal) {
e->saveInfoToFile(fout); }
115 for (
auto &
e :
diagnosis) {
e->saveInfoToFile(fout); }
118 for (
auto &
e :
action) {
e->saveInfoToFile(fout); }
134 str +=
e->getDisplayName();
135 probability *=
e->getProbability();
143 str +=
e->getDisplayName();
144 probability *=
e->getProbability();
152 str +=
e->getAlarmName();
158 << hw_first->getTimeOfCommunication() <<
' ' << hw_first->getRemainingTime()
168 str +=
e->getDisplayName();
169 probability *=
e->getProbability();
179 << hw_first->getTimeOfCommunication() <<
' ' << hw_first->getRemainingTime()
190 str +=
e->getDisplayName();
191 probability *=
e->getProbability();
201 << ss_first->getTimeOfCommunication() <<
' ' << ss_first->getRemainingTime()
212 str +=
e->getAlarmName();
218 << na_first->getTimeAtWhichThisAlarmIsActivated() <<
' ' << na_first->getRemainingTime()
235 for (i = 0; i < num; i++) {
240 for (i = 0; i < num; i++) {
245 for (i = 0; i < num; i++) {
246 new_alarm.at(i)->saveBranchSystemAlarmStateToFile(fout);
253 for (i = 0; i < num; i++) {
254 auto p = make_shared<BranchSystemAction>();
255 p->retrieveBranchSystemActionFromFile(fin);
259 for (i = 0; i < num; i++) {
260 auto p = make_shared<BranchSupportSystemAction>();
261 p->retrieveBranchSupportSystemActionFromFile(fin);
265 for (i = 0; i < num; i++) {
266 auto p = make_shared<BranchSystemAlarmState>();
267 p->retrieveBranchSystemAlarmStateFromFile(fin);
std::vector< std::shared_ptr< BranchSubGoal > > subgoal
void copyBranchUnit(BranchUnit &)
std::vector< std::shared_ptr< BranchExpectedParameterTrend > > parameter_trend
std::vector< std::shared_ptr< BranchInfoGatherMode > > info_gather_mode
std::vector< std::shared_ptr< BranchProcedureStep > > instinctive_response_procedure
std::vector< std::shared_ptr< BranchGoal > > goal
void clearBranchUnitAllPointers()
std::vector< std::shared_ptr< BranchActionPack > > action_pack
std::vector< std::shared_ptr< BranchExpectedSupportSystemState > > support_system_state
std::vector< std::shared_ptr< BranchExpectedParameterDifference > > parameter_difference
std::vector< std::shared_ptr< BranchDiagnosis > > diagnosis
int getNumberOfItemInBranchUnit()
std::vector< std::shared_ptr< BranchExpectedMentalBelief > > mental_belief
std::vector< std::shared_ptr< BranchExpectedParameterValue > > parameter_value
std::vector< std::shared_ptr< BranchScannedParameter > > scanned_parameter
std::vector< std::shared_ptr< BranchExpectedComponentState > > component_state
std::vector< std::shared_ptr< BranchStrategy > > strategy
void saveBranchUnitToFile(std::ofstream &)
std::vector< std::shared_ptr< BranchProcedureStep > > procedure_step
int getTotalPiecesOfInfo()
std::vector< std::shared_ptr< BranchExpectedAlarmState > > alarm_state
std::vector< std::shared_ptr< BranchAction > > action
std::vector< std::shared_ptr< BranchActionObjective > > action_objective
void retrieveBranchUnitFromFile(std::ifstream &)
void clearCommunicationPlaceAllPointers()
std::vector< std::shared_ptr< BranchSystemAction > > HW_reliability
void clearCommunicationPlaceAll()
void clearCommunicationPlaceForRestart()
std::vector< std::shared_ptr< BranchSystemAlarmState > > new_alarm
virtual ~CommunicationPlace()
void retrieveCommunicationPlaceFromFile(std::ifstream &)
std::vector< std::shared_ptr< BranchSupportSystemAction > > SS_reliability
void updateSenderReceiverInfo()
void saveInfoToFileAsBranchForADSV1(std::ostream &)
void copyCommunicationPlace(CommunicationPlace &)
void saveCommunicationPlaceToFile(std::ofstream &)
int getNumberOfItemInCommunicationPlace()
int getTotalPiecesOfInfo()