← Documentation
ADS-IDAC Engine 5.0.0
ProcedureStep Class Reference

#include <ProcedureStep.h>

Inheritance diagram for ProcedureStep:
[legend]
Collaboration diagram for ProcedureStep:
[legend]

Public Member Functions

 ProcedureStep ()
 
virtual ~ProcedureStep ()
 
void clear ()
 
void setCurrentProcedureName (std::string name)
 
void setCurrentStepName (std::string name)
 
void setNextProcedureName (std::string name)
 
void setNextStepName (std::string name)
 
void setProcedureStepCharacteristics (int characteristics)
 
void setProcedureStepComplexity (double complexity)
 
void setProcedureType (int type)
 
std::string getCurrentProcedureName ()
 
std::string getCurrentStepName ()
 
std::string getNextProcedureName ()
 
std::string getNextStepName ()
 
int getProcedureStepCharacteristics ()
 
double getProcedureStepComplexity ()
 
int getProcedureType ()
 
void setDescription (std::string desc)
 
std::string getDescription ()
 
void readDescriptionFromFile (std::ifstream &)
 
bool readInfoFromFile (std::string, std::string)
 
void copyProcedureStep (ProcedureStep &)
 
bool oneThroughProcessForProcedureStep (Operator &, double, double, bool, ShortTermMemory &)
 
bool oneThroughProcessForInstinctiveResponseProcedure (Operator &, double, double, bool, ShortTermMemory &)
 
bool executeInstinctiveResponseProcedureTransfer (Operator &, ShortTermMemory &)
 
void resetStateOfActivation ()
 
bool checkWhetherThisIsAMentalProcedure (std::string)
 
double calculateProcedureStepStaticHEPMultiplier ()
 
void setBranchControlFlag (int flag)
 
int getBranchControlFlag ()
 
void saveProcedureStepToFile (std::ofstream &)
 
void retrieveProcedureStepFromFile (std::ifstream &)
 
- Public Member Functions inherited from StateOfActivation
 StateOfActivation ()
 
virtual ~StateOfActivation ()
 
int getStateOfActivation ()
 
void setStateOfActivation (int)
 
void copyStateOfActivation (StateOfActivation &)
 
void saveStateOfActivationToFile (std::ofstream &)
 
void retrieveStateOfActivationFromFile (std::ifstream &)
 
void resetStateOfActivation ()
 
bool checkIfIsIdenticalStateOfActivation (StateOfActivation &)
 
template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Public Attributes

std::vector< std::unique_ptr< ProcedureStepUnit > > procedure_step_unit
 

Private Member Functions

template<class Archive >
void save (Archive &ar, const unsigned int) const
 
template<class Archive >
void load (Archive &ar, const unsigned int)
 

Private Attributes

std::string current_procedure_name
 
std::string current_step_name
 
std::string next_procedure_name
 
std::string next_step_name
 
std::string description
 
int procedure_step_characteristics
 
double procedure_step_complexity
 
int procedure_type
 
int branch_control_flag
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 28 of file ProcedureStep.h.

Constructor & Destructor Documentation

◆ ProcedureStep()

◆ ~ProcedureStep()

ProcedureStep::~ProcedureStep ( )
virtual

Definition at line 38 of file ProcedureStep.cpp.

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ calculateProcedureStepStaticHEPMultiplier()

◆ checkWhetherThisIsAMentalProcedure()

bool ProcedureStep::checkWhetherThisIsAMentalProcedure ( std::string  )

Definition at line 651 of file ProcedureStep.cpp.

◆ clear()

void ProcedureStep::clear ( )

Definition at line 57 of file ProcedureStep.cpp.

References procedure_step_unit.

Referenced by ~ProcedureStep().

Here is the caller graph for this function:

◆ copyProcedureStep()

◆ executeInstinctiveResponseProcedureTransfer()

bool ProcedureStep::executeInstinctiveResponseProcedureTransfer ( Operator &  _operator,
ShortTermMemory &  _stm 
)

Definition at line 509 of file ProcedureStep.cpp.

