00001 /* -*- mode:c++ -*- ******************************************************** 00002 * file: BurstApplLayer.h 00003 * 00004 * author: Daniel Willkomm 00005 * 00006 * copyright: (C) 2004 Telecommunication Networks Group (TKN) at 00007 * Technische Universitaet Berlin, Germany. 00008 * 00009 * This program is free software; you can redistribute it 00010 * and/or modify it under the terms of the GNU General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2 of the License, or (at your option) any later 00013 * version. 00014 * For further information see file COPYING 00015 * in the top level directory 00016 *************************************************************************** 00017 * part of: framework implementation developed by tkn 00018 * description: application layer like the TestApplLayer but sends burst of 00019 * messages 00020 **************************************************************************/ 00021 00022 00023 #ifndef BURST_APPL_LAYER_BATTERY_H 00024 #define BURST_APPL_LAYER_BATTERY_H 00025 00026 #include "BurstApplLayer.h" 00027 #include "HostState.h" 00028 00041 class BurstApplLayerBattery : public BurstApplLayer 00042 { 00043 public: 00044 00046 virtual void initialize(int); 00047 00048 virtual void finish() ; 00049 00050 protected: 00051 virtual void handleHostState(const HostState& state); 00052 virtual void handleLowerMsg( cMessage* ); 00053 virtual void handleSelfMsg(cMessage *); 00054 00055 private: 00056 00058 int bcastOut; 00060 int replyOut; 00062 int replyIn; 00063 00064 }; 00065 00066 #endif 00067