00001 #pragma once
00002
00003 #define CDF_POINTS 1148
00004
00005 extern unsigned __int16 channelCdfIndex[0x20000];
00006 extern __uint32 channelCdf[CDF_POINTS][2];
00007
00008 class CWorkload
00009 {
00010 protected:
00011 __uint32 numChannels;
00012 public:
00013 CWorkload(
00014 __uint32 numChannels
00015 );
00016 virtual ~CWorkload() {}
00017
00018 inline __uint32 NumChannels() { return this->numChannels; }
00019
00020 virtual void GenerateUptime(__uint32 &newCh, __time &duration) = 0;
00021 virtual void GenerateUptime(__uint32 oldCh, __time oldDuration, __uint32 &newCh, __time &duration) = 0;
00022 static __time GenerateUptime(__uint32 &dindex);
00023 };