00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef RectangularSeries_h
00027 #define RectangularSeries_h
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
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;
00116 };
00117
00118 #endif