53 #ifndef MovableObject_h 54 #define MovableObject_h 69 #include "DistributedBase.h" 70 #include "classTags.h" 73 #include "utility/actor/objectBroker/FEM_ObjectBroker.h" 75 #include "Communicator.h" 79 class FEM_ObjectBroker;
154 T *retval=comm.getBrokedPtr(classTag,ptrFunc);
157 retval->setDbTag(dbTag);
159 std::cerr <<
"getBrokedMovable; can't create object con classTag: " 160 << classTag << std::endl;
T * getBrokedMovable(const int &dbTag, const int &classTag, const Communicator &comm, T *(FEM_ObjectBroker::*ptrFunc)(int))
Returns an empty object of the class identified by classTag.
Definition: MovableObject.h:152
Communication parameters between processes.
Definition: Communicator.h:66
virtual int getVariable(const std::string &variable, Information &)
Return the value of the variable idenfified by var.
Definition: MovableObject.cpp:139
void setDbTag(int dbTag)
Sets the object identifier in the database.
Definition: MovableObject.cpp:111
Object that can move between processes.
Definition: MovableObject.h:100
virtual int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: MovableObject.cpp:127
Base class for distributed processing.
Definition: DistributedBase.h:41
FEM_ObjectBroker is is an object broker class for the finite element method.
Definition: FEM_ObjectBroker.h:151
virtual int sendSelf(Communicator &comm)=0
Send the object.
virtual int setVariable(const std::string &variable, Information &)
Set the value of the variable idenfified by var.
Definition: MovableObject.cpp:135
int getClassTag(void) const
Return the class identifier.
Definition: MovableObject.cpp:95
virtual int recvSelf(const Communicator &comm)=0
Receive the object.
virtual int setParameter(const std::vector< std::string > &argv, Parameter ¶m)
Sets the value param to the parameter argv.
Definition: MovableObject.cpp:123
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
MovableObject(int classTag, int dbTag)
Constructor.
Definition: MovableObject.cpp:74
int getDbTag(void) const
Return the object identifier in the database.
Definition: MovableObject.cpp:99
Parameter.
Definition: Parameter.h:68
MovableObject & operator=(const MovableObject &)
Assignment operator. Doesn't copy the dbTag.
Definition: MovableObject.cpp:88
virtual int activateParameter(int parameterID)
Activates the parameter identified by parameterID.
Definition: MovableObject.cpp:131