← Documentation
ADS-IDAC Engine 5.0.0
SPDS Class Reference

#include <SPDS.h>

Public Member Functions

 SPDS ()
 
virtual ~SPDS ()
 
void updateAllSPDSUnitValues (InfoChunk *)
 
void updateAllSPDSValueAndRate (InfoChunk *)
 
void setTimeLapseForUpdate (double)
 
double getTimeLapseForUpdate ()
 
double getSPDSValue ()
 
double getSPDSRate ()
 
void setSPDSValue (double)
 
void SetSPDSRate (double)
 
void copySPDS (SPDS &)
 
void readInfoFromFile (std::string)
 
double getLastUpdateTime ()
 
void setLastUpdateTime (double)
 
void saveSPDSToFile (std::ofstream &)
 
void retrieveSPDSFromFile (std::ifstream &)
 
void outputSPDSLabelToFile (std::string, std::ofstream &)
 
void outputSPDSUnitToFile (std::ofstream &)
 
void initiationForSimulation (std::string)
 
void clearSPDS ()
 

Public Attributes

std::vector< std::unique_ptr< SPDSUnit > > spds_input_array
 
std::deque< double > spds_history
 
std::deque< double > time
 

Private Member Functions

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

Private Attributes

double time_lapse_for_update
 
double SPDS_value
 
double SPDS_rate
 
double last_update_time
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 21 of file SPDS.h.

Constructor & Destructor Documentation

◆ SPDS()

SPDS::SPDS ( )

Definition at line 22 of file SPDS.cpp.

◆ ~SPDS()

SPDS::~SPDS ( )
virtual

Definition at line 26 of file SPDS.cpp.

References clearSPDS().

Here is the call graph for this function:

Member Function Documentation

◆ clearSPDS()

void SPDS::clearSPDS ( )

Definition at line 30 of file SPDS.cpp.

References spds_history, spds_input_array, and time.

Referenced by Operator::clearOperatorFinal(), Operator::clearOperatorForRestart(), Operator::clearOperatorFromRestartInfo(), Operator::clearOperatorFromRestartNodeInfoMultiProcessors(), and ~SPDS().

Here is the caller graph for this function:

◆ copySPDS()

void SPDS::copySPDS ( SPDS &  _spds)

Definition at line 60 of file SPDS.cpp.

References getLastUpdateTime(), getSPDSRate(), getSPDSValue(), getTimeLapseForUpdate(), last_update_time, spds_history, spds_input_array, SPDS_rate, SPDS_value, time, and time_lapse_for_update.

Referenced by Operator::copyOperatorFromRestartInfo(), Operator::copyOperatorFromRestartInfoMultiProcessor(), and Operator::copyOperatorToRestartInfo().

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

◆ getLastUpdateTime()

double SPDS::getLastUpdateTime ( )

Definition at line 103 of file SPDS.cpp.

References last_update_time.

Referenced by copySPDS().

Here is the caller graph for this function:

◆ getSPDSRate()

double SPDS::getSPDSRate ( )

Definition at line 56 of file SPDS.cpp.

References SPDS_rate.

Referenced by KeyParameterHistoryUnit::addDataSet(), and copySPDS().

Here is the caller graph for this function:

◆ getSPDSValue()

double SPDS::getSPDSValue ( )

Definition at line 55 of file SPDS.cpp.

References SPDS_value.

Referenced by KeyParameterHistoryUnit::addDataSet(), copySPDS(), Operator::quantificationFilter(), and Operator::updateEvidenceForAllPSFs().

Here is the caller graph for this function:

◆ getTimeLapseForUpdate()

double SPDS::getTimeLapseForUpdate ( )

Definition at line 54 of file SPDS.cpp.

References time_lapse_for_update.

Referenced by copySPDS().

Here is the caller graph for this function:

◆ initiationForSimulation()

void SPDS::initiationForSimulation ( std::string  )

Definition at line 35 of file SPDS.cpp.

References last_update_time, r5pars_, readInfoFromFile(), spds_history, time, and time_lapse_for_update.

Referenced by Operator::initiationForSimulation().

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

◆ outputSPDSLabelToFile()

void SPDS::outputSPDSLabelToFile ( std::string  ,
std::ofstream &   
)

Definition at line 159 of file SPDS.cpp.

References spds_input_array.

Referenced by KeyParameterHistoryUnit::outputPIFLabelToFile().

Here is the caller graph for this function:

◆ outputSPDSUnitToFile()

void SPDS::outputSPDSUnitToFile ( std::ofstream &  )

Definition at line 168 of file SPDS.cpp.

References spds_input_array.

Referenced by KeyParameterHistoryUnit::outputPIFUnitToFile().

Here is the caller graph for this function:

◆ readInfoFromFile()

void SPDS::readInfoFromFile ( std::string  )

Definition at line 79 of file SPDS.cpp.

References SimulationContext::Branch_center, g_sim, NoKB, r5pars_, BranchRecord::setTempESMessage(), BranchRecord::setTempTypeOfConsequence(), spds_input_array, and time_lapse_for_update.

Referenced by initiationForSimulation().

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

◆ retrieveSPDSFromFile()

void SPDS::retrieveSPDSFromFile ( std::ifstream &  )

Definition at line 197 of file SPDS.cpp.

References last_update_time, spds_history, spds_input_array, SPDS_rate, SPDS_value, time, and time_lapse_for_update.

Referenced by Operator::retrieveOperatorFromFile().

Here is the caller graph for this function:

◆ saveSPDSToFile()

void SPDS::saveSPDSToFile ( std::ofstream &  )

Definition at line 176 of file SPDS.cpp.

References last_update_time, spds_history, spds_input_array, SPDS_rate, SPDS_value, time, and time_lapse_for_update.

Referenced by Operator::saveOperatorToFile().

Here is the caller graph for this function:

◆ serialize()

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

◆ setLastUpdateTime()

void SPDS::setLastUpdateTime ( double  x)

Definition at line 104 of file SPDS.cpp.

References last_update_time.

◆ SetSPDSRate()

void SPDS::SetSPDSRate ( double  x)

Definition at line 58 of file SPDS.cpp.

References SPDS_rate.

◆ setSPDSValue()

void SPDS::setSPDSValue ( double  x)

Definition at line 57 of file SPDS.cpp.

References SPDS_value.

◆ setTimeLapseForUpdate()

void SPDS::setTimeLapseForUpdate ( double  x)

Definition at line 53 of file SPDS.cpp.

References time_lapse_for_update.

◆ updateAllSPDSUnitValues()

void SPDS::updateAllSPDSUnitValues ( InfoChunk *  _perceived_info_ptr)

Definition at line 47 of file SPDS.cpp.

References spds_input_array.

Referenced by updateAllSPDSValueAndRate().

Here is the caller graph for this function:

◆ updateAllSPDSValueAndRate()

void SPDS::updateAllSPDSValueAndRate ( InfoChunk *  _perceived_info_ptr)

Definition at line 106 of file SPDS.cpp.

References last_update_time, r5pars_, spds_history, spds_input_array, SPDS_rate, SPDS_value, time, time_lapse_for_update, and updateAllSPDSUnitValues().

Referenced by OperatorAT::oneThroughProcessForBlockI(), and OperatorDM::oneThroughProcessForBlockI().

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 51 of file SPDS.h.

Member Data Documentation

◆ last_update_time

◆ spds_history

std::deque<double> SPDS::spds_history

◆ spds_input_array

◆ SPDS_rate

double SPDS::SPDS_rate
private

◆ SPDS_value

double SPDS::SPDS_value
private

◆ time

std::deque<double> SPDS::time

◆ time_lapse_for_update


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