← Documentation
ADS-IDAC Engine 5.0.0
BranchRecord Class Reference

#include <BranchRecord.h>

Collaboration diagram for BranchRecord:
[legend]

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
 

Detailed Description

Definition at line 66 of file BranchRecord.h.

Constructor & Destructor Documentation

◆ BranchRecord()

BranchRecord::BranchRecord ( )

◆ ~BranchRecord()

BranchRecord::~BranchRecord ( )
virtual

Definition at line 47 of file BranchRecord.cpp.

References clearBranchRecordAll().

Here is the call graph for this function:

Member Function Documentation

◆ addAction()

◆ addActionObjective()

◆ addActionPack()

◆ addAlarmState()

void BranchRecord::addAlarmState ( int  _operator,
BranchExpectedAlarmState *  _bd 
)

◆ addAnEndState()

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

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

◆ addComponentState()

void BranchRecord::addComponentState ( int  _operator,
BranchExpectedComponentState *  _bd 
)

◆ addCrewContentToExpandedBranch()

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.

Parameters
_buThe operator's pending fork.
bc_refThe cluster being expanded.
type_of_branchThe operator's pending branch type; selects the vector of _bu.
num_of_single_element_repeatNumber of consecutive cluster alternatives that receive the same fork alternative.
nth_unit_appear1-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().

Here is the caller graph for this function:

◆ addDiagnosis()

◆ addGoal()

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

Here is the caller graph for this function:

◆ addHWContentToExpandedBranch()

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

Here is the caller graph for this function:

◆ addHWReliabilityBranch() [1/2]

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.

◆ addHWReliabilityBranch() [2/2]

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

Here is the caller graph for this function:

◆ addInfoGatherMode()

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

Here is the caller graph for this function:

◆ addInstinctiveResponseProcedure()

◆ addMentalBelief()

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

Here is the caller graph for this function:

◆ addParameterDifference()

void BranchRecord::addParameterDifference ( int  _operator,
BranchExpectedParameterDifference *  _bd 
)

◆ addParameterTrend()

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

Here is the caller graph for this function:

◆ addParameterValue()

void BranchRecord::addParameterValue ( int  _operator,
BranchExpectedParameterValue *  _bd 
)

◆ addProcedureStep()

◆ addScannedParameter()

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

Here is the caller graph for this function:

◆ addSSContentToExpandedBranch()

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

Here is the caller graph for this function:

◆ addSSReliabilityBranch() [1/2]

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.

◆ addSSReliabilityBranch() [2/2]

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

Here is the caller graph for this function:

◆ addStrategy()

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

Here is the caller graph for this function:

◆ addSubGoal()

◆ addSupportSystemState()

void BranchRecord::addSupportSystemState ( int  _operator,
BranchExpectedSupportSystemState *  _bd 
)

◆ addSystemAlarms()

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.

◆ appendEndStateSummary()

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.

Here is the call graph for this function:

◆ applyBranchProbabilityFloor()

void BranchRecord::applyBranchProbabilityFloor ( double  floor)

Applies the minimum branch probability to every pending fork.

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

Here is the caller graph for this function:

◆ calculateTotalNumberOfBranch()

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

Here is the caller graph for this function:

◆ checkAndAddBranchCluster()

int BranchRecord::checkAndAddBranchCluster ( )

Expands the pending forks into a new BranchCluster.

Returns
The number of alternatives of the new cluster, or 0 when nothing is pending (no cluster is created). A return of 1 means the cluster has a single branch: its content is still sent to the command center but there is no alternative to restart.

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

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

◆ clearBranches()

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

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

◆ clearBranchRecordAll()

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

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

◆ clearBranchRecordForRestart()

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

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

◆ copyBranchRecord()

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.

Here is the call graph for this function:

◆ endSimulation()

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

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

◆ findBrnachCluster()

BranchCluster * BranchRecord::findBrnachCluster ( int  _id)

Finds a cluster by ID, searching from the most recent cluster.

Returns
Pointer owned by this record, or a null pointer if no cluster has that ID.

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

Here is the caller graph for this function:

◆ generateRestartFileForRELAP5()

void BranchRecord::generateRestartFileForRELAP5 ( )

Declared only; there is no definition.

◆ getIDOfMotherBranch()

int BranchRecord::getIDOfMotherBranch ( )

Definition at line 1349 of file BranchRecord.cpp.

References ID_of_mother_branch.

Referenced by Scheduler::checkForTerminatingCurrentSequence(), and copyBranchRecord().

Here is the caller graph for this function:

◆ getIDOfMotherCluster()

int BranchRecord::getIDOfMotherCluster ( )

Definition at line 1347 of file BranchRecord.cpp.

References ID_of_mother_cluster.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ getIDOfRecentGeneratedBranch()

◆ getIDOfRecentGeneratedBranchCluster()

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

Here is the caller graph for this function:

◆ getIDOfRecentGeneratedES()

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

Here is the caller graph for this function:

◆ getNumOfHWReliabilityBranch()

int BranchRecord::getNumOfHWReliabilityBranch ( )

Definition at line 1579 of file BranchRecord.cpp.

