MultiSupportPattern.hGo 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.3 $ 00022 // $Date: 2005/11/22 19:44:22 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/MultiSupportPattern.h,v $ 00024 00025 #ifndef MultiSupportPattern_h 00026 #define MultiSupportPattern_h 00027 00028 // Written: fmk 11/00 00029 // Revised: 00030 // 00031 // Purpose: This file contains the class definition for MultiSupportPattern. 00032 // MultiSupportPattern is an abstract class. 00033 00034 #include <LoadPattern.h> 00035 #include <ID.h> 00036 00037 class GroundMotion; 00038 class Vector; 00039 00040 class MultiSupportPattern : public LoadPattern 00041 { 00042 public: 00043 MultiSupportPattern(int tag, int classTag); 00044 MultiSupportPattern(int tag); 00045 MultiSupportPattern(); 00046 virtual ~MultiSupportPattern(); 00047 00048 virtual void applyLoad(double time); 00049 virtual bool addNodalLoad(NodalLoad *); 00050 virtual bool addElementalLoad(ElementalLoad *); 00051 00052 // methods for o/p 00053 virtual int sendSelf(int commitTag, Channel &theChannel); 00054 virtual int recvSelf(int commitTag, Channel &theChannel, 00055 FEM_ObjectBroker &theBroker); 00056 virtual void Print(OPS_Stream &s, int flag =0); 00057 00058 // method to obtain a blank copy of the LoadPattern 00059 virtual LoadPattern *getCopy(void); 00060 00061 int addMotion(GroundMotion &theMotion, int tag); 00062 GroundMotion *getMotion(int tag); 00063 00064 protected: 00065 00066 private: 00067 GroundMotion **theMotions; 00068 ID theMotionTags; 00069 int numMotions; 00070 int dbMotions; 00071 }; 00072 00073 #endif |