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 PathTimeSeries_h
00027 #define PathTimeSeries_h
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #include <TimeSeries.h>
00044 #include <iostream.h>
00045
00046 #include <Vector.h>
00047
00059 class PathTimeSeries : public TimeSeries
00060 {
00061 public:
00063 PathTimeSeries(const Vector &thePath,
00064 const Vector &theTime,
00065 double cfactor = 1.0);
00075 PathTimeSeries(char *fileNamePath,
00076
00077 char *fileNameTime,
00078 double cfactor = 1.0);
00089 PathTimeSeries(char *fileName,
00090
00091 double cfactor = 1.0);
00094 PathTimeSeries();
00095
00096
00098 ~PathTimeSeries();
00099
00101 double getFactor(double pseudoTime);
00107 double getDuration ();
00108
00112 double getPeakFactor ();
00113
00120 double getTimeIncr (double pseudoTime);
00121
00122
00124 int sendSelf(int commitTag, Channel &theChannel);
00128 int recvSelf(int commitTag, Channel &theChannel,
00129
00130 FEM_ObjectBroker &theBroker);
00131
00137 void Print(ostream &s, int flag =0);
00138
00139
00140 protected:
00141
00142 private:
00144 Vector *thePath;
00145
00146 Vector *time;
00147 int currentTimeLoc;
00148 double cFactor;
00149 int dbTag1, dbTag2;
00150 };
00151
00152 #endif
00153