ConstantSeries.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.2 $
00022 // $Date: 2003/02/14 23:00:59 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/ConstantSeries.h,v $
00024 
00025 #ifndef ConstantSeries_h
00026 #define ConstantSeries_h
00027 
00028 // File: ~/domain/pattern/ConstantSeries.h
00029 //
00030 // Written: fmk 
00031 // Created: 07/99
00032 // Revision: A
00033 //
00034 // Purpose: This file contains the class definition for ConstantSeries.
00035 // ConstantSeries is a concrete class. A ConstantSeries object provides
00036 // a linear time series. the factor is given by the pseudoTime and 
00037 // a constant factor provided in the constructor.
00038 //
00039 // What: "@(#) ConstantSeries.h, revA"
00040 
00041 #include <TimeSeries.h>
00042 
00043 class ConstantSeries : public TimeSeries
00044 {
00045   public:
00046     ConstantSeries(double cFactor = 1.0);
00047 
00048     ~ConstantSeries();
00049 
00050     // method to get load factor
00051     double getFactor(double pseudoTime) {return cFactor;}
00052 
00053     // None of the following functions should be invoked on this type
00054     // of object
00055     double getDuration () {return 0.0;} // dummy function
00056     double getPeakFactor () {return cFactor;} // dummy function
00057     double getTimeIncr (double pseudoTime) {return 1.0;} // dummy function
00058     
00059     // methods for output    
00060     int sendSelf(int commitTag, Channel &theChannel);
00061     int recvSelf(int commitTag, Channel &theChannel, 
00062                  FEM_ObjectBroker &theBroker);
00063 
00064     void Print(OPS_Stream &s, int flag =0);    
00065     
00066   protected:
00067         
00068   private:
00069     double cFactor;  // factor = cFactor
00070 };
00071 
00072 #endif

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