xc
ShadowActorBase.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 
28 #ifndef ShadowActorBase_h
29 #define ShadowActorBase_h
30 
31 #include "ObjectWithObjBroker.h"
32 
33 namespace XC {
34 class MachineBroker;
35 class Message;
36 class Channel;
37 class ChannelAddress;
38 class MovableObject;
39 class Matrix;
40 class Vector;
41 class ID;
42 
47  {
48  private:
49  int commitTag;
50  protected:
52  public:
54  ShadowActorBase(int actorType, FEM_ObjectBroker &myBroker, MachineBroker &theMachineBroker, int compDemand);
55 
56  void setCommitTag(int commitTag);
58  inline int getCommitTag(void) const
59  { return commitTag; }
60 
61  Channel *getChannelPtr(void) const;
62  virtual int barrierCheck(int result);
63  };
64 } // end of XC namespace
65 
66 #endif
int getCommitTag(void) const
Return the #commitTag member.
Definition: ShadowActorBase.h:58
Channel * theChannel
Communication channel to use.
Definition: ShadowActorBase.h:51
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:145
Base class for Actor and Shadow objects.
Definition: ObjectWithObjBroker.h:39
Base class for Actor and Shadow objects.
Definition: ShadowActorBase.h:46
Channel * getChannelPtr(void) const
Returns a pointer to the object channel theChannel.
Definition: ShadowActorBase.cc:65
Channel is an abstract base class which defines the channel interface.
Definition: Channel.h:91
void setCommitTag(int commitTag)
Set the value for #commitTag.
Definition: ShadowActorBase.cc:61
A MachineBroker is responsible for getting an actor process running on the parallel machine...
Definition: MachineBroker.h:76
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
ShadowActorBase(Channel &theChannel, FEM_ObjectBroker &)
Constructor.
Definition: ShadowActorBase.cc:35
virtual int barrierCheck(int result)
barrier check.
Definition: ShadowActorBase.cc:69