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

RectangularSeries.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:19 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/pattern/RectangularSeries.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef RectangularSeries_h
00027 #define RectangularSeries_h
00028 
00029 // File: ~/domain/pattern/RectangularSeries.h
00030 //
00031 // Written: fmk 
00032 // Created: 07/99
00033 // Revision: A
00034 //
00035 // Purpose: This file contains the class definition for RectangularSeries.
00036 // RectangularSeries is a concrete class. A RectangularSeries object provides
00037 // a rectangular pulse time series. the factor is given by the pseudoTime and 
00038 // a constant factor provided in the constructor, the duration by tStart
00039 // and tFinal;
00040 //
00041 // What: "@(#) RectangularSeries.h, revA"
00042 
00043 #include <TimeSeries.h>
00044 
00055 class RectangularSeries : public TimeSeries
00056 {
00057   public:
00059     RectangularSeries(double tStart, double tFinal, double cFactor = 1.0);
00065     RectangularSeries();
00066 
00067     
00069     ~RectangularSeries();
00070     
00072     double getFactor(double pseudoTime);
00076     double getDuration () {return (tFinish - tStart);}
00077 
00082     double getPeakFactor () {return cFactor;}
00083 
00089     double getTimeIncr (double pseudoTime) {return (tFinish - tStart);}
00090 
00091     
00093     int sendSelf(int commitTag, Channel &theChannel);
00097     int recvSelf(int commitTag, Channel &theChannel, 
00098 
00099    FEM_ObjectBroker &theBroker);
00100 
00105     void Print(ostream &s, int flag =0);    
00106 
00107     
00108   protected:
00109  
00110   private:
00112     double tStart;    
00113 
00114  double tFinish;   
00115     double cFactor;   // factor = cFactor for tStart <= t <= tFinish
00116 };
00117 
00118 #endif
Copyright Contact Us