|
ADS-IDAC Engine 5.0.0
|
#include <BranchRecord.h>
Public Member Functions | |
| BranchRecord () | |
| Constructs an empty record: no pending forks, recent branch, cluster and end state IDs -1, mother cluster and mother branch IDs 0, recent unconditional probability 1.0, subfolder size 1000. More... | |
| virtual | ~BranchRecord () |
| void | addHWReliabilityBranch (BranchSystemAction *, BranchSystemAction *) |
| Registers a hardware reliability fork with two alternatives (index 0 first). The record takes ownership of both pointers. The hardware branch count becomes the product of the sizes of all pending hardware forks. More... | |
| void | addHWReliabilityBranch (BranchSystemAction *) |
| Registers a hardware reliability fork with a single alternative. Its complement (1 - p) is not represented as a branch; see applyBranchProbabilityFloor(). More... | |
| void | addSSReliabilityBranch (BranchSupportSystemAction *, BranchSupportSystemAction *) |
| Registers a support system reliability fork with two alternatives (index 0 first). Same contract as the hardware overload. More... | |
| void | addSSReliabilityBranch (BranchSupportSystemAction *) |
| Registers a support system reliability fork with a single alternative. More... | |
| void | addSystemAlarms (BranchSystemAlarmState *) |
| Registers a system alarm state. It is not a fork: a copy is attached to every alternative of the next cluster, and alarms alone produce a cluster of one branch. The record takes ownership of the pointer. More... | |
| void | addMentalBelief (int, BranchExpectedMentalBelief *) |
| Crew fork registration for a mental belief; same contract as addGoal(). More... | |
| void | addScannedParameter (int, BranchScannedParameter *) |
| Crew fork registration for a scanned parameter; same contract as addGoal(). More... | |
| void | savePENodeOfABranchClusterToFile (BranchCluster *) |
| Declared only; there is no definition. PE nodes are written by BranchCluster::savePENodeToFile(). More... | |
| void | saveAESNodeToFile (BranchEndState *) |
| Declared only; there is no definition. ES nodes are written by BranchEndState::saveInfoToFile(). More... | |
| void | clearBranches () |
| Drops every pending fork and system alarm and resets the pending branch types and counts. Clusters, end states and IDs are kept. More... | |
| void | initiationForSimulation () |
| Loads the three branch definition tables: procedure action time branches, mental procedure activation time branches and procedure control value branches. More... | |
| void | calculateTotalNumberOfBranch () |
| Sets the total branch count to the product of the nonzero pending counts (ODM, OAT, OCT, hardware, support system). With no fork pending the total is 1 when a system alarm is pending and 0 otherwise. More... | |
| void | applyBranchProbabilityFloor (double floor) |
| Applies the minimum branch probability to every pending fork. More... | |
| int | checkAndAddBranchCluster () |
| Expands the pending forks into a new BranchCluster. More... | |
| void | addCrewContentToExpandedBranch (BranchUnit &, BranchCluster &, int, int, int) |
| Copies the alternatives of one crew fork into the expanded cluster. More... | |
| void | addHWContentToExpandedBranch (MHWReliabilityUnit &, BranchCluster &, int, int) |
| Copies the alternatives of the first pending hardware fork into the expanded cluster (used when exactly one hardware fork is pending). Parameters as in addCrewContentToExpandedBranch(). More... | |
| void | addSSContentToExpandedBranch (MSSReliabilityUnit &, BranchCluster &, int, int) |
| Support system counterpart of addHWContentToExpandedBranch(). More... | |
| void | setIDOfRecentGeneratedBranch (int) |
| void | setIDOfRecentGeneratedES (int) |
| void | setIDOfRecentGeneratedBranchCluster (int) |
| int | getIDOfRecentGeneratedBranch () |
| int | getIDOfRecentGeneratedES () |
| int | getIDOfRecentGeneratedBranchCluster () |
| void | setRecentUnconditionalBranchProbability (double) |
| double | getRecentUnconditionalBranchProbability () |
| void | addAnEndState (BranchEndState *) |
| Closes the running sequence with an end state and takes ownership of it. More... | |
| int | getSizeOfSubFolder () |
| void | setSizeOfSubFolder (int) |
| void | generateRestartFileForRELAP5 () |
| Declared only; there is no definition. More... | |
| void | clearBranchRecordAll () |
| Resets the whole record: clusters, end states, pending forks, the three branch definition tables and all counters. IDs become -1, the recent unconditional probability 0.0 and the subfolder size 0, so the record must be restored or re-initialised before it is used again. More... | |
| void | clearBranchRecordForRestart () |
| Clears the pending forks only (same as clearBranches()). More... | |
| void | setIDOfMotherCluster (int) |
| int | getIDOfMotherCluster () |
| void | setIDOfMotherBranch (int) |
| int | getIDOfMotherBranch () |
| int | getTypeOfODMBranch () |
| int | getTypeOfOATBranch () |
| int | getTypeOfOCTBranch () |
| int | getNumOfODMBranch () |
| int | getNumOfOATBranch () |
| int | getNumOfOCTBranch () |
| int | getTotalNumberOfBranches () |
| int | getNumOfHWReliabilityBranch () |
| BranchCluster * | findBrnachCluster (int) |
| Finds a cluster by ID, searching from the most recent cluster. More... | |
| void | endSimulation () |
Writes ES_summary.txt in the ES directory from the end_state vector: a header line ES# Probability End_time Consequence# Description and one tab-separated line per end state. The file is overwritten, except on a resume whose checkpoint carried no end states and whose ES_summary.txt already exists: then the lines are appended without a header. More... | |
| void | appendEndStateSummary () |
Appends the most recent end state to ES_summary.txt, writing the header first when the file does not exist yet. More... | |
| void | sendCurrentBranchCommandToCommandCenter () |
| Sends the content of the running sequence's alternative of the most recent cluster to the command center and marks it sim::State::Succeed. More... | |
| void | saveBranchRecordToFile (std::ofstream &) |
| Writes the whole record (scalars, clusters, end states, pending forks and the three branch definition tables) to a text restart stream. More... | |
| void | copyBranchRecord (BranchRecord &) |
| Deep-copies another record into this one. Clusters, end states and pending forks are appended, so call it on an empty record. The temporary end state message and consequence are not copied. More... | |
| void | retrieveBranchRecordFromFile (std::ifstream &) |
Reads the layout written by saveBranchRecordToFile and appends what it reads. A stream that does not start with the BranchRecord label sets r5pars_.sim_err. More... | |
| void | saveRecentBranchClusterToFile (std::ofstream &) |
Writes the record scalars and the most recent cluster only (BranchRecord 1), or BranchRecord 0 when there is no cluster, followed by the three branch definition tables. The support system branch count is not written. More... | |
| void | retrieveRecentBranchClusterFromFile (std::ifstream &) |
| Reads the layout written by saveRecentBranchClusterToFile and appends the cluster it reads. More... | |
| void | sendSpecifiedBranchCommandToCommandCenter (int) |
Sends the content of alternative n_th_branch (0-based) of the most recent cluster to the command center, marks it sim::State::Succeed, makes it the mother branch and adopts its unconditional probability as the recent one. With no cluster in the record nothing is sent. An index past the end of the cluster is logged, sets r5pars_.sim_err and makes the pending end state Consequence::AdsSimErr. Each call also appends a "Restart Branch Cluster" line to "err messages.txt". More... | |
| void | saveNumOfBranchInRecentBranchClusterToFile (std::ofstream &) |
| Writes the alternative count of the most recent cluster (0 with no cluster). More... | |
| void | setTempESMessage (std::string) |
| Stores the description of the end state the running sequence will get if it is terminated (set by modules that detect an error or an end condition). More... | |
| void | setTempTypeOfConsequence (Consequence) |
| Stores the consequence of the end state the running sequence will get. More... | |
| std::string | getTempESMessage () |
| Consequence | getTempTypeOfConsequence () |
| template<class Archive > | |
| void | serialize (Archive &ar, const unsigned int version) |
Crew fork registration | |
Each function appends one alternative to the pending crew fork of the given operator (sim::Operator::ODM, OAT or OCT), sets that operator's pending branch type to the type of the item and increments its alternative count. The record takes ownership of the pointer. For any other operator value nothing happens and the pointer is not adopted. The first alternative registered (index 0) is the one the running sequence continues on. An operator's fork holds one type of item per evaluation point: the type set by the last call selects the vector that is expanded. | |
| void | addGoal (int, BranchGoal *) |
| void | addStrategy (int, BranchStrategy *) |
| void | addSubGoal (int, BranchSubGoal *) |
| void | addDiagnosis (int, BranchDiagnosis *) |
| void | addActionObjective (int, BranchActionObjective *) |
| void | addActionPack (int, BranchActionPack *) |
| void | addAction (int, BranchAction *) |
| void | addAlarmState (int, BranchExpectedAlarmState *) |
| void | addComponentState (int, BranchExpectedComponentState *) |
| void | addSupportSystemState (int, BranchExpectedSupportSystemState *) |
| void | addParameterTrend (int, BranchExpectedParameterTrend *) |
| void | addParameterValue (int, BranchExpectedParameterValue *) |
| void | addParameterDifference (int, BranchExpectedParameterDifference *) |
| void | addProcedureStep (int, BranchProcedureStep *) |
| void | addInstinctiveResponseProcedure (int, BranchProcedureStep *) |
| void | addInfoGatherMode (int, BranchInfoGatherMode *) |
Public Attributes | |
| std::vector< std::unique_ptr< BranchCluster > > | branch_cluster |
| All branching points generated so far, in creation order. More... | |
| std::vector< std::unique_ptr< BranchEndState > > | end_state |
| End states of the finished sequences held by this record. More... | |
| BranchUnit | ODM_branch |
| Pending crew forks of the decision maker, action taker and consultant. More... | |
| BranchUnit | OAT_branch |
| BranchUnit | OCT_branch |
| MHWReliabilityUnit | HW_reliability_branch |
| Pending hardware reliability forks (one inner vector per fork). More... | |
| MSSReliabilityUnit | SS_reliability_branch |
| Pending support system reliability forks (one inner vector per fork). More... | |
| std::vector< std::unique_ptr< BranchSystemAlarmState > > | system_branch |
| Pending system alarm states, copied onto every alternative of the next cluster. More... | |
| BranchProcedureAtionTime | source_of_procedure_time_branches |
| BranchMentalProcedureActivationTime | mental_procedure_activation_branches |
| BranchProcedureControlValue | control_value_branches |
| int | num_of_ODM_branch |
| int | num_of_OAT_branch |
| int | num_of_OCT_branch |
| int | num_of_HWReliability_branch |
| int | num_of_SSReliability_branch |
Private Attributes | |
| int | type_of_ODM_branch |
| int | type_of_OAT_branch |
| int | type_of_OCT_branch |
| int | total_number_of_branches |
| int | ID_of_recent_generated_branch |
| int | ID_of_recent_generated_ES |
| int | ID_of_recent_generated_branch_cluster |
| int | ID_of_mother_cluster |
| int | ID_of_mother_branch |
| double | recent_unconditional_branch_probability |
| int | size_of_subfolder |
| std::string | temp_es_message |
| Consequence | temp_type_of_consequence |
Definition at line 66 of file BranchRecord.h.
| BranchRecord::BranchRecord | ( | ) |
Constructs an empty record: no pending forks, recent branch, cluster and end state IDs -1, mother cluster and mother branch IDs 0, recent unconditional probability 1.0, subfolder size 1000.
Definition at line 25 of file BranchRecord.cpp.
References ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, sim::None, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, recent_unconditional_branch_probability, size_of_subfolder, Succeed, temp_type_of_consequence, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
|
virtual |
Definition at line 47 of file BranchRecord.cpp.
References clearBranchRecordAll().
| void BranchRecord::addAction | ( | int | _operator, |
| BranchAction * | _bd | ||
| ) |
Definition at line 170 of file BranchRecord.cpp.
References BranchUnit::action, sim::Action::Action, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeNonResponseAction(), ControlPanel::executeRequestToPlant(), OperatorAT::infoChunking(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), and OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addActionObjective | ( | int | _operator, |
| BranchActionObjective * | _bd | ||
| ) |
Definition at line 137 of file BranchRecord.cpp.
References BranchUnit::action_objective, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Action::Objective, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::addActionPack | ( | int | _operator, |
| BranchActionPack * | _bd | ||
| ) |
Definition at line 154 of file BranchRecord.cpp.
References BranchUnit::action_pack, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, sim::Action::Pack, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::addAlarmState | ( | int | _operator, |
| BranchExpectedAlarmState * | _bd | ||
| ) |
Definition at line 235 of file BranchRecord.cpp.
References BranchUnit::alarm_state, sim::Comm::AlarmState, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by Operator::ActiveFetchAlarmStateInfo(), ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addAnEndState | ( | BranchEndState * | _es | ) |
Closes the running sequence with an end state and takes ownership of it.
Sets r5pars_.csnostop to 3. In console mode the end state receives the next end state ID, the current mother branch ID, the current simulation time and the recent unconditional branch probability, and the mother branch is linked to it (child type sim::Branch::EndState). If the mother cluster cannot be found, r5pars_.terminateall is set. The ES node file is written here (BranchEndState::saveInfoToFile()) only outside an MPI environment; under MPI the client writes it under the global sequence ID.
Definition at line 1189 of file BranchRecord.cpp.
References BranchProbability::child_IDs, SimulationContext::config, Console, end_state, sim::Branch::EndState, BranchCluster::findBranch(), findBrnachCluster(), g_sim, BranchEndState::getIDOfThisEndState(), ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_ES, SimConfig::is_mpi_environment, r5pars_, recent_unconditional_branch_probability, BranchEndState::saveInfoToFile(), BranchProbability::setIDOfTheChildBranchCluster(), BranchEndState::setIDOfTheMotherBranch(), BranchEndState::setIDOfThisEndState(), Probability::setProbability(), Time::setTimeAtWhichThisEventHappen(), and BranchProbability::setTypeOfChild().
Referenced by Scheduler::checkForTerminatingCurrentSequence(), OperatorDM::infoChunking(), main(), AdsidacCallback::onEvaluationPoint(), and OperatorDM::performFollowProcedureStrategy().
| void BranchRecord::addComponentState | ( | int | _operator, |
| BranchExpectedComponentState * | _bd | ||
| ) |
Definition at line 251 of file BranchRecord.cpp.
References BranchUnit::component_state, sim::Comm::ComponentState, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by Operator::ActiveFetchComponentStateInfo(), ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addCrewContentToExpandedBranch | ( | BranchUnit & | _bu, |
| BranchCluster & | bc_ref, | ||
| int | type_of_branch, | ||
| int | num_of_single_element_repeat, | ||
| int | nth_unit_appear | ||
| ) |
Copies the alternatives of one crew fork into the expanded cluster.
| _bu | The operator's pending fork. |
| bc_ref | The cluster being expanded. |
| type_of_branch | The operator's pending branch type; selects the vector of _bu. |
| num_of_single_element_repeat | Number of consecutive cluster alternatives that receive the same fork alternative. |
| nth_unit_appear | 1-based index of the repetition of the whole fork pattern. |
Definition at line 930 of file BranchRecord.cpp.
References BranchUnit::action, sim::Action::Action, BranchUnit::action_objective, BranchUnit::action_pack, BranchUnit::alarm_state, sim::Comm::AlarmState, BranchCluster::all_branch, BranchUnit::component_state, sim::Comm::ComponentState, BranchUnit::diagnosis, sim::Decision::Diagnosis, BranchUnit::goal, sim::Decision::Goal, BranchUnit::info_gather_mode, sim::Branch::InfoGatherMode, BranchUnit::instinctive_response_procedure, sim::Strategy::InstinctiveResponse, BranchUnit::mental_belief, sim::Branch::MentalBelief, sim::Action::Objective, sim::Action::Pack, BranchUnit::parameter_difference, BranchUnit::parameter_trend, BranchUnit::parameter_value, sim::Comm::ParameterDifference, sim::ControlAction::ParameterScan, sim::Comm::ParameterTrend, sim::Comm::ParameterValue, sim::Branch::Procedure, BranchUnit::procedure_step, BranchUnit::scanned_parameter, BranchUnit::strategy, sim::Decision::Strategy, BranchUnit::subgoal, sim::Decision::SubGoal, BranchUnit::support_system_state, and sim::Comm::SupportSystemState.
Referenced by checkAndAddBranchCluster().
| void BranchRecord::addDiagnosis | ( | int | _operator, |
| BranchDiagnosis * | _bd | ||
| ) |
Definition at line 121 of file BranchRecord.cpp.
References BranchUnit::diagnosis, sim::Decision::Diagnosis, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::addGoal | ( | int | _operator, |
| BranchGoal * | _bd | ||
| ) |
Definition at line 71 of file BranchRecord.cpp.
References BranchUnit::goal, sim::Decision::Goal, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by OperatorAT::selectGoal(), OperatorCT::selectGoal(), and OperatorDM::selectGoal().
| void BranchRecord::addHWContentToExpandedBranch | ( | MHWReliabilityUnit & | _bu, |
| BranchCluster & | bc_ref, | ||
| int | num_of_single_element_repeat, | ||
| int | nth_unit_appear | ||
| ) |
Copies the alternatives of the first pending hardware fork into the expanded cluster (used when exactly one hardware fork is pending). Parameters as in addCrewContentToExpandedBranch().
Definition at line 1146 of file BranchRecord.cpp.
References BranchCluster::all_branch, and num_of_HWReliability_branch.
Referenced by checkAndAddBranchCluster().
| void BranchRecord::addHWReliabilityBranch | ( | BranchSystemAction * | _bp1 | ) |
Registers a hardware reliability fork with a single alternative. Its complement (1 - p) is not represented as a branch; see applyBranchProbabilityFloor().
Definition at line 375 of file BranchRecord.cpp.
References HW_reliability_branch, and num_of_HWReliability_branch.
| void BranchRecord::addHWReliabilityBranch | ( | BranchSystemAction * | _bp1, |
| BranchSystemAction * | _bp2 | ||
| ) |
Registers a hardware reliability fork with two alternatives (index 0 first). The record takes ownership of both pointers. The hardware branch count becomes the product of the sizes of all pending hardware forks.
Definition at line 365 of file BranchRecord.cpp.
References HW_reliability_branch, and num_of_HWReliability_branch.
Referenced by HWReliabilityModule::checkAndActiveComponentFailure(), InitiatingEventController::checkAndExecuteInitiatingEvent(), ManeuverActionUnit::executeManeuverControl(), and ControlPanel::executeRequestToPlant().
| void BranchRecord::addInfoGatherMode | ( | int | _operator, |
| BranchInfoGatherMode * | _bigm | ||
| ) |
Definition at line 186 of file BranchRecord.cpp.
References BranchUnit::info_gather_mode, sim::Branch::InfoGatherMode, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by Operator::generateInfoGatherModeBranch().
| void BranchRecord::addInstinctiveResponseProcedure | ( | int | _operator, |
| BranchProcedureStep * | _bd | ||
| ) |
Definition at line 349 of file BranchRecord.cpp.
References BranchUnit::instinctive_response_procedure, sim::Strategy::InstinctiveResponse, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ProcedureStepUnit::executeNonResponseAction(), Operator::performAMentalProcedure(), and OperatorDM::performRecoveryAction().
| void BranchRecord::addMentalBelief | ( | int | _operator, |
| BranchExpectedMentalBelief * | _bemb | ||
| ) |
Crew fork registration for a mental belief; same contract as addGoal().
Definition at line 202 of file BranchRecord.cpp.
References BranchUnit::mental_belief, sim::Branch::MentalBelief, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by ExpectationORUnit::assessExpectation(), and Operator::checkAndActivateHWKB().
| void BranchRecord::addParameterDifference | ( | int | _operator, |
| BranchExpectedParameterDifference * | _bd | ||
| ) |
Definition at line 316 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, BranchUnit::parameter_difference, sim::Comm::ParameterDifference, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addParameterTrend | ( | int | _operator, |
| BranchExpectedParameterTrend * | _bd | ||
| ) |
Definition at line 283 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, BranchUnit::parameter_trend, sim::Comm::ParameterTrend, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addParameterValue | ( | int | _operator, |
| BranchExpectedParameterValue * | _bd | ||
| ) |
Definition at line 299 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, BranchUnit::parameter_value, sim::Comm::ParameterValue, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by Operator::ActiveFetchParameterValueInfo(), ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addProcedureStep | ( | int | _operator, |
| BranchProcedureStep * | _bd | ||
| ) |
Definition at line 333 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, sim::Branch::Procedure, BranchUnit::procedure_step, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by DiagnoseInvestigator::CheckforPotentialProcedureBranching(), ProcedureStepUnit::executeAction(), ProcedureStep::executeInstinctiveResponseProcedureTransfer(), ProcedureStepUnit::executeNonResponseAction(), ProcedureStep::oneThroughProcessForProcedureStep(), OperatorDM::performFollowProcedureStrategy(), and DiagnoseInvestigator::TriggerBranchingWhenClaimADiagnose().
| void BranchRecord::addScannedParameter | ( | int | _operator, |
| BranchScannedParameter * | _bsp | ||
| ) |
Crew fork registration for a scanned parameter; same contract as addGoal().
Definition at line 219 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, sim::ControlAction::ParameterScan, BranchUnit::scanned_parameter, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeNonResponseAction(), OperatorAT::oneThroughProcessForBlockI(), and OperatorDM::oneThroughProcessForBlockI().
| void BranchRecord::addSSContentToExpandedBranch | ( | MSSReliabilityUnit & | _bu, |
| BranchCluster & | bc_ref, | ||
| int | num_of_single_element_repeat, | ||
| int | nth_unit_appear | ||
| ) |
Support system counterpart of addHWContentToExpandedBranch().
Definition at line 1163 of file BranchRecord.cpp.
References BranchCluster::all_branch, and num_of_SSReliability_branch.
Referenced by checkAndAddBranchCluster().
| void BranchRecord::addSSReliabilityBranch | ( | BranchSupportSystemAction * | _bssa | ) |
Registers a support system reliability fork with a single alternative.
Definition at line 394 of file BranchRecord.cpp.
References num_of_SSReliability_branch, and SS_reliability_branch.
| void BranchRecord::addSSReliabilityBranch | ( | BranchSupportSystemAction * | _bssa1, |
| BranchSupportSystemAction * | _bssa2 | ||
| ) |
Registers a support system reliability fork with two alternatives (index 0 first). Same contract as the hardware overload.
Definition at line 384 of file BranchRecord.cpp.
References num_of_SSReliability_branch, and SS_reliability_branch.
Referenced by SupportSystemReliabilityModule::checkAndActiveSupportSystemFailure(), and InitiatingEventController::checkAndExecuteInitiatingEvent().
| void BranchRecord::addStrategy | ( | int | _operator, |
| BranchStrategy * | _bd | ||
| ) |
Definition at line 88 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, BranchUnit::strategy, sim::Decision::Strategy, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by OperatorAT::selectStrategy(), and OperatorDM::selectStrategy().
| void BranchRecord::addSubGoal | ( | int | _operator, |
| BranchSubGoal * | _bd | ||
| ) |
Definition at line 105 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, BranchUnit::subgoal, sim::Decision::SubGoal, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::addSupportSystemState | ( | int | _operator, |
| BranchExpectedSupportSystemState * | _bd | ||
| ) |
Definition at line 267 of file BranchRecord.cpp.
References num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, sim::Operator::OAT, OAT_branch, sim::Operator::OCT, OCT_branch, sim::Operator::ODM, ODM_branch, BranchUnit::support_system_state, sim::Comm::SupportSystemState, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by Operator::ActiveFetchSupportSystemStateInfo(), ExpectationORUnit::assessExpectation(), OperatorAT::infoChunking(), and OperatorAT::performFollowInstructionStrategy().
| void BranchRecord::addSystemAlarms | ( | BranchSystemAlarmState * | _sap | ) |
Registers a system alarm state. It is not a fork: a copy is attached to every alternative of the next cluster, and alarms alone produce a cluster of one branch. The record takes ownership of the pointer.
Definition at line 403 of file BranchRecord.cpp.
References system_branch.
| void BranchRecord::appendEndStateSummary | ( | ) |
Appends the most recent end state to ES_summary.txt, writing the header first when the file does not exist yet.
Definition at line 1329 of file BranchRecord.cpp.
References end_state, g_sim, Scheduler::getESDirectory(), and SimulationContext::SScheduler.
| void BranchRecord::applyBranchProbabilityFloor | ( | double | floor | ) |
Applies the minimum branch probability to every pending fork.
| floor | Conditional probability below which an alternative is not generated. |
In a fork with two or more alternatives, every alternative with index 1 or higher whose probability is below floor is erased (scanning from the last index down to index 1) and its probability is added to alternative 0, the one the running sequence continues on, so the fork still sums to the same total. Alternative 0 is never erased. In a fork with a single alternative of probability p < 1, p is set to 1.0 when the implicit complement (1 - p) is below the single floor. The single floor is the environment variable ADS_BRANCH_FLOOR_SINGLE, read once per process; when it is unset or negative the single floor equals floor. The pending branch counts are updated to the folded fork sizes. A crew fork whose pending type is not one of the expandable types is left unchanged.
Definition at line 539 of file BranchRecord.cpp.
References HW_reliability_branch, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, SS_reliability_branch, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by checkAndAddBranchCluster().
| void BranchRecord::calculateTotalNumberOfBranch | ( | ) |
Sets the total branch count to the product of the nonzero pending counts (ODM, OAT, OCT, hardware, support system). With no fork pending the total is 1 when a system alarm is pending and 0 otherwise.
Definition at line 407 of file BranchRecord.cpp.
References num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, system_branch, and total_number_of_branches.
Referenced by checkAndAddBranchCluster().
| int BranchRecord::checkAndAddBranchCluster | ( | ) |
Expands the pending forks into a new BranchCluster.
The environment variable ADS_BRANCH_FLOOR (default 0.0 = off) is read once per process. When it is above zero, applyBranchProbabilityFloor() runs first, so the fold happens before the cross-product is formed. The cluster then receives one BranchProbability per combination of the pending forks, in the order ODM, OAT, OCT, hardware, support system (the first fork varies slowest), plus a copy of every pending system alarm on each alternative. The cluster records the current simulation time and the RELAP5 restart count (r5pars_.cncount).
In console mode (r5pars_.tsimmode == ConsoleMode::Console) the cluster and branch ID counters are incremented, alternative 0 receives the new branch ID (the other alternatives receive theirs when they are restarted), the cluster is linked to the mother cluster and mother branch, its probability is the mother branch's unconditional probability (1.0 for the first cluster), the conditional and unconditional probability of every alternative is computed, the cluster becomes the new mother (with alternative 0 as mother branch) and is appended to branch_cluster. The pending forks are then cleared (clearBranches()). In any other mode the expanded cluster is discarded, the pending forks are kept and only the size is returned.
Definition at line 556 of file BranchRecord.cpp.
References addCrewContentToExpandedBranch(), addHWContentToExpandedBranch(), addSSContentToExpandedBranch(), applyBranchProbabilityFloor(), sim::Branch::Branch, branch_cluster, calculateTotalNumberOfBranch(), BranchProbability::child_IDs, clearBranches(), Console, BranchSupportSystemAction::copyBranchSupportSystemAction(), BranchSystemAction::copyBranchSystemAction(), SimulationContext::current_seq_events, BranchCluster::findBranch(), findBrnachCluster(), g_sim, getIDOfRecentGeneratedBranchCluster(), BranchProbability::getUnconditionalBranchProbability(), HW_reliability_branch, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, r5pars_, BranchProbability::setIDOfTheChildBranchCluster(), setRecentUnconditionalBranchProbability(), BranchProbability::setTypeOfChild(), SS_reliability_branch, system_branch, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by AdsidacCallback::onEvaluationPoint().
| void BranchRecord::clearBranches | ( | ) |
Drops every pending fork and system alarm and resets the pending branch types and counts. Clusters, end states and IDs are kept.
Definition at line 50 of file BranchRecord.cpp.
References BranchUnit::clearBranchUnit(), HW_reliability_branch, sim::None, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, SS_reliability_branch, system_branch, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by checkAndAddBranchCluster(), clearBranchRecordForRestart(), and AdsidacCallback::onEvaluationPoint().
| void BranchRecord::clearBranchRecordAll | ( | ) |
Resets the whole record: clusters, end states, pending forks, the three branch definition tables and all counters. IDs become -1, the recent unconditional probability 0.0 and the subfolder size 0, so the record must be restored or re-initialised before it is used again.
Definition at line 1238 of file BranchRecord.cpp.
References branch_cluster, BranchMentalProcedureActivationTime::clearBranchMentalProcedureActivationTime(), BranchProcedureAtionTime::clearBranchProcedureAtionTime(), BranchProcedureControlValue::clearBranchProcedureControlValue(), BranchUnit::clearBranchUnit(), control_value_branches, end_state, HW_reliability_branch, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, sim::None, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, recent_unconditional_branch_probability, size_of_subfolder, source_of_procedure_time_branches, SS_reliability_branch, Succeed, system_branch, temp_es_message, temp_type_of_consequence, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
Referenced by main(), and ~BranchRecord().
| void BranchRecord::clearBranchRecordForRestart | ( | ) |
Clears the pending forks only (same as clearBranches()).
Definition at line 68 of file BranchRecord.cpp.
References clearBranches().
Referenced by AdsidacCallback::initiationForRestart().
| void BranchRecord::copyBranchRecord | ( | BranchRecord & | _br | ) |
Deep-copies another record into this one. Clusters, end states and pending forks are appended, so call it on an empty record. The temporary end state message and consequence are not copied.
Definition at line 1582 of file BranchRecord.cpp.
References branch_cluster, control_value_branches, BranchMentalProcedureActivationTime::copyBranchMentalProcedureActivationTime(), BranchProcedureAtionTime::copyBranchProcedureAtionTime(), BranchProcedureControlValue::copyBranchProcedureControlValue(), BranchUnit::copyBranchUnit(), end_state, getIDOfMotherBranch(), getIDOfMotherCluster(), getIDOfRecentGeneratedBranch(), getIDOfRecentGeneratedBranchCluster(), getIDOfRecentGeneratedES(), getNumOfHWReliabilityBranch(), getNumOfOATBranch(), getNumOfOCTBranch(), getNumOfODMBranch(), getRecentUnconditionalBranchProbability(), getSizeOfSubFolder(), getTotalNumberOfBranches(), getTypeOfOATBranch(), getTypeOfOCTBranch(), getTypeOfODMBranch(), HW_reliability_branch, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, recent_unconditional_branch_probability, size_of_subfolder, source_of_procedure_time_branches, SS_reliability_branch, system_branch, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::endSimulation | ( | ) |
Writes ES_summary.txt in the ES directory from the end_state vector: a header line ES# Probability End_time Consequence# Description and one tab-separated line per end state. The file is overwritten, except on a resume whose checkpoint carried no end states and whose ES_summary.txt already exists: then the lines are appended without a header.
Definition at line 1304 of file BranchRecord.cpp.
References SimulationContext::config, end_state, g_sim, Scheduler::getESDirectory(), SimConfig::resume_file, SimConfig::resume_has_end_states, and SimulationContext::SScheduler.
Referenced by main().
| BranchCluster * BranchRecord::findBrnachCluster | ( | int | _id | ) |
Finds a cluster by ID, searching from the most recent cluster.
Definition at line 1274 of file BranchRecord.cpp.
References branch_cluster.
Referenced by addAnEndState(), checkAndAddBranchCluster(), compute_ancestry_path(), AdsidacCallback::initiationForRestart(), log_seq_fingerprint_mpi(), AdsidacCallback::onBranchingPoint(), and Client::parallel_restartforanewsequence_().
| void BranchRecord::generateRestartFileForRELAP5 | ( | ) |
Declared only; there is no definition.
| int BranchRecord::getIDOfMotherBranch | ( | ) |
Definition at line 1349 of file BranchRecord.cpp.
References ID_of_mother_branch.
Referenced by Scheduler::checkForTerminatingCurrentSequence(), and copyBranchRecord().
| int BranchRecord::getIDOfMotherCluster | ( | ) |
Definition at line 1347 of file BranchRecord.cpp.
References ID_of_mother_cluster.
Referenced by copyBranchRecord().
| int BranchRecord::getIDOfRecentGeneratedBranch | ( | ) |
Definition at line 1183 of file BranchRecord.cpp.
References ID_of_recent_generated_branch.
Referenced by build_serial_checkpoint(), copyBranchRecord(), OperatorDM::infoChunking(), AdsidacCallback::initiationForRestart(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), ProcedureStep::oneThroughProcessForInstinctiveResponseProcedure(), ProcedureStep::oneThroughProcessForProcedureStep(), Client::parallel_restartforanewsequence_(), and DiagnosisActionUnit::setPtrToHighPriorityAction().
| int BranchRecord::getIDOfRecentGeneratedBranchCluster | ( | ) |
Definition at line 1185 of file BranchRecord.cpp.
References ID_of_recent_generated_branch_cluster.
Referenced by checkAndAddBranchCluster(), copyBranchRecord(), AdsidacCallback::onEvaluationPoint(), and RestartNodeInfo::saveRestartNodeInfo().
| int BranchRecord::getIDOfRecentGeneratedES | ( | ) |
Definition at line 1184 of file BranchRecord.cpp.
References ID_of_recent_generated_ES.
Referenced by build_serial_checkpoint(), copyBranchRecord(), main(), AdsidacCallback::onEvaluationPoint(), KeyParameterHistory::outputHistoryToFile(), AnalysisInfoContainer::saveInfoToFile(), ReasonMachine::SaveSequenceInfoToFile(), and Server::write_checkpoint().
| int BranchRecord::getNumOfHWReliabilityBranch | ( | ) |
Definition at line 1579 of file BranchRecord.cpp.
References num_of_HWReliability_branch.
Referenced by copyBranchRecord().
| int BranchRecord::getNumOfOATBranch | ( | ) |
Definition at line 1577 of file BranchRecord.cpp.
References num_of_OAT_branch.
Referenced by copyBranchRecord(), MentalRepresentation::FirstRoundCheckOftheMR(), Investigator::RequestInfoFromControlPanelReading3006(), and RoutineMonitor::WorkOnASelectedUnit12().
| int BranchRecord::getNumOfOCTBranch | ( | ) |
Definition at line 1578 of file BranchRecord.cpp.
References num_of_OCT_branch.
Referenced by copyBranchRecord().
| int BranchRecord::getNumOfODMBranch | ( | ) |
Definition at line 1576 of file BranchRecord.cpp.
References num_of_ODM_branch.
Referenced by copyBranchRecord(), MentalRepresentation::FirstRoundCheckOftheMR(), Investigator::RequestInfoFromControlPanelReading3006(), and RoutineMonitor::WorkOnASelectedUnit12().
| double BranchRecord::getRecentUnconditionalBranchProbability | ( | ) |
Definition at line 1188 of file BranchRecord.cpp.
References recent_unconditional_branch_probability.
Referenced by Scheduler::checkForTerminatingCurrentSequence(), and copyBranchRecord().
| int BranchRecord::getSizeOfSubFolder | ( | ) |
Definition at line 1236 of file BranchRecord.cpp.
References size_of_subfolder.
Referenced by copyBranchRecord(), and BranchEndState::saveInfoToFile().
| string BranchRecord::getTempESMessage | ( | ) |
Definition at line 1642 of file BranchRecord.cpp.
References temp_es_message.
Referenced by Scheduler::checkForTerminatingCurrentSequence().
| Consequence BranchRecord::getTempTypeOfConsequence | ( | ) |
Definition at line 1643 of file BranchRecord.cpp.
References temp_type_of_consequence.
Referenced by Scheduler::checkForTerminatingCurrentSequence().
| int BranchRecord::getTotalNumberOfBranches | ( | ) |
Definition at line 1580 of file BranchRecord.cpp.
References total_number_of_branches.
Referenced by copyBranchRecord().
| int BranchRecord::getTypeOfOATBranch | ( | ) |
Definition at line 1574 of file BranchRecord.cpp.
References type_of_OAT_branch.
Referenced by copyBranchRecord().
| int BranchRecord::getTypeOfOCTBranch | ( | ) |
Definition at line 1575 of file BranchRecord.cpp.
References type_of_OCT_branch.
Referenced by copyBranchRecord().
| int BranchRecord::getTypeOfODMBranch | ( | ) |
Definition at line 1573 of file BranchRecord.cpp.
References type_of_ODM_branch.
Referenced by copyBranchRecord().
| void BranchRecord::initiationForSimulation | ( | ) |
Loads the three branch definition tables: procedure action time branches, mental procedure activation time branches and procedure control value branches.
Definition at line 1644 of file BranchRecord.cpp.
References control_value_branches, mental_procedure_activation_branches, BranchMentalProcedureActivationTime::readInfoFromFile(), BranchProcedureAtionTime::readInfoFromFile(), BranchProcedureControlValue::readInfoFromFile(), and source_of_procedure_time_branches.
Referenced by Client::Client(), and main().
| void BranchRecord::retrieveBranchRecordFromFile | ( | std::ifstream & | ) |
Reads the layout written by saveBranchRecordToFile and appends what it reads. A stream that does not start with the BranchRecord label sets r5pars_.sim_err.
Definition at line 1410 of file BranchRecord.cpp.
References SimulationContext::Branch_center, branch_cluster, control_value_branches, end_state, g_sim, HW_reliability_branch, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, NoKB, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, r5pars_, recent_unconditional_branch_probability, BranchProcedureControlValue::retreiveBranchProcedureControlValueFromFile(), BranchMentalProcedureActivationTime::retrieveBranchMentalProcedureActivationTimeFromFile(), BranchProcedureAtionTime::retrieveBranchProcedureAtionTimeFromFile(), BranchUnit::retrieveBranchUnitFromFile(), setTempESMessage(), setTempTypeOfConsequence(), size_of_subfolder, source_of_procedure_time_branches, SS_reliability_branch, system_branch, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::retrieveRecentBranchClusterFromFile | ( | std::ifstream & | ) |
Reads the layout written by saveRecentBranchClusterToFile and appends the cluster it reads.
Definition at line 1529 of file BranchRecord.cpp.
References AdsSimErr, SimulationContext::Branch_center, branch_cluster, control_value_branches, g_sim, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, r5pars_, recent_unconditional_branch_probability, BranchProcedureControlValue::retreiveBranchProcedureControlValueFromFile(), BranchMentalProcedureActivationTime::retrieveBranchMentalProcedureActivationTimeFromFile(), BranchProcedureAtionTime::retrieveBranchProcedureAtionTimeFromFile(), setTempESMessage(), setTempTypeOfConsequence(), size_of_subfolder, source_of_procedure_time_branches, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::saveAESNodeToFile | ( | BranchEndState * | ) |
Declared only; there is no definition. ES nodes are written by BranchEndState::saveInfoToFile().
| void BranchRecord::saveBranchRecordToFile | ( | std::ofstream & | ) |
Writes the whole record (scalars, clusters, end states, pending forks and the three branch definition tables) to a text restart stream.
Definition at line 1350 of file BranchRecord.cpp.
References branch_cluster, control_value_branches, end_state, HW_reliability_branch, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, recent_unconditional_branch_probability, BranchMentalProcedureActivationTime::saveBranchMentalProcedureActivationTimeToFile(), BranchProcedureAtionTime::saveBranchProcedureAtionTimeToFile(), BranchProcedureControlValue::saveBranchProcedureControlValueToFile(), BranchUnit::saveBranchUnitToFile(), size_of_subfolder, source_of_procedure_time_branches, SS_reliability_branch, system_branch, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::saveNumOfBranchInRecentBranchClusterToFile | ( | std::ofstream & | ) |
Writes the alternative count of the most recent cluster (0 with no cluster).
Definition at line 1519 of file BranchRecord.cpp.
References branch_cluster.
| void BranchRecord::savePENodeOfABranchClusterToFile | ( | BranchCluster * | ) |
Declared only; there is no definition. PE nodes are written by BranchCluster::savePENodeToFile().
| void BranchRecord::saveRecentBranchClusterToFile | ( | std::ofstream & | ) |
Writes the record scalars and the most recent cluster only (BranchRecord 1), or BranchRecord 0 when there is no cluster, followed by the three branch definition tables. The support system branch count is not written.
Definition at line 1490 of file BranchRecord.cpp.
References branch_cluster, control_value_branches, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, recent_unconditional_branch_probability, BranchMentalProcedureActivationTime::saveBranchMentalProcedureActivationTimeToFile(), BranchProcedureAtionTime::saveBranchProcedureAtionTimeToFile(), BranchProcedureControlValue::saveBranchProcedureControlValueToFile(), size_of_subfolder, source_of_procedure_time_branches, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::sendCurrentBranchCommandToCommandCenter | ( | ) |
Sends the content of the running sequence's alternative of the most recent cluster to the command center and marks it sim::State::Succeed.
In console mode the alternative is the one whose ID equals the recent branch ID (alternative 0 of a new cluster); in other modes it is the first alternative not yet marked sim::State::Succeed. If the cluster or the alternative is not found, the error is logged, r5pars_.sim_err is set and the pending end state becomes Consequence::AdsSimErr.
Definition at line 839 of file BranchRecord.cpp.
References AdsSimErr, SimulationContext::Branch_center, branch_cluster, Console, g_sim, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, r5pars_, setTempESMessage(), setTempTypeOfConsequence(), and sim::State::Succeed.
Referenced by AdsidacCallback::onEvaluationPoint().
| void BranchRecord::sendSpecifiedBranchCommandToCommandCenter | ( | int | n_th_branch | ) |
Sends the content of alternative n_th_branch (0-based) of the most recent cluster to the command center, marks it sim::State::Succeed, makes it the mother branch and adopts its unconditional probability as the recent one. With no cluster in the record nothing is sent. An index past the end of the cluster is logged, sets r5pars_.sim_err and makes the pending end state Consequence::AdsSimErr. Each call also appends a "Restart Branch Cluster" line to "err messages.txt".
Definition at line 889 of file BranchRecord.cpp.
References AdsSimErr, SimulationContext::Branch_center, branch_cluster, g_sim, BranchProbability::getIDOfThisBranch(), r5pars_, BranchProbability::sendBranchInfoToCommandCenter(), setIDOfMotherBranch(), setRecentUnconditionalBranchProbability(), StateOfActivation::setStateOfActivation(), setTempESMessage(), setTempTypeOfConsequence(), and sim::State::Succeed.
|
inline |
Definition at line 300 of file BranchRecord.h.
References branch_cluster, control_value_branches, end_state, HW_reliability_branch, ID_of_mother_branch, ID_of_mother_cluster, ID_of_recent_generated_branch, ID_of_recent_generated_branch_cluster, ID_of_recent_generated_ES, mental_procedure_activation_branches, num_of_HWReliability_branch, num_of_OAT_branch, num_of_OCT_branch, num_of_ODM_branch, num_of_SSReliability_branch, OAT_branch, OCT_branch, ODM_branch, recent_unconditional_branch_probability, size_of_subfolder, source_of_procedure_time_branches, SS_reliability_branch, system_branch, temp_es_message, temp_type_of_consequence, total_number_of_branches, type_of_OAT_branch, type_of_OCT_branch, and type_of_ODM_branch.
| void BranchRecord::setIDOfMotherBranch | ( | int | n | ) |
Definition at line 1348 of file BranchRecord.cpp.
References ID_of_mother_branch.
Referenced by AdsidacCallback::initiationForRestart(), Client::parallel_restartforanewsequence_(), and sendSpecifiedBranchCommandToCommandCenter().
| void BranchRecord::setIDOfMotherCluster | ( | int | n | ) |
Definition at line 1346 of file BranchRecord.cpp.
References ID_of_mother_cluster.
Referenced by AdsidacCallback::initiationForRestart(), and Client::parallel_restartforanewsequence_().
| void BranchRecord::setIDOfRecentGeneratedBranch | ( | int | n | ) |
Definition at line 1180 of file BranchRecord.cpp.
References ID_of_recent_generated_branch.
Referenced by AdsidacCallback::initiationForRestart(), main(), Client::parallel_restartforanewsequence_(), and Server::write_checkpoint().
| void BranchRecord::setIDOfRecentGeneratedBranchCluster | ( | int | n | ) |
Definition at line 1182 of file BranchRecord.cpp.
References ID_of_recent_generated_branch_cluster.
Referenced by main(), Client::parallel_restartforanewsequence_(), and Server::write_checkpoint().
| void BranchRecord::setIDOfRecentGeneratedES | ( | int | n | ) |
Definition at line 1181 of file BranchRecord.cpp.
References ID_of_recent_generated_ES.
Referenced by main(), Client::parallel_restartforanewsequence_(), save_sequence_outputs(), and Server::write_checkpoint().
| void BranchRecord::setRecentUnconditionalBranchProbability | ( | double | x | ) |
Definition at line 1187 of file BranchRecord.cpp.
References recent_unconditional_branch_probability.
Referenced by checkAndAddBranchCluster(), AdsidacCallback::initiationForRestart(), Client::parallel_restartforanewsequence_(), and sendSpecifiedBranchCommandToCommandCenter().
| void BranchRecord::setSizeOfSubFolder | ( | int | n | ) |
Definition at line 1237 of file BranchRecord.cpp.
References size_of_subfolder.
| void BranchRecord::setTempESMessage | ( | std::string | ) |
Stores the description of the end state the running sequence will get if it is terminated (set by modules that detect an error or an end condition).
Definition at line 1640 of file BranchRecord.cpp.
References temp_es_message.
Referenced by ShortTermMemory::activatePausedInfoChunck(), ExpectationORUnit::assessExpectation(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAction(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAlarm(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedComponentState(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterTrend(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterValue(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedSupportSystemState(), Operator::checkCompletenessOfSystemDecomposition(), KBExpectedParameterValueUnit::checkForMatch(), ProcedureStepUnit::checkForTypeOfExpectation(), DiagnosisComponentActionUnit::checkForTypeOfPrerequisite(), InfoChunk::checkWhetherExpectedParameterValueMatchObservation(), ExpectationORUnit::copyExpectationORUnit(), InfoChunk::doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentGoalAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentStrategyAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentSubGoalAndGoForPreviouslyPausedOne(), ProcedureStepUnit::executeAction(), ControlPanel::executeRequestToPlant(), ControlPanelControl::executeStateControl(), ControlPanelControl::executeValueControl(), InfoChunk::generateErrorMessage(), ControlPanelAlarm::getAlarmFromMap(), SystemModule::getComponentFromSystemMap(), ControlPanelControl::getControlFromMap(), SystemDisplay::getCorrespondingHeatStructureValue(), SystemDisplay::getCorrespondingSystemParameterValue(), ControlPanelDisplay::getDisplayFromMap(), HWReliabilityModule::getHWReliabilityFTUnit(), KB::getProcedureNameOfHWDiagnosis(), KB::getStepNameOfHWDiagnosis(), ControlPanelAlarm::initiateAllAlarms(), SystemControl::initiateControlValue(), ControlState::initiateDisplayedControlState(), AdsidacCallback::initiationForRestart(), Operator::initiationForSimulation(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), Operator::performAMentalProcedure(), ControlValue::performControl(), ControlState::performDisplayedControlState(), ControlState::performValueControl(), InfoChunk::pointToAvtiveGoalAndStrategy(), DiagnosisComponentActionUnit::readDiagnosisComponentPrerequisiteFromFile(), KB::readHardWiredDiagnosis(), KB::readIndicatorBiasFactors(), ControlPanel::readInfoFromFile(), ManeuverAction::readInfoFromFile(), AlarmComponent::readInfoFromFile(), AlarmParameter::readInfoFromFile(), ControlPanelDisplay::readInfoFromFile(), ControlState::readInfoFromFile(), DisplayComponentState::readInfoFromFile(), InitiatingEventUnit::readInfoFromFile(), EventSymptomMatrix::readInfoFromFile(), SPDS::readInfoFromFile(), ProcedureStep::readInfoFromFile(), ProcedureStepUnit::readInfofromFileExpectation(), ProcedureStepUnit::readInfoFromFileNonResponseExit(), AnalysisInfoContainerUnit::readStatementFromFile(), KB::readSystemDecompositionKB(), HWReliabilityModule::readSystemOperationReliabilityInfoFromFile(), HWReliabilityModule::readSystemReliabilityFTInfoFromFile(), HWReliabilityModule::readSystemReliabilityInfoFromFile(), 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(), AnalysisInfoContainer::retrieveAnalysisInfoContainerFromFile(), 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(), retrieveRecentBranchClusterFromFile(), Scheduler::retrieveSchedulerFromFile(), ShortTermMemory::retrieveShortTermMemoryFromFile(), SupportSystemReliabilityModule::retrieveSupportSystemModuleFromFile(), SystemModule::retrieveSystemModuleFromFile(), ExpectationORUnit::saveExpectationORUnitToFile(), ProcedureStepUnit::saveProcedureStepUnitNonResponseActionToFile(), sendCurrentBranchCommandToCommandCenter(), sendSpecifiedBranchCommandToCommandCenter(), SystemDisplay::setCorrespondingSystemParameterUnit(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), AlarmTwoParameterDifference::updateDisplayedAlarmState(), DisplayComponentState::updateDisplayedComponentOperationalState(), ControlState::updateDisplayedControlState(), ControlValue::updateDisplayedControlValue(), and EventSymptomMatrix::updateRationalSymptomConfidence().
| void BranchRecord::setTempTypeOfConsequence | ( | Consequence | n | ) |
Stores the consequence of the end state the running sequence will get.
Definition at line 1641 of file BranchRecord.cpp.
References temp_type_of_consequence.
Referenced by ShortTermMemory::activatePausedInfoChunck(), ExpectationORUnit::assessExpectation(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAction(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedAlarm(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedComponentState(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterTrend(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedParameterValue(), ShortTermMemory::checkAndGenerateInfoChunkMentalForRelatedSupportSystemState(), Operator::checkCompletenessOfSystemDecomposition(), KBExpectedParameterValueUnit::checkForMatch(), ProcedureStepUnit::checkForTypeOfExpectation(), DiagnosisComponentActionUnit::checkForTypeOfPrerequisite(), InfoChunk::checkWhetherExpectedParameterValueMatchObservation(), ExpectationORUnit::copyExpectationORUnit(), InfoChunk::doneWithCurrentDiagnosisAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentGoalAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentStrategyAndGoForPreviouslyPausedOne(), InfoChunk::doneWithCurrentSubGoalAndGoForPreviouslyPausedOne(), ProcedureStepUnit::executeAction(), ControlPanel::executeRequestToPlant(), ControlPanelControl::executeStateControl(), ControlPanelControl::executeValueControl(), InfoChunk::generateErrorMessage(), ControlPanelAlarm::getAlarmFromMap(), SystemModule::getComponentFromSystemMap(), ControlPanelControl::getControlFromMap(), SystemDisplay::getCorrespondingHeatStructureValue(), SystemDisplay::getCorrespondingSystemParameterValue(), ControlPanelDisplay::getDisplayFromMap(), HWReliabilityModule::getHWReliabilityFTUnit(), KB::getProcedureNameOfHWDiagnosis(), KB::getStepNameOfHWDiagnosis(), ControlPanelAlarm::initiateAllAlarms(), SystemControl::initiateControlValue(), ControlState::initiateDisplayedControlState(), AdsidacCallback::initiationForRestart(), Operator::initiationForSimulation(), DiagnosisActionModule::onceThroughProcessForReasoningStrategy(), Operator::performAMentalProcedure(), ControlValue::performControl(), ControlState::performDisplayedControlState(), ControlState::performValueControl(), InfoChunk::pointToAvtiveGoalAndStrategy(), DiagnosisComponentActionUnit::readDiagnosisComponentPrerequisiteFromFile(), KB::readHardWiredDiagnosis(), KB::readIndicatorBiasFactors(), ControlPanel::readInfoFromFile(), ManeuverAction::readInfoFromFile(), AlarmComponent::readInfoFromFile(), AlarmParameter::readInfoFromFile(), ControlPanelDisplay::readInfoFromFile(), ControlState::readInfoFromFile(), DisplayComponentState::readInfoFromFile(), InitiatingEventUnit::readInfoFromFile(), EventSymptomMatrix::readInfoFromFile(), SPDS::readInfoFromFile(), ProcedureStep::readInfoFromFile(), ProcedureStepUnit::readInfofromFileExpectation(), ProcedureStepUnit::readInfoFromFileNonResponseExit(), AnalysisInfoContainerUnit::readStatementFromFile(), KB::readSystemDecompositionKB(), HWReliabilityModule::readSystemOperationReliabilityInfoFromFile(), HWReliabilityModule::readSystemReliabilityFTInfoFromFile(), HWReliabilityModule::readSystemReliabilityInfoFromFile(), 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(), AnalysisInfoContainer::retrieveAnalysisInfoContainerFromFile(), 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(), retrieveRecentBranchClusterFromFile(), Scheduler::retrieveSchedulerFromFile(), ShortTermMemory::retrieveShortTermMemoryFromFile(), SupportSystemReliabilityModule::retrieveSupportSystemModuleFromFile(), SystemModule::retrieveSystemModuleFromFile(), ExpectationORUnit::saveExpectationORUnitToFile(), ProcedureStepUnit::saveProcedureStepUnitNonResponseActionToFile(), sendCurrentBranchCommandToCommandCenter(), sendSpecifiedBranchCommandToCommandCenter(), SystemDisplay::setCorrespondingSystemParameterUnit(), AlarmComponent::updateDisplayedAlarmState(), AlarmParameter::updateDisplayedAlarmState(), AlarmTwoParameterDifference::updateDisplayedAlarmState(), DisplayComponentState::updateDisplayedComponentOperationalState(), ControlState::updateDisplayedControlState(), ControlValue::updateDisplayedControlValue(), and EventSymptomMatrix::updateRationalSymptomConfidence().
| std::vector<std::unique_ptr<BranchCluster> > BranchRecord::branch_cluster |
All branching points generated so far, in creation order.
Definition at line 284 of file BranchRecord.h.
Referenced by build_serial_checkpoint(), checkAndAddBranchCluster(), clearBranchRecordAll(), copyBranchRecord(), findBrnachCluster(), AdsidacCallback::initiationForRestart(), log_seq_fingerprint_mpi(), main(), Client::parallel_restartforanewsequence_(), AdsidacCallback::restartForNewSequence(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), save_sequence_outputs(), saveBranchRecordToFile(), saveNumOfBranchInRecentBranchClusterToFile(), saveRecentBranchClusterToFile(), sendCurrentBranchCommandToCommandCenter(), sendSpecifiedBranchCommandToCommandCenter(), serialize(), and Server::write_checkpoint().
| BranchProcedureControlValue BranchRecord::control_value_branches |
Definition at line 297 of file BranchRecord.h.
Referenced by clearBranchRecordAll(), copyBranchRecord(), ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeNonResponseAction(), initiationForSimulation(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| std::vector<std::unique_ptr<BranchEndState> > BranchRecord::end_state |
End states of the finished sequences held by this record.
Definition at line 286 of file BranchRecord.h.
Referenced by addAnEndState(), appendEndStateSummary(), clearBranchRecordAll(), copyBranchRecord(), endSimulation(), extract_sequence_outputs(), main(), retrieveBranchRecordFromFile(), save_sequence_outputs(), saveBranchRecordToFile(), and serialize().
| MHWReliabilityUnit BranchRecord::HW_reliability_branch |
Pending hardware reliability forks (one inner vector per fork).
Definition at line 290 of file BranchRecord.h.
Referenced by addHWReliabilityBranch(), applyBranchProbabilityFloor(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
|
private |
Definition at line 351 of file BranchRecord.h.
Referenced by addAnEndState(), BranchRecord(), checkAndAddBranchCluster(), clearBranchRecordAll(), copyBranchRecord(), getIDOfMotherBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), serialize(), and setIDOfMotherBranch().
|
private |
Definition at line 350 of file BranchRecord.h.
Referenced by addAnEndState(), BranchRecord(), checkAndAddBranchCluster(), clearBranchRecordAll(), copyBranchRecord(), getIDOfMotherCluster(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), serialize(), and setIDOfMotherCluster().
|
private |
Definition at line 347 of file BranchRecord.h.
Referenced by BranchRecord(), checkAndAddBranchCluster(), clearBranchRecordAll(), copyBranchRecord(), getIDOfRecentGeneratedBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), sendCurrentBranchCommandToCommandCenter(), serialize(), and setIDOfRecentGeneratedBranch().
|
private |
Definition at line 349 of file BranchRecord.h.
Referenced by BranchRecord(), checkAndAddBranchCluster(), clearBranchRecordAll(), copyBranchRecord(), getIDOfRecentGeneratedBranchCluster(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), sendCurrentBranchCommandToCommandCenter(), serialize(), and setIDOfRecentGeneratedBranchCluster().
|
private |
Definition at line 348 of file BranchRecord.h.
Referenced by addAnEndState(), BranchRecord(), clearBranchRecordAll(), copyBranchRecord(), getIDOfRecentGeneratedES(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), serialize(), and setIDOfRecentGeneratedES().
| BranchMentalProcedureActivationTime BranchRecord::mental_procedure_activation_branches |
Definition at line 296 of file BranchRecord.h.
Referenced by Operator::checkAndActivateHWKB(), clearBranchRecordAll(), copyBranchRecord(), initiationForSimulation(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| int BranchRecord::num_of_HWReliability_branch |
Definition at line 298 of file BranchRecord.h.
Referenced by addHWContentToExpandedBranch(), addHWReliabilityBranch(), applyBranchProbabilityFloor(), BranchRecord(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getNumOfHWReliabilityBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| int BranchRecord::num_of_OAT_branch |
Definition at line 298 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), BranchRecord(), DiagnoseInvestigator::CalculateTheConfidenceLeveloftheDiagnoseInvestigator(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getNumOfOATBranch(), OperatorDM::oneThroughProcessForBlockD(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| int BranchRecord::num_of_OCT_branch |
Definition at line 298 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), BranchRecord(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getNumOfOCTBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| int BranchRecord::num_of_ODM_branch |
Definition at line 298 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), BranchRecord(), DiagnoseInvestigator::CalculateTheConfidenceLeveloftheDiagnoseInvestigator(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getNumOfODMBranch(), OperatorDM::oneThroughProcessForBlockD(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| int BranchRecord::num_of_SSReliability_branch |
Definition at line 298 of file BranchRecord.h.
Referenced by addSSContentToExpandedBranch(), addSSReliabilityBranch(), applyBranchProbabilityFloor(), BranchRecord(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
| BranchUnit BranchRecord::OAT_branch |
Definition at line 288 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
| BranchUnit BranchRecord::OCT_branch |
Definition at line 288 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
| BranchUnit BranchRecord::ODM_branch |
Pending crew forks of the decision maker, action taker and consultant.
Definition at line 288 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), checkAndAddBranchCluster(), DiagnoseInvestigator::CheckforPotentialProcedureBranching(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
|
private |
Definition at line 352 of file BranchRecord.h.
Referenced by addAnEndState(), BranchRecord(), clearBranchRecordAll(), copyBranchRecord(), getRecentUnconditionalBranchProbability(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), serialize(), and setRecentUnconditionalBranchProbability().
|
private |
Definition at line 353 of file BranchRecord.h.
Referenced by BranchRecord(), clearBranchRecordAll(), copyBranchRecord(), getSizeOfSubFolder(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), serialize(), and setSizeOfSubFolder().
| BranchProcedureAtionTime BranchRecord::source_of_procedure_time_branches |
Definition at line 295 of file BranchRecord.h.
Referenced by clearBranchRecordAll(), copyBranchRecord(), ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeNonResponseAction(), initiationForSimulation(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
| MSSReliabilityUnit BranchRecord::SS_reliability_branch |
Pending support system reliability forks (one inner vector per fork).
Definition at line 292 of file BranchRecord.h.
Referenced by addSSReliabilityBranch(), applyBranchProbabilityFloor(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
| std::vector<std::unique_ptr<BranchSystemAlarmState> > BranchRecord::system_branch |
Pending system alarm states, copied onto every alternative of the next cluster.
Definition at line 294 of file BranchRecord.h.
Referenced by addSystemAlarms(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), ControlPanel::checkForNewAlarms(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), retrieveBranchRecordFromFile(), saveBranchRecordToFile(), and serialize().
|
private |
Definition at line 354 of file BranchRecord.h.
Referenced by clearBranchRecordAll(), getTempESMessage(), serialize(), and setTempESMessage().
|
private |
Definition at line 355 of file BranchRecord.h.
Referenced by BranchRecord(), clearBranchRecordAll(), getTempTypeOfConsequence(), serialize(), and setTempTypeOfConsequence().
|
private |
Definition at line 346 of file BranchRecord.h.
Referenced by BranchRecord(), calculateTotalNumberOfBranch(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getTotalNumberOfBranches(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
|
private |
Definition at line 345 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), BranchRecord(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getTypeOfOATBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
|
private |
Definition at line 345 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), BranchRecord(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getTypeOfOCTBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().
|
private |
Definition at line 345 of file BranchRecord.h.
Referenced by addAction(), addActionObjective(), addActionPack(), addAlarmState(), addComponentState(), addDiagnosis(), addGoal(), addInfoGatherMode(), addInstinctiveResponseProcedure(), addMentalBelief(), addParameterDifference(), addParameterTrend(), addParameterValue(), addProcedureStep(), addScannedParameter(), addStrategy(), addSubGoal(), addSupportSystemState(), applyBranchProbabilityFloor(), BranchRecord(), checkAndAddBranchCluster(), clearBranches(), clearBranchRecordAll(), copyBranchRecord(), getTypeOfODMBranch(), retrieveBranchRecordFromFile(), retrieveRecentBranchClusterFromFile(), saveBranchRecordToFile(), saveRecentBranchClusterToFile(), and serialize().