29 #ifndef MAPLOADPATTERNS_H 30 #define MAPLOADPATTERNS_H 32 #include "preprocessor/loaders/LoadLoaderMember.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())
167 lp->setTimeSeries(its->second);
169 loadpatterns[cod_lp]= lp;
171 if(loadpatterns.empty())
176 std::cerr <<
"MapLoadPatterns; ERROR " 177 <<
", time series: " << nmb_ts
178 <<
" not found." << std::endl;
void removeFromDomain(const std::string &)
Elimina el load pattern del domain.
Definition: MapLoadPatterns.cc:195
A LoadPattern object is used to to store reference loads and single point constraints and a TimeSerie...
Definition: LoadPattern.h:87
void clear_time_series(void)
Clears all the load patterns.
Definition: MapLoadPatterns.cc:268
void clear(void)
Clears all the load patterns.
Definition: MapLoadPatterns.cc:277
int & getTagLP(void)
Returns the tag para el siguiente load pattern.
Definition: LoadLoaderMember.cc:67
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
std::deque< std::string > getListaNombres(void) const
Returns the nombres de los load patterns.
Definition: MapLoadPatterns.cc:367
~MapLoadPatterns(void)
Destructor.
Definition: MapLoadPatterns.cc:291
boost::python::list getKeys(void) const
Returns load case names.
Definition: MapLoadPatterns.cc:376
const std::string & getNombreLoadPattern(const LoadPattern *) const
Returns the nombre del caso pointed by the parameter.
Definition: MapLoadPatterns.cc:163
LoadPattern * buscaLoadPattern(const std::string &)
Returns a pointer to the load pattern cuyo nombre being passed as parameter.
Definition: MapLoadPatterns.cc:117
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: MapLoadPatterns.cc:312
Load pattern container.
Definition: MapLoadPatterns.h:45
LoadPattern * newLoadPattern(const std::string &, const std::string &)
Define un objeto LoasPattern con el tipo y el nombre being passed as parameters.
Definition: MapLoadPatterns.cc:253
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: MapLoadPatterns.cc:349
void addToDomain(const std::string &)
Adds the load pattern to the domain.
Definition: MapLoadPatterns.cc:177
TimeSeries * buscaTS(const int &)
Returns a pointer to the TS cuyo dbTag being passed as parameter. se usa en LoadPattern::recvData.
Definition: MapLoadPatterns.cc:71
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: MapLoadPatterns.cc:305
void removeAllFromDomain(void)
Elimina las loadpatterns del domain.
Definition: MapLoadPatterns.cc:207
TimeSeries * newTimeSeries(const std::string &, const std::string &)
Define un objeto TimeSeries con el tipo y el nombre being passed as parameters. Interpreta los siguie...
Definition: MapLoadPatterns.cc:224
??.
Definition: LoadLoaderMember.h:42
int recvData(const CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: MapLoadPatterns.cc:323
Lee load patterns desde archivo. Load definition manager.
Definition: LoadLoader.h:44
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Time variation of loads.A TimeSeries object is used to determine the load factor to be applied to the...
Definition: TimeSeries.h:81
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: MapLoadPatterns.cc:337
MapLoadPatterns(LoadLoader *owr)
Default constructor.
Definition: MapLoadPatterns.cc:66