← Documentation
ADS-IDAC Engine 5.0.0
Communication Class Reference

#include <Communication.h>

Inheritance diagram for Communication:
[legend]

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
 

Detailed Description

Definition at line 19 of file Communication.h.

Constructor & Destructor Documentation

◆ Communication() [1/2]

◆ Communication() [2/2]

Communication::Communication ( int  _sender,
int  _receiver 
)

Definition at line 25 of file Communication.cpp.

References intended_receiver, r5pars_, sender, and time_of_communication.

◆ ~Communication()

Communication::~Communication ( )
virtual

Definition at line 32 of file Communication.cpp.

Member Function Documentation

◆ copyCommunication()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getCommunicationPriority()

int Communication::getCommunicationPriority ( )

Definition at line 42 of file Communication.cpp.

References communication_priority.

Referenced by copyCommunication().

Here is the caller graph for this function:

◆ getIntendedReceiver()

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().

Here is the caller graph for this function:

◆ getSender()

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().

Here is the caller graph for this function:

◆ getTimeOfCommunication()

◆ getTypeOfCommunication()

int Communication::getTypeOfCommunication ( )

Definition at line 45 of file Communication.cpp.

References type_of_communication.

Referenced by copyCommunication().

Here is the caller graph for this function:

◆ getTypeOfPauseActivity()

int Communication::getTypeOfPauseActivity ( )

Definition at line 46 of file Communication.cpp.

References type_of_pause_activity.

Referenced by copyCommunication().

Here is the caller graph for this function:

◆ retrieveCommunicationFromFile()

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().

Here is the caller graph for this function:

◆ saveCommunicationToFile()

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().

Here is the caller graph for this function:

◆ serialize()

template<class Archive >
void Communication::serialize ( Archive &  ar,
const unsigned int  version 
)
inline

◆ setCommunicationPriority()

void Communication::setCommunicationPriority ( int  n)

Definition at line 41 of file Communication.cpp.

References communication_priority.

◆ setIntendedReceiver()

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().

Here is the caller graph for this function:

◆ setSender()

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().

Here is the caller graph for this function:

◆ setSenderAndReceiver()

◆ setTimeOfCommunication()

void Communication::setTimeOfCommunication ( double  x)

Definition at line 40 of file Communication.cpp.

References time_of_communication.

◆ setTypeOfCommunication()

◆ setTypeOfPauseActivity()

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 41 of file Communication.h.

Member Data Documentation

◆ communication_priority

◆ intended_receiver

◆ sender

◆ time_of_communication

double Communication::time_of_communication
private

◆ type_of_communication

int Communication::type_of_communication
private

◆ type_of_pause_activity

int Communication::type_of_pause_activity
private

The documentation for this class was generated from the following files: