7#include "../ControlPanel/ControlPanelControl.h"
8#include "../ControlPanel/ControlPanel.h"
9#include "../Global/fmodule.h"
10#include "../Branch/BranchSystemAction.h"
11#include "../Branch/BranchRecord.h"
12#include "../ControlPanel/DisplayParameterValue.h"
14#include "../Global/SimulationContext.h"
81 vector<double>::iterator d_itr;
114 for(i = 0; i < 3; i++){
115 fin >> str >> d1 >> d2 >> d3;
169 for(i = 0; i < num; i++){
176 double current_parameter_value;
177 double current_parameter_change_rate;
178 double current_control_value;
179 double percentage_change_in_control_value;
257 if (percentage_change_in_control_value > 1.0){
273 ofstream fout(
"err messages.txt", ios::app);
274 cout <<
"ManeuverActionUnit::executeManeuverControl " << this->
getManeuverName() <<
" action: "
276 << current_control_value <<
" is out of bound" << endl;
277 fout <<
r5pars_.timesno <<
" ManeuverActionUnit::executeManeuverControl " << this->
getManeuverName() <<
" action: "
279 << current_control_value <<
" is out of bound\n";
283 else if (percentage_change_in_control_value < -1.0){
299 ofstream fout(
"err messages.txt", ios::app);
300 cout <<
"ManeuverActionUnit::executeManeuverControl " << this->
getManeuverName() <<
" action: "
302 << current_control_value <<
" is out of bound" << endl;
303 fout <<
r5pars_.timesno <<
" ManeuverActionUnit::executeManeuverControl " << this->
getManeuverName() <<
" action: "
305 << current_control_value <<
" is out of bound\n";
Base class for all crew members — cognitive processing loops, mental model, and knowledge base.
SimulationContext g_sim
Global simulation context: the single instance, defined in SimulationContext.cpp.
void addHWReliabilityBranch(BranchSystemAction *, BranchSystemAction *)
Registers a hardware reliability fork with two alternatives (index 0 first). The record takes ownersh...
void setFunctionalState(int)
void setSenderAndReceiver(int, int)
void setControlValue(double)
void setDisplayName(std::string)
SystemControl * getControlFromMap(std::string)
SystemDisplay * getDisplayFromMap(std::string)
ControlPanelDisplay indicators
ControlPanelControl controls
double getDisplayedParameterValue()
double getManeuverActionFailureProbability()
void setUBChangeRate(double)
void setLBChangeRate(double)
void saveManeuverActionUnitToFile(std::ofstream &)
virtual ~ManeuverActionUnit()
std::string targeted_parameter_name
void setManeuverTotalDuration(double)
void setTargetValue(double)
void setManeuverTimeInterval(double)
std::string getCorrespondingInteractiveControlName()
void setTargetedParameterRateName(std::string)
void setUBTargetValue(double)
double getFirstManeuverTime()
std::string targeted_parameter_rate_name
void setFirstManeuverTime(double)
void setCorrespondingInteractiveControlName(std::string)
void copyManeuverActionUnit(ManeuverActionUnit &)
void setManeuverName(std::string)
void setPreviousControlValue(double)
double getPreviousControlValue()
double UB_interactive_control
std::vector< double > three_by_three_maneuver
void setLBInteractiveControl(double)
double previous_control_value
std::string maneuver_name
double getLBTargetValue()
std::string getTargetedParameterRateName()
double previous_maneuver_time
void setUBInteractiveControl(double)
double maneuver_total_duration
double getManeuverTimeInterval()
double getLBInteractiveControl()
double first_maneuver_time
double getUBInteractiveControl()
SystemDisplay * ptr_to_corresponding_indicator
void setpreviousManeuverTime(double)
double getUBTargetValue()
void readInfoFromFile(std::ifstream &)
void setTargetedParameterName(std::string)
double LB_interactive_control
std::string corresponding_interactive_control_name
std::string getTargetedParameterName()
SystemDisplay * ptr_to_corresponding_rate_indicator
void setLBTargetValue(double)
double getManeuverTotalDuration()
std::string getManeuverName()
SystemControl * ptr_to_corresponding_control
double maneuver_time_interval
void executeManeuverControl(Operator &)
void retrieveManeuverActionUnitFromFile(std::ifstream &)
double getpreviousManeuverTime()
HumanFailureEventsBBN hfe_bbn
void setStateOfActivation(int)
void saveStateOfActivationToFile(std::ofstream &)
void retrieveStateOfActivationFromFile(std::ifstream &)
void copyStateOfActivation(StateOfActivation &)
void setTimerAndProbability(double, double)
ControlPanel Indicator
Control room panel state.
BranchRecord Branch_center
Dynamic event tree state.