cadvlinkdelaylookahead.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __CADVLINKDELAYLOOKAHEAD_H__
00022 #define __CADVLINKDELAYLOOKAHEAD_H__
00023
00024 #include "cnmplookahead.h"
00025
00026 NAMESPACE_BEGIN
00027
00033 class SIM_API cAdvancedLinkDelayLookahead : public cNMPLookahead
00034 {
00035 protected:
00036 struct LinkOut
00037 {
00038 simtime_t lookahead;
00039 simtime_t eot;
00040 };
00041 struct PartitionInfo
00042 {
00043 int numLinks;
00044 LinkOut **links;
00045 simtime_t lookahead;
00046 };
00047
00048
00049 int numSeg;
00050 PartitionInfo *segInfo;
00051
00052 public:
00056 cAdvancedLinkDelayLookahead();
00057
00061 virtual ~cAdvancedLinkDelayLookahead();
00062
00066 virtual void startRun();
00067
00071 virtual void endRun();
00072
00077 virtual simtime_t getCurrentLookahead(cMessage *msg, int procId, void *data);
00078
00082 virtual simtime_t getCurrentLookahead(int procId);
00083 };
00084
00085 NAMESPACE_END
00086
00087
00088 #endif
00089
00090