← Documentation
ADS-IDAC Engine 5.0.0
InitiatingEventUnit Class Reference

#include <InitiatingEventUnit.h>

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

Public Member Functions

 InitiatingEventUnit ()
 
virtual ~InitiatingEventUnit ()
 
void setInitiatingEventName (std::string)
 
void setInteractiveControlName (std::string)
 
void setTimeAtWhichThisIEActivate (double)
 
void setValueToActOnTheInteractiveControl (double)
 
void setProbabilityOfThisInitiatingEvent (double)
 
double getProbabilityOfThisInitiatingEvent ()
 
void readInfoFromFile (std::ifstream &)
 
std::string getInitiatingEventName ()
 
std::string getInteractiveControlName ()
 
double getTimeAtWhichThisIEActivate ()
 
double getValueToActOnTheInteractiveControl ()
 
void copyInitiatingEventUnit (InitiatingEventUnit &)
 
int checkActivationState ()
 
void saveInitiatingEventUnitToFile (std::ofstream &)
 
void retrieveInitiatingEventUnitFromFile (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

Probability Failure_Probability
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

std::string initiating_event_name
 
std::string interactive_control_name
 
double time_at_which_this_IE_activated
 
double value_to_act_on_the_interactive_control
 
double probability_of_this_initiating_event
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 16 of file InitiatingEventUnit.h.

Constructor & Destructor Documentation

◆ InitiatingEventUnit()

◆ ~InitiatingEventUnit()

InitiatingEventUnit::~InitiatingEventUnit ( )
virtual

Definition at line 30 of file InitiatingEventUnit.cpp.

Member Function Documentation

◆ checkActivationState()

int InitiatingEventUnit::checkActivationState ( )

Definition at line 78 of file InitiatingEventUnit.cpp.

References sim::Action::Direct, sim::State::Done, StateOfActivation::getStateOfActivation(), sim::None, r5pars_, StateOfActivation::setStateOfActivation(), and time_at_which_this_IE_activated.

Here is the call graph for this function:

◆ copyInitiatingEventUnit()

◆ getInitiatingEventName()

string InitiatingEventUnit::getInitiatingEventName ( )

Definition at line 74 of file InitiatingEventUnit.cpp.

References initiating_event_name.

Referenced by copyInitiatingEventUnit().

Here is the caller graph for this function:

◆ getInteractiveControlName()

string InitiatingEventUnit::getInteractiveControlName ( )

Definition at line 75 of file InitiatingEventUnit.cpp.

References interactive_control_name.

Referenced by copyInitiatingEventUnit().

Here is the caller graph for this function:

◆ getProbabilityOfThisInitiatingEvent()

double InitiatingEventUnit::getProbabilityOfThisInitiatingEvent ( )

Definition at line 72 of file InitiatingEventUnit.cpp.

References probability_of_this_initiating_event.

Referenced by copyInitiatingEventUnit().

Here is the caller graph for this function:

◆ getTimeAtWhichThisIEActivate()

double InitiatingEventUnit::getTimeAtWhichThisIEActivate ( )

Definition at line 76 of file InitiatingEventUnit.cpp.

References time_at_which_this_IE_activated.

Referenced by copyInitiatingEventUnit().

Here is the caller graph for this function:

◆ getValueToActOnTheInteractiveControl()

double InitiatingEventUnit::getValueToActOnTheInteractiveControl ( )

Definition at line 77 of file InitiatingEventUnit.cpp.

References value_to_act_on_the_interactive_control.

Referenced by copyInitiatingEventUnit().

Here is the caller graph for this function:

◆ readInfoFromFile()

◆ retrieveInitiatingEventUnitFromFile()

void InitiatingEventUnit::retrieveInitiatingEventUnitFromFile ( std::ifstream &  )

Definition at line 113 of file InitiatingEventUnit.cpp.

References Failure_Probability, initiating_event_name, interactive_control_name, probability_of_this_initiating_event, Probability::retrieveProbabilityFromFile(), StateOfActivation::retrieveStateOfActivationFromFile(), time_at_which_this_IE_activated, and value_to_act_on_the_interactive_control.

Here is the call graph for this function:

◆ saveInitiatingEventUnitToFile()

void InitiatingEventUnit::saveInitiatingEventUnitToFile ( std::ofstream &  )

Definition at line 104 of file InitiatingEventUnit.cpp.

References Failure_Probability, initiating_event_name, interactive_control_name, probability_of_this_initiating_event, Probability::saveProbabilityToFile(), StateOfActivation::saveStateOfActivationToFile(), time_at_which_this_IE_activated, and value_to_act_on_the_interactive_control.

Here is the call graph for this function:

◆ serialize()

template<class Archive >
void InitiatingEventUnit::serialize ( Archive &  ar,
const unsigned int  version 
)
inlineprivate

◆ setInitiatingEventName()

void InitiatingEventUnit::setInitiatingEventName ( std::string  )

Definition at line 34 of file InitiatingEventUnit.cpp.

References initiating_event_name.

◆ setInteractiveControlName()

void InitiatingEventUnit::setInteractiveControlName ( std::string  )

Definition at line 35 of file InitiatingEventUnit.cpp.

References interactive_control_name.

◆ setProbabilityOfThisInitiatingEvent()

void InitiatingEventUnit::setProbabilityOfThisInitiatingEvent ( double  x)

Definition at line 71 of file InitiatingEventUnit.cpp.

References probability_of_this_initiating_event.

◆ setTimeAtWhichThisIEActivate()

void InitiatingEventUnit::setTimeAtWhichThisIEActivate ( double  x)

Definition at line 36 of file InitiatingEventUnit.cpp.

References time_at_which_this_IE_activated.

◆ setValueToActOnTheInteractiveControl()

void InitiatingEventUnit::setValueToActOnTheInteractiveControl ( double  x)

Definition at line 37 of file InitiatingEventUnit.cpp.

References value_to_act_on_the_interactive_control.

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 44 of file InitiatingEventUnit.h.

Member Data Documentation

◆ Failure_Probability

◆ initiating_event_name

◆ interactive_control_name

◆ probability_of_this_initiating_event

◆ time_at_which_this_IE_activated

◆ value_to_act_on_the_interactive_control


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