52 #ifndef FE_Datastore_h 53 #define FE_Datastore_h 68 #include "utility/actor/channel/Channel.h" 73 class FEM_ObjectBroker;
86 std::set<int> savedStates;
97 int setUpConnection(
void);
113 bool isSaved(
int commitTag)
const;
115 virtual int createTable(
const std::string &tableName,
const std::vector<std::string> &);
116 virtual int insertData(
const std::string &tableName,
const std::vector<std::string> &,
int commitTag,
const Vector &data);
117 virtual int getData(
const std::string &tableName,
const std::vector<std::string> &,
int commitTag,
Vector &data);
119 int save(
const int &commitTag);
120 int restore(
const int &commitTag);
virtual int restoreState(int commitTag)
Invoked to restore the state of the domain from a database.
Definition: FE_Datastore.cpp:186
Float vector abstraction.
Definition: Vector.h:93
int getDbTag(void) const
To return a unique integer identifier at each call.
Definition: FE_Datastore.cpp:240
Objects of this class are used in the program to store/restore the geometry and state information in ...
Definition: FE_Datastore.h:81
Finite element model generation tools.
Definition: Preprocessor.h:58
Object that can move between processes.
Definition: MovableObject.h:99
virtual int commitState(int commitTag)
Stores the current state on the database.
Definition: FE_Datastore.cpp:140
FE_Datastore(Preprocessor &, FEM_ObjectBroker &theBroker)
Constructor.
Definition: FE_Datastore.cpp:78
const Preprocessor * getPreprocessor(void) const
Returns a pointer to the object preprocessor.
Definition: FE_Datastore.cpp:86
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:145
int setNextAddress(const ChannelAddress &otherChannelAddress)
Return .
Definition: FE_Datastore.cpp:109
ChannelAddress * getLastSendersAddress(void)
Return .
Definition: FE_Datastore.cpp:114
FEM_ObjectBroker * getObjectBroker(void)
Returns a pointer to theBroker object passed in the constructor.
Definition: FE_Datastore.cpp:82
int recvObj(int commitTag, MovableObject &theObject, FEM_ObjectBroker &theBroker, ChannelAddress *theAddress=0)
Call {recvSelf(commitTag, *this, theBroker)} on theObject and return the result.
Definition: FE_Datastore.cpp:125
int sendObj(int commitTag, MovableObject &theObject, ChannelAddress *theAddress=0)
Call {sendSelf(commitTag, *this, theBroker)} on theObject and return the result.
Definition: FE_Datastore.cpp:120
Channel is an abstract base class which defines the channel interface.
Definition: Channel.h:91
virtual bool isDatastore(void) const
Return true (this channel type IS a Datastore).
Definition: FE_Datastore.cpp:94
bool isSaved(int commitTag) const
Returns true if the state identified by commitTag was previously saved on the database.
Definition: FE_Datastore.cpp:172
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
char * addToProgram(void)
Return .
Definition: FE_Datastore.cpp:102
Definition: ChannelAddress.h:69