|
ADS-IDAC Engine 5.0.0
|
#include <Communication.h>
Public Member Functions | |
| Communication () | |
| Communication (int, int) | |
| virtual | ~Communication () |
| void | setSender (int) |
| void | setTypeOfCommunication (int) |
| void | setTypeOfPauseActivity (int) |
| void | setIntendedReceiver (int) |
| void | setTimeOfCommunication (double) |
| void | setSenderAndReceiver (int, int) |
| void | setCommunicationPriority (int) |
| int | getSender () |
| int | getIntendedReceiver () |
| int | getTypeOfCommunication () |
| int | getTypeOfPauseActivity () |
| double | getTimeOfCommunication () |
| int | getCommunicationPriority () |
| void | copyCommunication (Communication &) |
| void | saveCommunicationToFile (std::ofstream &) |
| void | retrieveCommunicationFromFile (std::ifstream &) |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Private Attributes | |
| int | sender |
| int | intended_receiver |
| double | time_of_communication |
| int | type_of_communication |
| int | communication_priority |
| int | type_of_pause_activity |
Friends | |
| class | boost::serialization::access |
Definition at line 19 of file Communication.h.
| Communication::Communication | ( | ) |
Definition at line 16 of file Communication.cpp.
References communication_priority, intended_receiver, sim::None, r5pars_, sender, time_of_communication, type_of_communication, and type_of_pause_activity.
| Communication::Communication | ( | int | _sender, |
| int | _receiver | ||
| ) |
Definition at line 25 of file Communication.cpp.
References intended_receiver, r5pars_, sender, and time_of_communication.
|
virtual |
Definition at line 32 of file Communication.cpp.
| void Communication::copyCommunication | ( | Communication & | _cp | ) |
Definition at line 52 of file Communication.cpp.
References communication_priority, getCommunicationPriority(), getIntendedReceiver(), getSender(), getTimeOfCommunication(), getTypeOfCommunication(), getTypeOfPauseActivity(), intended_receiver, sender, time_of_communication, type_of_communication, and type_of_pause_activity.
Referenced by BranchAction::copyBranchAction(), BranchActionObjective::copyBranchActionObjective(), BranchActionPack::copyBranchActionPack(), BranchDiagnosis::copyBranchDiagnosis(), BranchExpectedAlarmState::copyBranchExpectedAlarmState(), BranchExpectedComponentState::copyBranchExpectedComponentState(), BranchExpectedMentalBelief::copyBranchExpectedMentalBelief(), BranchExpectedParameterDifference::copyBranchExpectedParameterDifference(), BranchExpectedParameterTrend::copyBranchExpectedParameterTrend(), BranchExpectedParameterValue::copyBranchExpectedParameterValue(), BranchExpectedSupportSystemState::copyBranchExpectedSupportSystemState(), BranchGoal::copyBranchGoal(), BranchInfoGatherMode::copyBranchInfoGatherMode(), BranchProcedureStep::copyBranchProcedureStep(), BranchScannedParameter::copyBranchScannedParameter(), BranchStrategy::copyBranchStrategy(), BranchSubGoal::copyBranchSubGoal(), BranchSupportSystemAction::copyBranchSupportSystemAction(), BranchSystemAction::copyBranchSystemAction(), BranchSystemAlarmState::copyBranchSystemAlarmState(), CommunicationAlarm::copyCommunicationAlarm(), CommunicationComponentState::copyCommunicationComponentState(), CommunicationControlCommand::copyCommunicationControlCommand(), CommunicationControlReport::copyCommunicationControlReport(), CommunicationDiagnosis::copyCommunicationDiagnosis(), CommunicationParameterState::copyCommunicationParameterState(), CommunicationParameterTrend::copyCommunicationParameterTrend(), CommunicationParameterValue::copyCommunicationParameterValue(), and CommunicationSupportSystemState::copyCommunicationSupportSystemState().
| int Communication::getCommunicationPriority | ( | ) |
Definition at line 42 of file Communication.cpp.
References communication_priority.
Referenced by copyCommunication().
| int Communication::getIntendedReceiver | ( | ) |
Definition at line 44 of file Communication.cpp.
References intended_receiver.
Referenced by copyCommunication(), ProcedureStepUnit::executeAction(), BranchAction::saveInfoToFile(), BranchActionObjective::saveInfoToFile(), BranchActionPack::saveInfoToFile(), BranchDiagnosis::saveInfoToFile(), BranchExpectedAlarmState::saveInfoToFile(), BranchExpectedComponentState::saveInfoToFile(), BranchExpectedMentalBelief::saveInfoToFile(), BranchExpectedParameterTrend::saveInfoToFile(), BranchExpectedParameterValue::saveInfoToFile(), BranchExpectedSupportSystemState::saveInfoToFile(), BranchScannedParameter::saveInfoToFile(), BranchSupportSystemAction::saveInfoToFile(), BranchSystemAction::saveInfoToFile(), BranchSystemAlarmState::saveInfoToFile(), BranchAction::translateMessage(), BranchActionObjective::translateMessage(), BranchActionPack::translateMessage(), BranchDiagnosis::translateMessage(), BranchExpectedAlarmState::translateMessage(), BranchExpectedComponentState::translateMessage(), BranchExpectedMentalBelief::translateMessage(), BranchExpectedParameterDifference::translateMessage(), BranchExpectedParameterTrend::translateMessage(), BranchExpectedParameterValue::translateMessage(), BranchExpectedSupportSystemState::translateMessage(), BranchGoal::translateMessage(), BranchInfoGatherMode::translateMessage(), BranchProcedureStep::translateMessage(), BranchScannedParameter::translateMessage(), BranchStrategy::translateMessage(), BranchSubGoal::translateMessage(), BranchSupportSystemAction::translateMessage(), BranchSystemAction::translateMessage(), and BranchSystemAlarmState::translateMessage().
| int Communication::getSender | ( | ) |
Definition at line 43 of file Communication.cpp.
References sender.
Referenced by copyCommunication(), ControlPanel::executeRequestToPlant(), BranchAction::saveInfoToFile(), BranchActionObjective::saveInfoToFile(), BranchActionPack::saveInfoToFile(), BranchDiagnosis::saveInfoToFile(), BranchExpectedAlarmState::saveInfoToFile(), BranchExpectedComponentState::saveInfoToFile(), BranchExpectedMentalBelief::saveInfoToFile(), BranchExpectedParameterTrend::saveInfoToFile(), BranchExpectedParameterValue::saveInfoToFile(), BranchExpectedSupportSystemState::saveInfoToFile(), BranchGoal::saveInfoToFile(), BranchInfoGatherMode::saveInfoToFile(), BranchProcedureStep::saveInfoToFile(), BranchScannedParameter::saveInfoToFile(), BranchStrategy::saveInfoToFile(), BranchSubGoal::saveInfoToFile(), BranchSupportSystemAction::saveInfoToFile(), BranchSystemAction::saveInfoToFile(), BranchSystemAlarmState::saveInfoToFile(), BranchAction::translateMessage(), BranchActionObjective::translateMessage(), BranchActionPack::translateMessage(), BranchDiagnosis::translateMessage(), BranchExpectedAlarmState::translateMessage(), BranchExpectedComponentState::translateMessage(), BranchExpectedMentalBelief::translateMessage(), BranchExpectedParameterDifference::translateMessage(), BranchExpectedParameterTrend::translateMessage(), BranchExpectedParameterValue::translateMessage(), BranchExpectedSupportSystemState::translateMessage(), BranchGoal::translateMessage(), BranchInfoGatherMode::translateMessage(), BranchProcedureStep::translateMessage(), BranchScannedParameter::translateMessage(), BranchStrategy::translateMessage(), BranchSubGoal::translateMessage(), BranchSupportSystemAction::translateMessage(), BranchSystemAction::translateMessage(), and BranchSystemAlarmState::translateMessage().
| double Communication::getTimeOfCommunication | ( | ) |
Definition at line 47 of file Communication.cpp.
References time_of_communication.
Referenced by copyCommunication(), BranchAction::saveInfoToFile(), BranchActionObjective::saveInfoToFile(), BranchActionPack::saveInfoToFile(), BranchDiagnosis::saveInfoToFile(), BranchExpectedAlarmState::saveInfoToFile(), BranchExpectedComponentState::saveInfoToFile(), BranchExpectedMentalBelief::saveInfoToFile(), BranchExpectedParameterTrend::saveInfoToFile(), BranchExpectedParameterValue::saveInfoToFile(), BranchExpectedSupportSystemState::saveInfoToFile(), BranchGoal::saveInfoToFile(), BranchInfoGatherMode::saveInfoToFile(), BranchProcedureStep::saveInfoToFile(), BranchScannedParameter::saveInfoToFile(), BranchStrategy::saveInfoToFile(), BranchSubGoal::saveInfoToFile(), BranchSupportSystemAction::saveInfoToFile(), BranchSystemAction::saveInfoToFile(), and BranchSystemAlarmState::saveInfoToFile().
| int Communication::getTypeOfCommunication | ( | ) |
Definition at line 45 of file Communication.cpp.
References type_of_communication.
Referenced by copyCommunication().
| int Communication::getTypeOfPauseActivity | ( | ) |
Definition at line 46 of file Communication.cpp.
References type_of_pause_activity.
Referenced by copyCommunication().
| void Communication::retrieveCommunicationFromFile | ( | std::ifstream & | ) |
Definition at line 65 of file Communication.cpp.
References communication_priority, intended_receiver, sender, time_of_communication, type_of_communication, and type_of_pause_activity.
Referenced by BranchAction::retrieveBranchActionFromFile(), BranchActionObjective::retrieveBranchActionObjectiveFromFile(), BranchActionPack::retrieveBranchActionPackFromFile(), BranchDiagnosis::retrieveBranchDiagnosisFromFile(), BranchExpectedAlarmState::retrieveBranchExpectedAlarmStateFromFile(), BranchExpectedComponentState::retrieveBranchExpectedComponentStateFromFile(), BranchExpectedMentalBelief::retrieveBranchExpectedMentalBeliefFromFile(), BranchExpectedParameterDifference::retrieveBranchExpectedParameterDifferenceFromFile(), BranchExpectedParameterTrend::retrieveBranchExpectedParameterTrendFromFile(), BranchExpectedParameterValue::retrieveBranchExpectedParameterValueFromFile(), BranchExpectedSupportSystemState::retrieveBranchExpectedSupportSystemStateFromFile(), BranchGoal::retrieveBranchGoalFromFile(), BranchInfoGatherMode::retrieveBranchInfoGatherModeFromFile(), BranchProcedureStep::retrieveBranchProcedureStepFromFile(), BranchScannedParameter::retrieveBranchScannedParameterFromFile(), BranchStrategy::retrieveBranchStrategyFromFile(), BranchSubGoal::retrieveBranchSubGoalFromFile(), BranchSupportSystemAction::retrieveBranchSupportSystemActionFromFile(), BranchSystemAction::retrieveBranchSystemActionFromFile(), BranchSystemAlarmState::retrieveBranchSystemAlarmStateFromFile(), CommunicationAlarm::retrieveCommunicationAlarmFromFile(), CommunicationControlCommand::retrieveCommunicationControlCommandFromFile(), CommunicationControlReport::retrieveCommunicationControlReportFromFile(), CommunicationDiagnosis::retrieveCommunicationDiagnosisFromFile(), CommunicationParameterState::retrieveCommunicationParameterStateFromFile(), CommunicationParameterTrend::retrieveCommunicationParameterTrendFromFile(), CommunicationParameterValue::retrieveCommunicationParameterValueFromFile(), and CommunicationSupportSystemState::retrieveCommunicationSupportSystemStateFromFile().
| void Communication::saveCommunicationToFile | ( | std::ofstream & | ) |
Definition at line 60 of file Communication.cpp.
References communication_priority, intended_receiver, sender, time_of_communication, type_of_communication, and type_of_pause_activity.
Referenced by BranchActionObjective::saveBranchActionObjectiveToFile(), BranchActionPack::saveBranchActionPackToFile(), BranchAction::saveBranchActionToFile(), BranchDiagnosis::saveBranchDiagnosisToFile(), BranchExpectedAlarmState::saveBranchExpectedAlarmStateToFile(), BranchExpectedComponentState::saveBranchExpectedComponentStateToFile(), BranchExpectedMentalBelief::saveBranchExpectedMentalBeliefToFile(), BranchExpectedParameterDifference::saveBranchExpectedParameterDifferenceToFile(), BranchExpectedParameterTrend::saveBranchExpectedParameterTrendToFile(), BranchExpectedParameterValue::saveBranchExpectedParameterValueToFile(), BranchExpectedSupportSystemState::saveBranchExpectedSupportSystemStateToFile(), BranchGoal::saveBranchGoalToFile(), BranchInfoGatherMode::saveBranchInfoGatherModeToFile(), BranchProcedureStep::saveBranchProcedureStepToFile(), BranchScannedParameter::saveBranchScannedParameterToFile(), BranchStrategy::saveBranchStrategyToFile(), BranchSubGoal::saveBranchSubGoalToFile(), BranchSupportSystemAction::saveBranchSupportSystemActionToFile(), BranchSystemAction::saveBranchSystemActionToFile(), BranchSystemAlarmState::saveBranchSystemAlarmStateToFile(), CommunicationAlarm::saveCommunicationAlarmToFile(), CommunicationControlCommand::saveCommunicationControlCommandToFile(), CommunicationControlReport::saveCommunicationControlReportToFile(), CommunicationDiagnosis::saveCommunicationDiagnosisToFile(), CommunicationParameterState::saveCommunicationParameterStateToFile(), CommunicationParameterTrend::saveCommunicationParameterTrendToFile(), CommunicationParameterValue::saveCommunicationParameterValueToFile(), and CommunicationSupportSystemState::saveCommunicationSupportSystemStateToFile().
|
inline |
Definition at line 43 of file Communication.h.
References communication_priority, intended_receiver, sender, time_of_communication, type_of_communication, and type_of_pause_activity.
| void Communication::setCommunicationPriority | ( | int | n | ) |
Definition at line 41 of file Communication.cpp.
References communication_priority.
| void Communication::setIntendedReceiver | ( | int | n | ) |
Definition at line 37 of file Communication.cpp.
References intended_receiver.
Referenced by Operator::ActiveFetchAlarmStateInfo(), Operator::ActiveFetchComponentStateInfo(), Operator::ActiveFetchParameterValueInfo(), Operator::ActiveFetchSupportSystemStateInfo(), and OperatorAT::infoChunking().
| void Communication::setSender | ( | int | n | ) |
Definition at line 36 of file Communication.cpp.
References sender.
Referenced by Operator::ActiveFetchAlarmStateInfo(), Operator::ActiveFetchComponentStateInfo(), Operator::ActiveFetchParameterValueInfo(), Operator::ActiveFetchSupportSystemStateInfo(), and OperatorAT::infoChunking().
| void Communication::setSenderAndReceiver | ( | int | _sender, |
| int | _receiver | ||
| ) |
Definition at line 48 of file Communication.cpp.
References intended_receiver, and sender.
Referenced by ExpectationORUnit::assessExpectation(), Operator::checkAndActivateHWKB(), HWReliabilityModule::checkAndActiveComponentFailure(), SupportSystemReliabilityModule::checkAndActiveSupportSystemFailure(), InitiatingEventController::checkAndExecuteInitiatingEvent(), ControlPanel::checkForNewAlarms(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ManeuverActionUnit::executeManeuverControl(), ProcedureStepUnit::executeNonResponseAction(), Operator::generateInfoGatherModeBranch(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), ProcedureStep::oneThroughProcessForProcedureStep(), Operator::performAMentalProcedure(), OperatorDM::performFollowProcedureStrategy(), OperatorDM::performRecoveryAction(), OperatorAT::selectGoal(), OperatorCT::selectGoal(), OperatorDM::selectGoal(), OperatorAT::selectStrategy(), OperatorDM::selectStrategy(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().
| void Communication::setTimeOfCommunication | ( | double | x | ) |
Definition at line 40 of file Communication.cpp.
References time_of_communication.
| void Communication::setTypeOfCommunication | ( | int | n | ) |
Definition at line 38 of file Communication.cpp.
References type_of_communication.
Referenced by CommunicationAlarm::CommunicationAlarm(), CommunicationComponentState::CommunicationComponentState(), CommunicationControlCommand::CommunicationControlCommand(), CommunicationControlReport::CommunicationControlReport(), CommunicationDiagnosis::CommunicationDiagnosis(), CommunicationParameterState::CommunicationParameterState(), CommunicationParameterTrend::CommunicationParameterTrend(), CommunicationParameterValue::CommunicationParameterValue(), and CommunicationSupportSystemState::CommunicationSupportSystemState().
| void Communication::setTypeOfPauseActivity | ( | int | n | ) |
Definition at line 39 of file Communication.cpp.
References type_of_pause_activity.
Referenced by ExpectationORUnit::assessExpectation(), Operator::checkAndActivateHWKB(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ProcedureStepUnit::executeNonResponseAction(), Operator::generateInfoGatherModeBranch(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), ProcedureStep::oneThroughProcessForProcedureStep(), Operator::performAMentalProcedure(), OperatorDM::performFollowProcedureStrategy(), OperatorDM::performRecoveryAction(), OperatorAT::selectGoal(), OperatorCT::selectGoal(), OperatorDM::selectGoal(), OperatorAT::selectStrategy(), OperatorDM::selectStrategy(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().
|
friend |
Definition at line 41 of file Communication.h.
|
private |
Definition at line 57 of file Communication.h.
Referenced by Communication(), copyCommunication(), getCommunicationPriority(), retrieveCommunicationFromFile(), saveCommunicationToFile(), serialize(), and setCommunicationPriority().
|
private |
Definition at line 54 of file Communication.h.
Referenced by Communication(), copyCommunication(), getIntendedReceiver(), retrieveCommunicationFromFile(), saveCommunicationToFile(), serialize(), setIntendedReceiver(), and setSenderAndReceiver().
|
private |
Definition at line 54 of file Communication.h.
Referenced by Communication(), copyCommunication(), getSender(), retrieveCommunicationFromFile(), saveCommunicationToFile(), serialize(), setSender(), and setSenderAndReceiver().
|
private |
Definition at line 55 of file Communication.h.
Referenced by Communication(), copyCommunication(), getTimeOfCommunication(), retrieveCommunicationFromFile(), saveCommunicationToFile(), serialize(), and setTimeOfCommunication().
|
private |
Definition at line 56 of file Communication.h.
Referenced by Communication(), copyCommunication(), getTypeOfCommunication(), retrieveCommunicationFromFile(), saveCommunicationToFile(), serialize(), and setTypeOfCommunication().
|
private |
Definition at line 58 of file Communication.h.
Referenced by Communication(), copyCommunication(), getTypeOfPauseActivity(), retrieveCommunicationFromFile(), saveCommunicationToFile(), serialize(), and setTypeOfPauseActivity().