References SimulationContext::Action_Taker, BranchRecord::addInstinctiveResponseProcedure(), BranchRecord::addProcedureStep(), SimulationContext::All_procedure, SimulationContext::Branch_center, current_procedure_name, current_step_name, SimulationContext::Decision_Maker, sim::State::Done, g_sim, InfoChunk::getCurrentProceduralStepName(), InfoChunk::getCurrentProcedureName(), InfoChunk::getMentalPriorityOfAProcedureStep(), HumanFailureEventsBBN::getProcedureInterpretationFailureProbability(), Procedures::getProcedureTransferTime(), Procedures::getStepTransferTime(), Operator::getTypeOfOperator(), Operator::hfe_bbn, sim::Strategy::InstinctiveResponse, InfoChunk::interruptCurrentProcedureStep(), sim::State::Interrupted, KB::KBcheckHardWiredMatchForProcedureActivity(), Operator::knowledge_base, next_procedure_name, next_step_name, sim::Operator::OAT, sim::Operator::ODM, sim::State::Pause, ShortTermMemory::perceived_info, Procedures::procedure_map, sim::Branch::ProcedureXfr, r5pars_, resetStateOfActivation(), DecisionProcedureStep::setLastProcedureName(), DecisionProcedureStep::setLastStepName(), Operator::setPauseActivity(), DecisionProcedureStep::setPriority(), DecisionProcedureStep::setProcedureName(), Communication::setSenderAndReceiver(), InfoChunk::setStateOfAProcedureStep(), DecisionProcedureStep::setStepName(), TimerAndProbability::setTimerAndProbability(), and Communication::setTypeOfPauseActivity().

Referenced by oneThroughProcessForInstinctiveResponseProcedure().

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

◆ getBranchControlFlag()

int ProcedureStep::getBranchControlFlag ( )

Definition at line 730 of file ProcedureStep.cpp.

References branch_control_flag.

Referenced by copyProcedureStep().

Here is the caller graph for this function:

◆ getCurrentProcedureName()

◆ getCurrentStepName()

◆ getDescription()

string ProcedureStep::getDescription ( )

Definition at line 61 of file ProcedureStep.cpp.

References description.

Referenced by copyProcedureStep(), oneThroughProcessForInstinctiveResponseProcedure(), and oneThroughProcessForProcedureStep().

Here is the caller graph for this function:

◆ getNextProcedureName()

string ProcedureStep::getNextProcedureName ( )

Definition at line 51 of file ProcedureStep.cpp.

References next_procedure_name.

Referenced by copyProcedureStep(), and DiagnoseInvestigator::ReadCurrentProcedureStepInformation().

Here is the caller graph for this function:

◆ getNextStepName()

string ProcedureStep::getNextStepName ( )

Definition at line 52 of file ProcedureStep.cpp.

References next_step_name.

Referenced by copyProcedureStep().

Here is the caller graph for this function:

◆ getProcedureStepCharacteristics()

int ProcedureStep::getProcedureStepCharacteristics ( )

Definition at line 53 of file ProcedureStep.cpp.

References procedure_step_characteristics.

Referenced by calculateProcedureStepStaticHEPMultiplier(), and copyProcedureStep().

Here is the caller graph for this function:

◆ getProcedureStepComplexity()

double ProcedureStep::getProcedureStepComplexity ( )

Definition at line 54 of file ProcedureStep.cpp.

References procedure_step_complexity.

Referenced by calculateProcedureStepStaticHEPMultiplier(), and copyProcedureStep().

Here is the caller graph for this function:

◆ getProcedureType()

int ProcedureStep::getProcedureType ( )

Definition at line 55 of file ProcedureStep.cpp.

References procedure_type.

Referenced by calculateProcedureStepStaticHEPMultiplier(), and copyProcedureStep().

Here is the caller graph for this function:

◆ load()

template<class Archive >
void ProcedureStep::load ( Archive &  ar,
const unsigned int   
)
inlineprivate

Definition at line 89 of file ProcedureStep.h.

References procedure_step_unit.

◆ oneThroughProcessForInstinctiveResponseProcedure()

bool ProcedureStep::oneThroughProcessForInstinctiveResponseProcedure ( Operator &  _operator,
double  _skip_action_threshold,
double  _skip_non_response_threshold,
bool  _skip,
ShortTermMemory &  _stm 
)

Definition at line 348 of file ProcedureStep.cpp.