References num_of_HWReliability_branch.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ getNumOfOATBranch()

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

Here is the caller graph for this function:

◆ getNumOfOCTBranch()

int BranchRecord::getNumOfOCTBranch ( )

Definition at line 1578 of file BranchRecord.cpp.

References num_of_OCT_branch.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ getNumOfODMBranch()

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

Here is the caller graph for this function:

◆ getRecentUnconditionalBranchProbability()

double BranchRecord::getRecentUnconditionalBranchProbability ( )

Definition at line 1188 of file BranchRecord.cpp.

References recent_unconditional_branch_probability.

Referenced by Scheduler::checkForTerminatingCurrentSequence(), and copyBranchRecord().

Here is the caller graph for this function:

◆ getSizeOfSubFolder()

int BranchRecord::getSizeOfSubFolder ( )
Returns
Number of node IDs per output subfolder (PEFolder_N, ESFolder_N, KPSFolder_N).

Definition at line 1236 of file BranchRecord.cpp.

References size_of_subfolder.

Referenced by copyBranchRecord(), and BranchEndState::saveInfoToFile().

Here is the caller graph for this function:

◆ getTempESMessage()

string BranchRecord::getTempESMessage ( )

Definition at line 1642 of file BranchRecord.cpp.

References temp_es_message.

Referenced by Scheduler::checkForTerminatingCurrentSequence().

Here is the caller graph for this function:

◆ getTempTypeOfConsequence()

Consequence BranchRecord::getTempTypeOfConsequence ( )

Definition at line 1643 of file BranchRecord.cpp.

References temp_type_of_consequence.

Referenced by Scheduler::checkForTerminatingCurrentSequence().

Here is the caller graph for this function:

◆ getTotalNumberOfBranches()

int BranchRecord::getTotalNumberOfBranches ( )

Definition at line 1580 of file BranchRecord.cpp.

References total_number_of_branches.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ getTypeOfOATBranch()

int BranchRecord::getTypeOfOATBranch ( )

Definition at line 1574 of file BranchRecord.cpp.

References type_of_OAT_branch.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ getTypeOfOCTBranch()

int BranchRecord::getTypeOfOCTBranch ( )

Definition at line 1575 of file BranchRecord.cpp.

References type_of_OCT_branch.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ getTypeOfODMBranch()

int BranchRecord::getTypeOfODMBranch ( )

Definition at line 1573 of file BranchRecord.cpp.

References type_of_ODM_branch.

Referenced by copyBranchRecord().

Here is the caller graph for this function:

◆ initiationForSimulation()

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

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

◆ retrieveBranchRecordFromFile()

◆ retrieveRecentBranchClusterFromFile()

◆ saveAESNodeToFile()

void BranchRecord::saveAESNodeToFile ( BranchEndState *  )

Declared only; there is no definition. ES nodes are written by BranchEndState::saveInfoToFile().

◆ saveBranchRecordToFile()

◆ saveNumOfBranchInRecentBranchClusterToFile()

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.

◆ savePENodeOfABranchClusterToFile()

void BranchRecord::savePENodeOfABranchClusterToFile ( BranchCluster *  )

Declared only; there is no definition. PE nodes are written by BranchCluster::savePENodeToFile().

◆ saveRecentBranchClusterToFile()

void BranchRecord::saveRecentBranchClusterToFile ( std::ofstream &  )

◆ sendCurrentBranchCommandToCommandCenter()

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

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

◆ sendSpecifiedBranchCommandToCommandCenter()

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.

Here is the call graph for this function:

◆ serialize()

◆ setIDOfMotherBranch()

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

Here is the caller graph for this function:

◆ setIDOfMotherCluster()

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

Here is the caller graph for this function:

◆ setIDOfRecentGeneratedBranch()

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

Here is the caller graph for this function:

◆ setIDOfRecentGeneratedBranchCluster()

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

Here is the caller graph for this function:

◆ setIDOfRecentGeneratedES()

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

Here is the caller graph for this function:

◆ setRecentUnconditionalBranchProbability()

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

Here is the caller graph for this function:

◆ setSizeOfSubFolder()

void BranchRecord::setSizeOfSubFolder ( int  n)

Definition at line 1237 of file BranchRecord.cpp.

References size_of_subfolder.

◆ setTempESMessage()

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

◆ setTempTypeOfConsequence()

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

Member Data Documentation

◆ branch_cluster

◆ control_value_branches

◆ end_state

std::vector<std::unique_ptr<BranchEndState> > BranchRecord::end_state

◆ HW_reliability_branch

MHWReliabilityUnit BranchRecord::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

MSSReliabilityUnit BranchRecord::SS_reliability_branch

◆ system_branch

std::vector<std::unique_ptr<BranchSystemAlarmState> > BranchRecord::system_branch

◆ temp_es_message

std::string BranchRecord::temp_es_message
private

◆ temp_type_of_consequence

Consequence BranchRecord::temp_type_of_consequence
private

◆ total_number_of_branches

◆ type_of_OAT_branch

◆ type_of_OCT_branch

◆ type_of_ODM_branch


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