NED File src/overlay/quon/QuonPR.ned
| Name |
Description |
|
QuonPR
(simple module)
|
(no description)
|
|
OverlayQuonPR
(compound module)
|
(no description)
|
Source code:
//
// Copyright (C) 2006 Institut fuer Telematik, Universitaet Karlsruhe (TH)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// 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 General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
// @file QuonPR.ned
// @author Helge Backhaus
//
package oversim.overlay.quon;
import oversim.common.BaseOverlay;
import oversim.common.IOverlay;
simple QuonPR extends BaseOverlay
{
parameters:
@class(QuonPR);
double areaDimension; // movement range from [0.0, 0.0] to [areaDimension, areaDimension]
double joinTimeout @unit(s); // retry join timeout in seconds
double deleteTimeout @unit(s); // delete dead/offline neighbors from list of known neighbors after # seconds
double aliveTimeout @unit(s); // ping neighbor status in seconds
double contactBackupIntervall @unit(s); // contact backup neighbors every # seconds
double connectionLimit; // maximum # of neighbor connections (for use with dynamic AOI)
double minAOIWidth; // minimum area of interest size (for use with dynamic AOI)
double AOIWidth; // this nodes area of interest (maximum area of interest when dynamic AOI is used)
double AOIAdaptionIntervall @unit(s); // adaption rate for dynamic AOI changes
}
module OverlayQuonPR like IOverlay
{
gates:
input udpIn; // gate from the UDP layer
output udpOut; // gate to the UDP layer
input appIn; // gate from the application
output appOut; // gate to the application
submodules:
quonpr: QuonPR {
parameters:
@display("p=60,60");
}
connections allowunconnected:
udpIn --> quonpr.udpIn++;
udpOut <-- quonpr.udpOut++;
appIn --> quonpr.appIn;
appOut <-- quonpr.appOut;
}