References sim::Action::Action, SimulationContext::Action_Taker, sim::State::Active, sim::ControlAction::Additive, AnalysisInfoContainer::addRecord(), SimulationContext::Aux_info, SimulationContext::Branch_center, calculateProcedureStepStaticHEPMultiplier(), SimulationContext::Command_handler, sim::State::Control, current_procedure_name, current_step_name, SimulationContext::Decision_Maker, CommandControlCenter::displayInformation(), sim::State::Done, ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeExpectation(), executeInstinctiveResponseProcedureTransfer(), ProcedureStepUnit::executeNonResponseAction(), sim::State::Failed, sim::Strategy::FollowInstruction, g_sim, getCurrentProcedureName(), getCurrentStepName(), getDescription(), BranchRecord::getIDOfRecentGeneratedBranch(), ProcedureStepUnit::getNumberOfANDExpectation(), ProcedureStepUnit::getStateOfAction(), ProcedureStepUnit::getStateOfExpectation(), ProcedureStepUnit::getStateOfNonResponseAction(), ProcedureStepUnit::getTypeOfAction(), Operator::getTypeOfOperator(), ProcedureStepUnit::hasNonResponseAction(), sim::Strategy::InstinctiveResponse, KB::KBcheckHardWiredMatchForProcedureActivity(), Operator::knowledge_base, next_procedure_name, sim::None, sim::Operator::OAT, sim::Operator::ODM, sim::ControlAction::ParameterControl, ShortTermMemory::perceived_info, procedure_step_unit, sim::Branch::ProcedureTransfer, resetStateOfActivation(), StateOfActivation::setStateOfActivation(), InfoChunk::setStateOfAProcedureStep(), ProcedureStepUnit::setStateOfExpectation(), ProcedureStepUnit::setStateOfNonResponseAction(), sim::State::Skip, StateOfActivation::state_of_activation, and sim::State::Succeed.

Referenced by Operator::performAMentalProcedure(), and OperatorDM::performRecoveryAction().

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

◆ oneThroughProcessForProcedureStep()

bool ProcedureStep::oneThroughProcessForProcedureStep ( Operator &  _operator,
double  _skip_action_threshold,
double  _skip_non_response_threshold,
bool  _skip,
ShortTermMemory &  _stm 
)

Definition at line 157 of file ProcedureStep.cpp.

References SimulationContext::Action_Taker, sim::State::Active, BranchRecord::addProcedureStep(), AnalysisInfoContainer::addRecord(), SimulationContext::All_procedure, SimulationContext::Aux_info, SimulationContext::Branch_center, calculateProcedureStepStaticHEPMultiplier(), SimulationContext::Command_handler, current_procedure_name, current_step_name, SimulationContext::Decision_Maker, CommandControlCenter::displayInformation(), sim::State::Done, ProcedureStepUnit::executeAction(), ProcedureStepUnit::executeExpectation(), ProcedureStepUnit::executeNonResponseAction(), sim::State::Failed, sim::Strategy::FollowProcedure, g_sim, getCurrentProcedureName(), getCurrentStepName(), getDescription(), BranchRecord::getIDOfRecentGeneratedBranch(), ProcedureStepUnit::getNumberOfANDExpectation(), HumanFailureEventsBBN::getProcedureStepFailureProbability(), Procedures::getProcedureTransferTime(), ProcedureStepUnit::getStateOfAction(), ProcedureStepUnit::getStateOfExpectation(), ProcedureStepUnit::getStateOfNonResponseAction(), Procedures::getStepTransferTime(), ProcedureStepUnit::getTypeOfAction(), ProcedureStepUnit::getTypeOfNonResponseAction(), Operator::getTypeOfOperator(), ProcedureStepUnit::hasNonResponseAction(), Operator::hfe_bbn, KB::KBcheckHardWiredMatchForProcedureActivity(), Operator::knowledge_base, next_procedure_name, next_step_name, sim::None, sim::Operator::OAT, sim::Operator::ODM, ShortTermMemory::perceived_info, procedure_step_unit, sim::Branch::ProcedureTransfer, resetStateOfActivation(), Scheduler::setInfoSequenceTerminatedByNonResponseAction(), DecisionProcedureStep::setLastProcedureName(), DecisionProcedureStep::setLastStepName(), DecisionProcedureStep::setProcedureName(), Communication::setSenderAndReceiver(), Scheduler::setSequenceTerminatedByNonResponseAction(), StateOfActivation::setStateOfActivation(), InfoChunk::setStateOfAProcedureStep(), ProcedureStepUnit::setStateOfExpectation(), ProcedureStepUnit::setStateOfNonResponseAction(), DecisionProcedureStep::setStepName(), TimerAndProbability::setTimerAndProbability(), Communication::setTypeOfPauseActivity(), sim::State::Skip, SimulationContext::SScheduler, StateOfActivation::state_of_activation, sim::ControlAction::Stop, and sim::State::Succeed.

