Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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.1.1.1 $
00022 // $Date: 2000/09/15 08:23:15 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/actor/actor/MovableObject.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef MovableObject_h
00027 #define MovableObject_h
00028 
00029 // File: ~/actor/MovableObject.h
00030 //
00031 // Written: fmk
00032 // Created: 11/96
00033 // Revision: A
00034 //
00035 // Purpose: This file contains the class definition for MovableObject.
00036 // MovableObject is meant to be an abstract base class and thus no objects 
00037 // of it's type can be instantiated. A movable object is an object which
00038 // can send/receive itself to/from a Channel object.
00039 //
00040 // What: "@(#) MovableObject.h, revA"
00041 
00042 #include <classTags.h>
00043 
00044 #include <Channel.h>
00045 #include <FEM_ObjectBroker.h>
00046 
00061 class MovableObject
00062 {
00063   public:
00071     MovableObject(int classTag, int dbTag);        
00072 
00077     MovableObject(int classTag);    
00078 
00083     virtual ~MovableObject();
00084 
00085 
00090     int getClassTag(void) const;
00091 
00096     int getDbTag(void) const;
00097 
00101     void setDbTag(int dbTag);
00102 
00103 
00116     virtual int sendSelf(int commitTag, Channel &theChannel) =0;  
00117 
00127     virtual int recvSelf(int commitTag, Channel &theChannel, 
00128 
00129     FEM_ObjectBroker &theBroker) =0;
00130     
00131   protected:
00132     
00133   private:
00135     int classTag;
00136 
00138     int dbTag;
00139 };
00140 
00141 #endif
Copyright Contact Us