TimeSeries.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:48:25 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/TimeSeries.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef TimeSeries_h
00027 #define TimeSeries_h
00028 
00029 // Written: fmk 
00030 // Created: 07/99
00031 // Revision: A
00032 //
00033 // Purpose: This file contains the class definition for TimeSeries.
00034 // TimeSeries is an abstract class. A TimeSeries object is used to
00035 // determine the load factor to be applied to the loads in a pettern.
00036 // to the model. 
00037 //
00038 // What: "@(#) TimeSeries.h, revA"
00039 
00040 #include <MovableObject.h>
00041 #include <OPS_Globals.h>
00042 #include <Information.h>
00043 
00044 class TimeSeries : public MovableObject
00045 {
00046   public:
00047     TimeSeries(int classTag);
00048     virtual ~TimeSeries();
00049 
00050     // pure virtual functions
00051     virtual double getFactor (double pseudoTime) = 0;
00052     virtual double getDuration () = 0;
00053     virtual double getPeakFactor () = 0;
00054 
00055     virtual double getTimeIncr (double pseudoTime) = 0;
00056     // This is defined to be the time increment from the argument
00057     // 'pseudoTime' to the NEXT point in the time series path
00058     // THIS MAY CHANGE -- MAY BE BETTER TO GET THE TIME INCREMENT
00059     // FROM THE PREVIOUS POINT IN THE PATH UP TO 'pseudoTime', WILL
00060     // DECIDE ONCE GroundMotionIntegrator IS IMPLEMENTED
00061 
00062     virtual void Print(OPS_Stream &s, int flag = 0) = 0;        
00063 
00064     // AddingSensitivity:BEGIN //////////////////////////////////////////
00065     virtual double getFactorSensitivity(double pseudoTime) {return 0.0;}
00066     // AddingSensitivity:BEGIN //////////////////////////////////////////
00067 
00068   protected:
00069         
00070   private:
00071 };
00072 
00073 #endif

Generated on Mon Oct 23 15:05:02 2006 for OpenSees by doxygen 1.5.0