29 #ifndef MAPLOADPATTERNS_H 30 #define MAPLOADPATTERNS_H 32 #include "preprocessor/prep_handlers/LoadHandlerMember.h" 33 #include "domain/load/pattern/LoadPattern.h" 34 #include "domain/load/pattern/TimeSeries.h" 47 typedef std::map<std::string,TimeSeries *> map_timeseries;
48 map_timeseries tseries;
51 typedef std::map<std::string,LoadPattern *> map_loadpatterns;
52 map_loadpatterns loadpatterns;
59 TimeSeries *create_time_series(
const std::string &);
61 LoadPattern *create_load_pattern(
const std::string &);
63 typedef map_loadpatterns::iterator iterator;
64 typedef map_loadpatterns::const_iterator const_iterator;
78 const_iterator begin(
void)
const 79 {
return loadpatterns.begin(); }
80 const_iterator end(
void)
const 81 {
return loadpatterns.end(); }
83 {
return loadpatterns.begin(); }
85 {
return loadpatterns.end(); }
86 size_t size(
void)
const 87 {
return loadpatterns.size(); }
88 bool empty(
void)
const 89 {
return loadpatterns.empty(); }
91 const std::string getCurrentLoadPatternId(
void)
const;
93 const LoadPattern *getCurrentLoadPatternPtr(
void)
const;
94 inline const std::string &getCurrentLoadPattern(
void)
const 96 inline void setCurrentLoadPattern(
const std::string &nmb)
113 inline const std::string &getCurrentTimeSeries(
void)
const 115 inline void setCurrentTimeSeries(
const std::string &nmb)
119 boost::python::list
getKeys(
void)
const;
121 inline const int &getCurrentElementLoadTag(
void)
const 123 inline void setCurrentElementLoadTag(
const int &n)
125 inline const int &getCurrentNodeLoadTag(
void)
const 127 inline void setCurrentNodeLoadTag(
const int &n)
138 TimeSeries *XC::MapLoadPatterns::create_time_series(
const std::string &cod_ts)
145 tseries[cod_ts]= nts;
154 LoadPattern *XC::MapLoadPatterns::create_load_pattern(
const std::string &cod_lp)
160 std::map<std::string,TimeSeries *>::const_iterator its= tseries.find(nmb_ts);
161 if(its!= tseries.end())
169 loadpatterns[cod_lp]= lp;
171 if(loadpatterns.empty())
176 std::cerr <<
"MapLoadPatterns; ERROR " 177 <<
", time series: " << nmb_ts
178 <<
" not found." << std::endl;
LoadPattern * newLoadPattern(const std::string &, const std::string &)
Define a LoadPattern object withe the type and the name being passed as parameters.
Definition: MapLoadPatterns.cc:255
void clear(void)
Clears all the load patterns.
Definition: MapLoadPatterns.cc:279
LoadPattern * buscaLoadPattern(const std::string &)
Returns a pointer to the load pattern cuyo nombre being passed as parameter.
Definition: MapLoadPatterns.cc:117
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:43
MapLoadPatterns(LoadHandler *owr)
Default constructor.
Definition: MapLoadPatterns.cc:66
int recvSelf(const CommParameters &)
Receives object through the channel passed as parameter.
Definition: MapLoadPatterns.cc:351
??.
Definition: LoadHandlerMember.h:42
A LoadPattern object is used to to store reference loads and single point constraints and a TimeSerie...
Definition: LoadPattern.h:93
virtual void setTimeSeries(TimeSeries *theSeries)
Set the time series for the pattern.
Definition: LoadPattern.cpp:146
int & getTagLP(void)
Returns the tag para el siguiente load pattern.
Definition: LoadHandlerMember.cc:77
int recvData(const CommParameters &cp)
Send members through the channel passed as parameter.
Definition: MapLoadPatterns.cc:325
const std::string & getLoadPatternName(const LoadPattern *) const
Returns the name of the load pattern pointed by the parameter.
Definition: MapLoadPatterns.cc:164
void removeAllFromDomain(void)
Remove the loadpatterns del domain.
Definition: MapLoadPatterns.cc:208
std::deque< std::string > getNamesList(void) const
Return the names of the load patterns.
Definition: MapLoadPatterns.cc:369
void clear_time_series(void)
Clears all the load patterns.
Definition: MapLoadPatterns.cc:270
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Load pattern container.
Definition: MapLoadPatterns.h:45
void addToDomain(const std::string &)
Adds the load pattern to the domain.
Definition: MapLoadPatterns.cc:178
TimeSeries * buscaTS(const int &)
Returns a pointer to the TS cuyo dbTag being passed as parameter.
Definition: MapLoadPatterns.cc:71
Time variation of loads.
Definition: TimeSeries.h:81
DbTagData & getDbTagData(void) const
Return a vector to store the dbTags of the class members.
Definition: MapLoadPatterns.cc:307
Communication parameters between processes.
Definition: CommParameters.h:65
TimeSeries * newTimeSeries(const std::string &, const std::string &)
Define a TimeSeries object with the type and name passed as parameters.
Definition: MapLoadPatterns.cc:225
Lee load patterns desde archivo.
Definition: LoadHandler.h:44
void removeFromDomain(const std::string &)
Remove the load pattern del domain.
Definition: MapLoadPatterns.cc:196
int sendSelf(CommParameters &)
Sends object through the channel passed as parameter.
Definition: MapLoadPatterns.cc:339
int sendData(CommParameters &cp)
Send members through the channel passed as parameter.
Definition: MapLoadPatterns.cc:314
boost::python::list getKeys(void) const
Return load case names.
Definition: MapLoadPatterns.cc:378
~MapLoadPatterns(void)
Destructor.
Definition: MapLoadPatterns.cc:293