Referenced by OperatorDM::performFollowProcedureStrategy().

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

◆ readDescriptionFromFile()

void ProcedureStep::readDescriptionFromFile ( std::ifstream &  )

Definition at line 128 of file ProcedureStep.cpp.

References description.

Referenced by readInfoFromFile(), and retrieveProcedureStepFromFile().

Here is the caller graph for this function:

◆ readInfoFromFile()

bool ProcedureStep::readInfoFromFile ( std::string  ,
std::string   
)

◆ resetStateOfActivation()

void ProcedureStep::resetStateOfActivation ( )

Definition at line 328 of file ProcedureStep.cpp.

References sim::None, procedure_step_unit, and StateOfActivation::setStateOfActivation().

Referenced by Operator::checkAndResetProcedureStep(), executeInstinctiveResponseProcedureTransfer(), Operator::interruptAllMentalProcedures(), Operator::interruptLowPriorityMentalProcedures(), oneThroughProcessForInstinctiveResponseProcedure(), oneThroughProcessForProcedureStep(), and DiagnoseInvestigator::TerminateTheCurrentProcedureStep().

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

◆ retrieveProcedureStepFromFile()

void ProcedureStep::retrieveProcedureStepFromFile ( std::ifstream &  )

Definition at line 746 of file ProcedureStep.cpp.

References branch_control_flag, current_procedure_name, current_step_name, next_procedure_name, next_step_name, procedure_step_characteristics, procedure_step_complexity, procedure_step_unit, procedure_type, readDescriptionFromFile(), and StateOfActivation::retrieveStateOfActivationFromFile().

Here is the call graph for this function:

◆ save()

template<class Archive >
void ProcedureStep::save ( Archive &  ar,
const unsigned int   
) const
inlineprivate

Definition at line 81 of file ProcedureStep.h.

References procedure_step_unit.

◆ saveProcedureStepToFile()

void ProcedureStep::saveProcedureStepToFile ( std::ofstream &  )

Definition at line 732 of file ProcedureStep.cpp.

References branch_control_flag, current_procedure_name, current_step_name, description, next_procedure_name, next_step_name, procedure_step_characteristics, procedure_step_complexity, procedure_step_unit, procedure_type, and StateOfActivation::saveStateOfActivationToFile().

Here is the call graph for this function:

◆ setBranchControlFlag()

void ProcedureStep::setBranchControlFlag ( int  flag)

Definition at line 729 of file ProcedureStep.cpp.

References branch_control_flag.

◆ setCurrentProcedureName()

void ProcedureStep::setCurrentProcedureName ( std::string  name)

Definition at line 42 of file ProcedureStep.cpp.

References current_procedure_name.

◆ setCurrentStepName()

void ProcedureStep::setCurrentStepName ( std::string  name)

Definition at line 43 of file ProcedureStep.cpp.

References current_step_name.

◆ setDescription()

void ProcedureStep::setDescription ( std::string  desc)

Definition at line 60 of file ProcedureStep.cpp.

References description.

◆ setNextProcedureName()

void ProcedureStep::setNextProcedureName ( std::string  name)

Definition at line 44 of file ProcedureStep.cpp.

References next_procedure_name.

◆ setNextStepName()

void ProcedureStep::setNextStepName ( std::string  name)

Definition at line 45 of file ProcedureStep.cpp.

References next_step_name.

◆ setProcedureStepCharacteristics()

void ProcedureStep::setProcedureStepCharacteristics ( int  characteristics)

Definition at line 46 of file ProcedureStep.cpp.

References procedure_step_characteristics.

◆ setProcedureStepComplexity()

void ProcedureStep::setProcedureStepComplexity ( double  complexity)

Definition at line 47 of file ProcedureStep.cpp.

References procedure_step_complexity.

◆ setProcedureType()

void ProcedureStep::setProcedureType ( int  type)

Definition at line 48 of file ProcedureStep.cpp.

References procedure_type.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 78 of file ProcedureStep.h.

Member Data Documentation

◆ branch_control_flag

int ProcedureStep::branch_control_flag
private

◆ current_procedure_name

◆ current_step_name

◆ description

std::string ProcedureStep::description
private

◆ next_procedure_name

◆ next_step_name

◆ procedure_step_characteristics

◆ procedure_step_complexity

◆ procedure_step_unit

◆ procedure_type


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