← Documentation
ADS-IDAC Engine 5.0.0
TimeConstrainedModule Class Reference

#include <TimeConstrainedModule.h>

Public Member Functions

 TimeConstrainedModule ()
 
virtual ~TimeConstrainedModule ()
 
void operatorUpdateTimeConstrainedValuesWithGoal (InfoChunk *)
 
void setTimeLapseForUpdate (double)
 
double getTimeLapseForUpdate ()
 
double getTimeConstrainedPIFValue ()
 
void setTimeConstrainedPIFValue (double)
 
void copyTimeConstrainedData (TimeConstrainedModule &)
 
double getLastUpdateTime ()
 
void setLastUpdateTime (double)
 
void outputTimeConstrainedLabelToFile (std::string, std::ofstream &)
 
void outputTimeConstrainedUnitsToFile (std::ofstream &)
 
void initiationForSimulation (std::string)
 
void clearTimeConstrainedData ()
 
void saveTimeConstrainedModuleToFile (std::ofstream &)
 
void retrieveTimeConstrainedModuleFromFile (std::ifstream &)
 
void updateRawDataAndCalculateTimeToThreshold (InfoChunk *)
 
std::string determineLimitingTimeConstrainedParameter ()
 

Public Attributes

std::vector< std::unique_ptr< TimeConstrainedUnit > > Time_Constrained_Parameter_Array
 

Private Member Functions

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

Private Attributes

double Time_Constrained_PIF_Value
 
double Last_Update_Time
 
double Time_Lapse_for_Update
 

Friends

class boost::serialization::access
 

Detailed Description

Definition at line 21 of file TimeConstrainedModule.h.

Constructor & Destructor Documentation

◆ TimeConstrainedModule()

TimeConstrainedModule::TimeConstrainedModule ( )

◆ ~TimeConstrainedModule()

TimeConstrainedModule::~TimeConstrainedModule ( )
virtual

Definition at line 26 of file TimeConstrainedModule.cpp.

References clearTimeConstrainedData().

Here is the call graph for this function:

Member Function Documentation

◆ clearTimeConstrainedData()

void TimeConstrainedModule::clearTimeConstrainedData ( )

Definition at line 31 of file TimeConstrainedModule.cpp.

References Last_Update_Time, Time_Constrained_Parameter_Array, Time_Constrained_PIF_Value, and Time_Lapse_for_Update.

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

Here is the caller graph for this function:

◆ copyTimeConstrainedData()

void TimeConstrainedModule::copyTimeConstrainedData ( TimeConstrainedModule &  _Time_Constrained_Data)

Definition at line 97 of file TimeConstrainedModule.cpp.

References getLastUpdateTime(), getTimeConstrainedPIFValue(), getTimeLapseForUpdate(), Last_Update_Time, Time_Constrained_Parameter_Array, Time_Constrained_PIF_Value, 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:

◆ determineLimitingTimeConstrainedParameter()

string TimeConstrainedModule::determineLimitingTimeConstrainedParameter ( )

Definition at line 78 of file TimeConstrainedModule.cpp.

References Time_Constrained_Parameter_Array.

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

Here is the caller graph for this function:

◆ getLastUpdateTime()

double TimeConstrainedModule::getLastUpdateTime ( )

Definition at line 110 of file TimeConstrainedModule.cpp.

References Last_Update_Time.

Referenced by copyTimeConstrainedData().

Here is the caller graph for this function:

◆ getTimeConstrainedPIFValue()

◆ getTimeLapseForUpdate()

double TimeConstrainedModule::getTimeLapseForUpdate ( )

Definition at line 94 of file TimeConstrainedModule.cpp.

References Time_Lapse_for_Update.

Referenced by copyTimeConstrainedData(), and updateRawDataAndCalculateTimeToThreshold().

Here is the caller graph for this function:

◆ initiationForSimulation()

void TimeConstrainedModule::initiationForSimulation ( std::string  )

Definition at line 136 of file TimeConstrainedModule.cpp.

