xc
ModelComponentContainerBase.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //ModelComponentContainerBase.h
29 
30 #ifndef ModelComponentContainerBase_H
31 #define ModelComponentContainerBase_H
32 
33 #include "utility/kernel/CommandEntity.h"
34 #include "utility/actor/actor/MovableObject.h"
35 
36 namespace XC {
37 
38 class Preprocessor;
39 class MultiBlockTopology;
40 
42 //
45  {
46  public:
47  typedef size_t Indice;
48  protected:
49  Indice tag;
50 
51  int sendData(Communicator &);
52  int recvData(const Communicator &);
53  public:
55 
56  const MultiBlockTopology *getMultiBlockTopology(void) const;
58  const Preprocessor *getPreprocessor(void) const;
60 
61  inline size_t getTag(void) const
62  { return tag; }
63  void setTag(const size_t &t)
64  { tag= t; }
65  int sendSelf(Communicator &);
66  int recvSelf(const Communicator &);
67  };
68 
69 } //end of XC namespace
70 #endif
ModelComponentContainerBase(MultiBlockTopology *mbt=nullptr)
Constructor.
Definition: ModelComponentContainerBase.cc:36
Communication parameters between processes.
Definition: Communicator.h:66
int recvData(const Communicator &)
Receive data through the communicator argument.
Definition: ModelComponentContainerBase.cc:69
int sendData(Communicator &)
Default identifier for new component.
Definition: ModelComponentContainerBase.cc:62
Finite element model generation tools.
Definition: Preprocessor.h:59
Object that can move between processes.
Definition: MovableObject.h:100
const MultiBlockTopology * getMultiBlockTopology(void) const
Return a pointer to MultiBlockTopology.
Definition: ModelComponentContainerBase.cc:40
Model geometry manager.
Definition: MultiBlockTopology.h:68
Base class for model component containers.
Definition: ModelComponentContainerBase.h:44
Objet that can execute python scripts.
Definition: CommandEntity.h:40
int sendSelf(Communicator &)
Send object through the communicator argument.
Definition: ModelComponentContainerBase.cc:76
const Preprocessor * getPreprocessor(void) const
Return a pointer to preprocessor.
Definition: ModelComponentContainerBase.cc:54
int recvSelf(const Communicator &)
Receive object through the communicator argument.
Definition: ModelComponentContainerBase.cc:91
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35