//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program.  If not, see http://www.gnu.org/licenses/.
//

#ifndef EXTENDEDBASEWORDUTILITY_H_
#define EXTENDEDBASEWORDUTILITY_H_

#include <BaseWorldUtility.h>


class ExtendedBaseWorldUtility : public BaseWorldUtility {

protected:

//	Coord bsPosition;
//  std::vector<Coord> nodePosition;


    int aliveNodes, numNodes;
    cMessage *checkNodes;
    double checkTime;

    cOutVector aliveNodesVector;
    cOutVector relativeAliveNodesVector;

    double range;


public:
	virtual void initialize(int stage);
//	void setBsPosition(Coord bsCoord);
//	Coord getBsPosition();
//	void setNodePosition(int index, Coord bsCoord);
//	Coord getNodePosition(int index);
	void decreaseAliveNodes();
	void handleMessage(cMessage *msg);
};

#endif /* EXTENDEDBASEWORDUTILITY_H_ */
