/***************************************************************************************
*	This software simulated for ARPEES, a routing protocol for Wireless Sensor Network *
*	Copyright (C) 2007 by Tran Quang Vinh (vinhtq@mail.hut.edu.vn)                     *
*	Multimedia Information NETwork Lab - MINET                                         *
*	Dept. Electronic Information Systems, Graduate School of Enginnering               *
*	Shibaura Institute of Technology, Japan.                                           *
*--------------------------------------------------------------------------------------*
*	File name: NodeModul.h													           *
*	header file for for implementing Base class for Node and Base station              *
***************************************************************************************/

#ifndef NODEBASE_H
#define NODEBASE_H

#include <omnetpp.h>
#include "ArpeesDef.h"

class NodeBase : public cSimpleModule
{
    Module_Class_Members(NodeBase, cSimpleModule, 0);

  protected:
    virtual void initialize() = 0;
    virtual void handleMessage(cMessage * msg) = 0;
    virtual void finish();
    void updateStats();
    void initStats();

  public:
    int myId;
    int myStatus;
    int numberMsgs;
    int numberData;

    // how many gates
    int nrGates;
    int nrNodes;
};

#endif

/***************************************************************************************/