References Last_Update_Time, r5pars_, TimeConstrainedUnit::readInfoFromFile(), TimeConstrainedUnit::setBuildupTau(), TimeConstrainedUnit::setDecayTau(), TimeConstrainedUnit::setLowerTimeThreshold(), TimeConstrainedUnit::setUpperTimeThreshold(), Time_Constrained_Parameter_Array, 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:

◆ operatorUpdateTimeConstrainedValuesWithGoal()

void TimeConstrainedModule::operatorUpdateTimeConstrainedValuesWithGoal ( InfoChunk *  _perceived_info)

Definition at line 60 of file TimeConstrainedModule.cpp.

References Last_Update_Time, r5pars_, Time_Constrained_Parameter_Array, Time_Constrained_PIF_Value, Time_Lapse_for_Update, and updateRawDataAndCalculateTimeToThreshold().

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

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

◆ outputTimeConstrainedLabelToFile()

void TimeConstrainedModule::outputTimeConstrainedLabelToFile ( std::string  ,
std::ofstream &   
)

Definition at line 112 of file TimeConstrainedModule.cpp.

References Time_Constrained_Parameter_Array.

Referenced by KeyParameterHistoryUnit::outputPIFLabelToFile().

Here is the caller graph for this function:

◆ outputTimeConstrainedUnitsToFile()

void TimeConstrainedModule::outputTimeConstrainedUnitsToFile ( std::ofstream &  )

Definition at line 127 of file TimeConstrainedModule.cpp.

References Time_Constrained_Parameter_Array.

Referenced by KeyParameterHistoryUnit::outputPIFUnitToFile().

Here is the caller graph for this function:

◆ retrieveTimeConstrainedModuleFromFile()

void TimeConstrainedModule::retrieveTimeConstrainedModuleFromFile ( std::ifstream &  )

Definition at line 187 of file TimeConstrainedModule.cpp.

References Last_Update_Time, Time_Constrained_Parameter_Array, Time_Constrained_PIF_Value, and Time_Lapse_for_Update.

Referenced by Operator::retrieveOperatorFromFile().

Here is the caller graph for this function:

◆ saveTimeConstrainedModuleToFile()

void TimeConstrainedModule::saveTimeConstrainedModuleToFile ( std::ofstream &  )

Definition at line 177 of file TimeConstrainedModule.cpp.

References Last_Update_Time, Time_Constrained_Parameter_Array, Time_Constrained_PIF_Value, and Time_Lapse_for_Update.

Referenced by Operator::saveOperatorToFile().

Here is the caller graph for this function:

◆ serialize()

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

◆ setLastUpdateTime()

void TimeConstrainedModule::setLastUpdateTime ( double  x)

Definition at line 111 of file TimeConstrainedModule.cpp.

References Last_Update_Time.

◆ setTimeConstrainedPIFValue()

void TimeConstrainedModule::setTimeConstrainedPIFValue ( double  x)

Definition at line 96 of file TimeConstrainedModule.cpp.

References Time_Constrained_PIF_Value.

◆ setTimeLapseForUpdate()

void TimeConstrainedModule::setTimeLapseForUpdate ( double  x)

Definition at line 93 of file TimeConstrainedModule.cpp.

References Time_Lapse_for_Update.

◆ updateRawDataAndCalculateTimeToThreshold()

void TimeConstrainedModule::updateRawDataAndCalculateTimeToThreshold ( InfoChunk *  _perceived_info)

Definition at line 38 of file TimeConstrainedModule.cpp.

References InfoChunk::checkExistanceOfMentalBelief(), InfoChunk::getCurrentGoal(), StateOfActivation::getStateOfActivation(), getTimeLapseForUpdate(), sim::State::Succeed, Time_Constrained_Parameter_Array, and Time_Lapse_for_Update.

Referenced by operatorUpdateTimeConstrainedValuesWithGoal().

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 47 of file TimeConstrainedModule.h.

Member Data Documentation

◆ Last_Update_Time

◆ Time_Constrained_Parameter_Array

◆ Time_Constrained_PIF_Value

◆ Time_Lapse_for_Update


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