NED File src/LinkMon/LinkMon.ned

Name Description
LinkMon (simple module)

The Link Status Monitoring module It can access almost every other submodule of a PSRouter router and records any stats in which it is interested. It has also the capability of reporting these findings to the Topology Manager, through a LSMPacket.

Source code:

//
// 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/.
// 

package pubsub_sim.LinkMon;

//
// <b> The Link Status Monitoring module </b>
// It can access almost every other submodule of a PSRouter router and records 
// any stats in which it is interested. It has also the capability of reporting 
// these findings to the Topology Manager, through a LSMPacket. 
//
// @see PSRouter
//
// @author Nikolaos Vastardis
//
simple LinkMon
{
    parameters:
    	@display("i=old/telnet");
    	volatile double pollInt @unit("s") = default(uniform(1s,2s));	// Interval between polling for statistics
    	double reportInt @unit("s") = default(5s);						// Interval between sending reports to the TM
    gates:
        output out @labels(LSMPacket);  
}