MovableObject.h

Go to the documentation of this file.
00001 /* ****************************************************************** **
00002 **    OpenSees - Open System for Earthquake Engineering Simulation    **
00003 **          Pacific Earthquake Engineering Research Center            **
00004 **                                                                    **
00005 **                                                                    **
00006 ** (C) Copyright 1999, The Regents of the University of California    **
00007 ** All Rights Reserved.                                               **
00008 **                                                                    **
00009 ** Commercial use of this program without express permission of the   **
00010 ** University of California, Berkeley, is strictly prohibited.  See   **
00011 ** file 'COPYRIGHT'  in main directory for information on usage and   **
00012 ** redistribution,  and for a DISCLAIMER OF ALL WARRANTIES.           **
00013 **                                                                    **
00014 ** Developed by:                                                      **
00015 **   Frank McKenna (fmckenna@ce.berkeley.edu)                         **
00016 **   Gregory L. Fenves (fenves@ce.berkeley.edu)                       **
00017 **   Filip C. Filippou (filippou@ce.berkeley.edu)                     **
00018 **                                                                    **
00019 ** ****************************************************************** */
00020                                                                         
00021 // $Revision: 1.4 $
00022 // $Date: 2006/09/05 20:25:56 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/actor/actor/MovableObject.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef MovableObject_h
00027 #define MovableObject_h
00028 
00029 // Written: fmk
00030 // Created: 11/96
00031 // Revision: A
00032 //
00033 // Purpose: This file contains the class definition for MovableObject.
00034 // MovableObject is meant to be an abstract base class and thus no objects 
00035 // of it's type can be instantiated. A movable object is an object which
00036 // can send/receive itself to/from a Channel object.
00037 //
00038 // What: "@(#) MovableObject.h, revA"
00039 
00040 #include <classTags.h>
00041 
00042 class Channel;
00043 class FEM_ObjectBroker;
00044 class Information;
00045 class Parameter;
00046 
00047 class MovableObject
00048 {
00049   public:
00050     MovableObject(int classTag, int dbTag);        
00051     MovableObject(int classTag);    
00052     virtual ~MovableObject();
00053 
00054     int getClassTag(void) const;
00055     virtual const char *getClassType(void) const;
00056 
00057     int getDbTag(void) const;
00058     void setDbTag(int dbTag);
00059 
00060     virtual int sendSelf(int commitTag, Channel &theChannel) =0;  
00061     virtual int recvSelf(int commitTag, Channel &theChannel, 
00062                          FEM_ObjectBroker &theBroker) =0;
00063     
00064     // methods for sensitivity studies
00065     virtual int setParameter(const char **argv, int argc, Parameter &param);
00066     virtual int updateParameter(int parameterID, Information &info);
00067     virtual int activateParameter(int parameterID);
00068     
00069   protected:
00070     
00071   private:
00072     int classTag;
00073     int dbTag;
00074 };
00075 
00076 #endif

Generated on Mon Oct 23 15:04:56 2006 for OpenSees by doxygen 1.5.0