|
ADS-IDAC Engine 5.0.0
|
Single struct holding all mutable simulation state. More...
#include "SimConfig.h"#include "../System/SystemModule.h"#include "../ControlPanel/ControlPanel.h"#include "../Scheduler/Scheduler.h"#include "../Scheduler/InitiatingEventController.h"#include "../Procedure/Procedures.h"#include "../Branch/BranchRecord.h"#include "RestartNodeInfo.h"#include "../HWReliability/HWReliabilityModule.h"#include "../SupportSystemsReliability/SupportSystemReliabilityModule.h"#include "KeyParameterHistory.h"#include "ConvertToString.h"#include "../CalculationAid/CalculationAid.h"#include <deque>#include <map>#include <memory>#include <vector>Go to the source code of this file.
Classes | |
| struct | SimulationContext |
Variables | |
| SimulationContext | g_sim |
| Global simulation context: the single instance, defined in SimulationContext.cpp. More... | |
Single struct holding all mutable simulation state.
Every translation unit that needs simulation state includes this header and accesses the global instance g_sim (members as g_sim.NAME, CLI configuration as g_sim.config.NAME).
Definition in file SimulationContext.h.
|
extern |
Global simulation context: the single instance, defined in SimulationContext.cpp.
Definition at line 7 of file SimulationContext.cpp.
Referenced by ShortTermMemory::activatePausedInfoChunck(), SentenceUnit::ActivationPropagationFromConceptBottomUp(), Operator::ActiveFetchAlarmStateInfo(), Operator::ActiveFetchComponentStateInfo(), Operator::ActiveFetchParameterValueInfo(), Operator::ActiveFetchSupportSystemStateInfo(), BranchRecord::addAnEndState(), KeyParameterHistoryUnit::addDataSet(), KBConcept::AddDataSetOfTheConceptBase(), MRAlarmUnit::AddNewAlarmState(), MRAlarmUnit::AddNewAlarmStateForFirstRoundCheck(), MRComponentStateUnit::AddNewPositionValue(), MRComponentStateUnit::AddNewPositionValueForFirstRoundCheck(), MRParameterUnit::AddNewRate(), MRParameterUnit::AddNewRateForFirstRoundCheck(), MRComponentStateUnit::AddNewState(), MRSupportSystemStateUnit::AddNewState(), MRComponentStateUnit::AddNewStateForFirstRoundCheck(), MRSupportSystemStateUnit::AddNewStateForFirstRoundCheck(), MRParameterUnit::AddNewValue(), MRParameterUnit::AddNewValueForFirstRoundCheck(), Investigator::AddTimeConsumptionInInvestigator(), InvestigatorLink::AddTimeConsumptionInInvestigatorLink(), BranchRecord::appendEndStateSummary(), ExpectationORUnit::assessExpectation(), Investigator::BackwardPropagateConfidenceLevel(), InvestigatorLink::BackwardPropagateConfidenceLevel(), KBConcept::BuidConnectionsWithinKBConcept(), build_serial_checkpoint(), DiagnoseInvestigator::BuildConnectionsForThisDiagnoseInvestigator(), EventSchemaUnit::BuildConnectionsForThisESU(), ReasonMachine::BuildTheConnectionsWithinRM(), ProcedureStepUnit::calculateDynamicHEPMultiplier(), ProcedureStep::calculateProcedureStepStaticHEPMultiplier(), DiagnoseInvestigator::CalculateTheConfidenceLeveloftheDiagnoseInvestigator(), SentenceUnit::ChangActivationOfConceptByID(), HWReliabilityFTUnit::checkAndActivateComponentFailure(), HWReliabilityUnit::checkAndActivateComponentFailure(), Operator::checkAndActivateHWKB(), SupportSystemReliabilityUnit::checkAndActivateSupportSystemFailure(), HWReliabilityModule::checkAndActiveComponentFailure(), SupportSystemReliabilityModule::checkAndActiveSupportSystemFailure(), BranchRecord::checkAndAddBranchCluster(), InitiatingEventController::checkAndExecuteInitiatingEvent(), Operator::checkAndExecuteManeuverAction(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAction(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAlarm(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedComponentState(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterTrend(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterValue(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedSupportSystemState(), Operator::checkAndResetProcedureStep(), Operator::checkCompletenessOfSystemDecomposition(), KBExpectedParameterValueUnit::checkForMatch(), ControlPanel::checkForNewAlarms(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), Scheduler::checkForTerminatingCurrentSequence(), ProcedureStepUnit::checkForTypeOfExpectation(), DiagnosisComponentActionUnit::checkForTypeOfPrerequisite(), ProcedureStepUnit::checkIfIsChangeSystemAction(), InvestigatorLink::CheckThePathStatus3102(), InfoChunk::checkWhetherExpectedParameterValueMatchObservation(), Investigator::ChoseADownstreamInvestigatorLinkToFeedback3008(), Client::Client(), Investigator::CloseThisInvestigator(), Investigator::CompareKEandStatement3007(), compute_ancestry_path(), ExpectationORUnit::copyExpectationORUnit(), Operator::copyOperatorFromRestartInfo(), Operator::copyOperatorFromRestartInfoMultiProcessor(), Operator::copyOperatorToRestartInfo(), ReasonMachine::CopyReasonMachineFromAnotherRM(), Investigator::CrankTheActivationToOne(), InvestigatorLink::CrankTheNextLikelyRetrievedInvestigatorActivationToOne(), Server::dispatch_resume_tasks(), InfoChunk::doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentGoalAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentStrategyAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentSubGoalAndGoForPreviouslyPausedOne(), BranchRecord::endSimulation(), Investigator::EvaluateAfterGetNewFeedback3014(), Client::execute_relap(), ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ManeuverActionUnit::executeManeuverControl(), ProcedureStepUnit::executeNonResponseAction(), ControlPanel::executeRequestToPlant(), ControlPanelControl::executeStateControl(), ControlPanelControl::executeValueControl(), extract_sequence_outputs(), InvestigatorLink::FeedBackToDownstreamInvestigator310331043105(), EventSchemaBase::FindACorrespondingEventSchemaUnitByKE(), Investigator::FindAMatchingStatement3002(), MRComponentStateUnit::FindAPositionReadingConsistantWithASentenceWithinTimeRange(), MRComponentStateUnit::FindAPositionReadingInconsitantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingConsistantWithASentenceWithinTimeRange(), MRParameterUnit::FindAReadingInconsistantWithASentenceWithinTimeRange(), Investigator::FinishThePausedConfidencePropagationBeforeCloseInvestigation(), InvestigatorLink::FinishThePausedConfidencePropagationBeforeCloseInvestigatorLink(), MentalRepresentation::FirstRoundCheckOftheMR(), EventSchemaBase::GenerateANewInvestigatorOrNot(), InfoChunk::generateErrorMessage(), Operator::generateInfoGatherModeBranch(), ReasonMachine::GetAComponentStateImediately(), ControlPanelAlarm::getAlarmFromMap(), ReasonMachine::GetAlarmStateImediately(), ReasonMachine::GetAParameterValueImediately(), ReasonMachine::GetASupportSystemStateImediately(), SystemModule::getComponentFromSystemMap(), ControlPanelControl::getControlFromMap(), SystemDisplay::getCorrespondingHeatStructureValue(), Investigator::GetCorrespondingKE3001(), SystemDisplay::getCorrespondingSystemParameterValue(), polynomial::GetCurveValue(), ControlPanelDisplay::getDisplayFromMap(), HWReliabilityModule::getHWReliabilityFTUnit(), KB::getProcedureNameOfHWDiagnosis(), KB::getStepNameOfHWDiagnosis(), RoutineMonitor::GetTheLongestIntervalRatio(), OperatorAT::identifyRelevantInformation(), OperatorDM::identifyRelevantInformation(), OperatorAT::infoChunking(), OperatorDM::infoChunking(), ControlPanelAlarm::initiateAllAlarms(), Investigator::InitiateBackwardPropagationOfConfidence(), SystemControl::initiateControlValue(), ControlState::initiateDisplayedControlState(), AdsidacCallback::initiationForRestart(), Operator::initiationForSimulation(), Scheduler::initiationForSimulation(), ReasonMachine::InitiationOfReasonMachineFromInputFile(), DiagnoseInvestigator::InitiationOfthisDiagnoseInvestigator(), SymptomInvestigator::InitiationOfthisSymptomInvestigator(), Operator::interruptAllMentalProcedures(), Operator::interruptLowPriorityMentalProcedures(), log_seq_fingerprint(), log_seq_fingerprint_mpi(), main(), Investigator::MarkMHappenIncompleteTrue(), Server::merge_outputs(), AdsidacCallback::onBranchingPoint(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), Investigator::OneStepWorkOnThisInvestigator(), InvestigatorLink::OneStepWorkOnThisInvestigatorLink(), OperatorAT::oneThroughProcessForBlockD(), OperatorDM::oneThroughProcessForBlockD(), OperatorAT::oneThroughProcessForBlockI(), OperatorDM::oneThroughProcessForBlockI(), ProcedureStep::oneThroughProcessForInstinctiveResponseProcedure(), ProcedureStep::oneThroughProcessForProcedureStep(), AdsidacCallback::onEvaluationPoint(), AdsidacCallback::onFirstInit(), AdsidacCallback::onScenarioStart(), KeyParameterHistoryUnit::outputDiagnosisLabelToFile(), KeyParameterHistoryUnit::outputDiagnosisUnitToFile(), KeyParameterHistory::outputHistoryToFile(), KeyParameterHistoryUnit::outputLabelToFile(), KeyParameterHistoryUnit::outputPIFLabelToFile(), KeyParameterHistoryUnit::outputPIFUnitToFile(), KeyParameterHistoryUnit::outputUnitToFile(), Client::parallel_restartforanewsequence_(), Scheduler::parseOptions(), Operator::performAMentalProcedure(), ControlValue::performControl(), ControlState::performDisplayedControlState(), OperatorAT::performFollowInstructionStrategy(), OperatorDM::performFollowProcedureStrategy(), OperatorDM::performRecoveryAction(), ControlState::performValueControl(), InfoChunk::pointToAvtiveGoalAndStrategy(), ReasonMachine::PrintKnowledgeWeb(), ReasonMachine::PrintSemanticBase(), MRAlarmUnit::ReadAlarmIndication(), KBConcept::ReadAntonymBaseFromInputFile(), MRComponentStateUnit::ReadComponentStateIndication(), DiagnoseInvestigator::ReadCurrentProcedureStepInformation(), DiagnosisComponentActionUnit::readDiagnosisComponentPrerequisiteFromFile(), EventSchemaBase::ReadEventSchemaBaseFromInputFile(), KB::readHardWiredDiagnosis(), KB::readIndicatorBiasFactors(), BranchMentalProcedureActivationTime::readInfoFromFile(), BranchProcedureAtionTime::readInfoFromFile(), BranchProcedureControlValue::readInfoFromFile(), CalculationAid::readInfoFromFile(), ControlPanel::readInfoFromFile(), HWReliabilityModule::readInfoFromFile(), Procedures::readInfoFromFile(), InitiatingEventController::readInfoFromFile(), SupportSystemReliabilityModule::readInfoFromFile(), SystemModule::readInfoFromFile(), ManeuverAction::readInfoFromFile(), AlarmComponent::readInfoFromFile(), AlarmParameter::readInfoFromFile(), ControlPanelDisplay::readInfoFromFile(), ControlState::readInfoFromFile(), DisplayComponentState::readInfoFromFile(), InitiatingEventFTUnit::readInfoFromFile(), InitiatingEventUnit::readInfoFromFile(), SupportSystemInitiatingEventUnit::readInfoFromFile(), EventSymptomMatrix::readInfoFromFile(), SPDS::readInfoFromFile(), ProcedureStep::readInfoFromFile(), ProcedureStepUnit::readInfofromFileExpectation(), ProcedureStepUnit::readInfoFromFileNonResponseExit(), InstantiationBase::ReadInstantiationBaseFromInputFile(), KBConcept::ReadKBConceptInfoFromInputFile(), ReasonMachine::ReadKEBaseAndKNFromInputFile(), ReasonMachine::ReadKnowledgeBaseFromInputFile(), KnowledgeUnit::ReadKnowledgeUnitFromInputFile(), MentalRepresentation::ReadMentalRepresentationtInfoFromInputFile(), ReasonMachine::ReadOperatorReasonMachineProfile(), MRParameterUnit::ReadParameterIndication(), MRParameterUnit::ReadParameterRate(), MRParameterUnit::ReadParameterValue(), ProximityModel::ReadProximityModelFromInputFile(), RoutineMonitor::ReadRoutineMonitorInforFromInputFile(), RoutineMonitorUnit::ReadRoutineMonitorUnitInfoFromInputFile(), ReasonMachine::ReadSemanticSentencesFromInputFile(), AnalysisInfoContainerUnit::readStatementFromFile(), MRSupportSystemStateUnit::ReadSupportSystemStateIndication(), KB::readSystemDecompositionKB(), HWReliabilityModule::readSystemOperationReliabilityInfoFromFile(), HWReliabilityModule::readSystemReliabilityFTInfoFromFile(), HWReliabilityModule::readSystemReliabilityInfoFromFile(), KnowledgeElement::ReadThisKEFromFile(), KnowledgeNode::ReadThisKNinfoFromFile(), Statement::RefreshStatementEndTimeToCurrentTime(), Investigator::ReopenThisInvestigator(), InfoChunk::replaceObjecByPointerForGroupedInfoAction(), InfoChunk::replaceObjecByPointerForGroupedInfoActionObjective(), InfoChunk::replaceObjecByPointerForGroupedInfoActionPack(), InfoChunk::replaceObjecByPointerForGroupedInfoAlarm(), InfoChunk::replaceObjecByPointerForGroupedInfoComponentState(), InfoChunk::replaceObjecByPointerForGroupedInfoDiagnosis(), InfoChunk::replaceObjecByPointerForGroupedInfoGoal(), InfoChunk::replaceObjecByPointerForGroupedInfoInstinctiveResponseProcedure(), InfoChunk::replaceObjecByPointerForGroupedInfoMentalBelief(), InfoChunk::replaceObjecByPointerForGroupedInfoParameterTrend(), InfoChunk::replaceObjecByPointerForGroupedInfoParameterValue(), InfoChunk::replaceObjecByPointerForGroupedInfoProcedureStep(), InfoChunk::replaceObjecByPointerForGroupedInfoStrategy(), InfoChunk::replaceObjecByPointerForGroupedInfoSubGoal(), InfoChunk::replaceObjecByPointerForGroupedInfoSupportSystemState(), Investigator::RequestInfoFromControlPanelInititaion3005(), Investigator::RequestInfoFromControlPanelReading3006(), InvestigatorLink::ResetTheLastActivationTimeOfTheNextToBeRetrievedInvestigator(), restart_base_path(), restart_path(), AdsidacCallback::restartForNewSequence(), RelapSolver::restore(), Client::restore_relap_state(), AnalysisInfoContainer::retrieveAnalysisInfoContainerFromFile(), BranchRecord::retrieveBranchRecordFromFile(), CommandControlCenter::retrieveCommandControlCenterFromFile(), ControlPanelDisplay::retrieveControlPanelDisplayFromFile(), ControlPanel::retrieveControlPanelFromFile(), EventSymptomMatrix::retrieveEventSymptomMatrixFromFile(), ExpectationORUnit::retrieveExpectationORUnitFromFile(), HardWiredControlActivity::retrieveHardWiredControlActivityFromFile(), HardWiredMentalBelief::retrieveHardWiredMentalBeliefFromFile(), HardWiredProcedureActivity::retrieveHardWiredProcedureActivityFromFile(), HWReliabilityModule::retrieveHWReliabilityModuleFromFile(), InfoChunkMental::retrieveInfoChunkMentalFromFile(), InitiatingEventController::retrieveInitiatingEventControllerFromFile(), KBExpectedAlarmStateUnit::retrieveKBExpectedAlarmStateUnitFromFile(), KBExpectedComponentStateUnit::retrieveKBExpectedComponentStateUnitFromFile(), KBExpectedParameterTrendUnit::retrieveKBExpectedParameterTrendUnitFromFile(), KBExpectedParameterValueUnit::retrieveKBExpectedParameterValueUnitFromFile(), KBExpectedSupportSystemStateUnit::retrieveKBExpectedSupportSystemStateUnitFromFile(), KB::retrieveKBFromFile(), KBHardWiredUnit::retrieveKBHardWiredUnitFromFile(), KBScannedParameters::retrieveKBSCannedParameterFromFile(), KeyParameterHistory::retrieveKeyParameterHistoryFromFile(), ManeuverAction::retrieveManeuverActionFromFile(), OperatorAT::retrieveOperatorATFromFile(), OperatorDM::retrieveOperatorDMFromFile(), Operator::retrieveOperatorFromFile(), Procedures::retrieveProceduresFromFile(), ProcedureStepUnit::retrieveProcedureStepUnitActionFromFile(), ProcedureStepUnit::retrieveProcedureStepUnitMentalProcedureFromFile(), ProcedureStepUnit::retrieveProcedureStepUnitNonResponseActionFromFile(), ProcedureStepUnit::retrieveProcedureStepUnitScannedParameterFromFile(), BranchRecord::retrieveRecentBranchClusterFromFile(), Scheduler::retrieveSchedulerFromFile(), ShortTermMemory::retrieveShortTermMemoryFromFile(), SupportSystemReliabilityModule::retrieveSupportSystemModuleFromFile(), SystemModule::retrieveSystemModuleFromFile(), InvestigatorLink::RetrieveTheNextLikelyInvestigator3101(), Investigator::RetrieveTheNextLikelyInvestigatorLink3013(), run_merge_only(), save_sequence_outputs(), KBConcept::SaveConceptActivationIntoOutputFile(), ExpectationORUnit::saveExpectationORUnitToFile(), BranchEndState::saveInfoToFile(), AnalysisInfoContainer::saveInfoToFile(), BranchAction::saveInfoToFile(), BranchDiagnosis::saveInfoToFile(), BranchExpectedAlarmState::saveInfoToFile(), BranchExpectedComponentState::saveInfoToFile(), BranchExpectedMentalBelief::saveInfoToFile(), BranchExpectedParameterTrend::saveInfoToFile(), BranchExpectedParameterValue::saveInfoToFile(), BranchExpectedSupportSystemState::saveInfoToFile(), BranchScannedParameter::saveInfoToFile(), BranchSupportSystemAction::saveInfoToFile(), BranchSystemAction::saveInfoToFile(), BranchSystemAlarmState::saveInfoToFile(), BranchCluster::savePENodeToFile(), ProcedureStepUnit::saveProcedureStepUnitNonResponseActionToFile(), RestartNodeInfo::saveRestartNodeInfo(), ReasonMachine::SaveSequenceInfoToFile(), OperatorAT::scanControlPanel(), OperatorDM::scanControlPanel(), Investigator::SearchForPossibleCauses3012(), OperatorAT::selectGoal(), OperatorCT::selectGoal(), OperatorDM::selectGoal(), OperatorAT::selectStrategy(), OperatorDM::selectStrategy(), Client::self_merge_outputs(), BranchProbability::sendBranchInfoToCommandCenter(), BranchRecord::sendCurrentBranchCommandToCommandCenter(), CommandControlCenter::sendInfoToCommunicationPlace(), BranchRecord::sendSpecifiedBranchCommandToCommandCenter(), Server::Server(), SystemDisplay::setCorrespondingSystemParameterUnit(), DiagnosisActionUnit::setPtrToHighPriorityAction(), should_use_memory_restart(), Server::Simulation(), DiagnoseInvestigator::TerminateTheCurrentProcedureStep(), SymptomInvestigator::TrackOneInvestigationCase(), InvestigatorLink::TransferOutOfThisInvestigatorLink3110(), 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(), BranchSystemAlarmState::translateMessage(), DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), AlarmTwoParameterDifference::updateDisplayedAlarmState(), DisplayComponentState::updateDisplayedComponentOperationalState(), ControlState::updateDisplayedControlState(), ControlValue::updateDisplayedControlValue(), DiagnoseInvestigator::UpdateForOtherEvidenceNotListedInEventSchema(), MentalRepresentation::UpdateMRwithNewInference(), EventSymptomMatrix::updateRationalSymptomConfidence(), TimeConstrainedUnit::updateRawData(), MRComponentStateUnit::UpdateTheRelevantInvestigator(), MRParameterUnit::UpdateTheRelevantInvestigator(), MRSupportSystemStateUnit::UpdateTheRelevantInvestigator(), viz_outputs_any(), Investigator::WhetherContinueInvestigationAfterFoundExplanation(), Investigator::WhetherGetInfoFromControlPaneltoVerifyKE3004(), Investigator::WhetherItIsAvailablefromMR3003(), Investigator::WhetherToCloseThisInvestigator3009(), Client::Work(), RoutineMonitor::WorkOnASelectedUnit12(), and Server::write_checkpoint().