//*************************************************************************** //* file: BaseStationHost.ned //* //* author: Daniel Willkomm //* //* copyright: (C) 2004 Telecommunication Networks Group (TKN) at //* Technische Universitaet Berlin, Germany. //* //* 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. //* For further information see file COPYING //* in the top level directory //*************************************************************************** //* part of: framework implementation developed by tkn //* description: BaseStationHost Compound Module //*************************************************************************** import "PollApplLayer", "SimpleNetwLayer", "SimpleArp", "CoreTestNic", "BasicMobility", "Blackboard"; // The BaseStationHost is a compound module that implements a test base station. // The test base station contains the PollApplLayer which periodically polls all // clients in the network. // // @author Daniel Willkomm module BaseStationHost parameters: logName: string, //TKEnv display name numClients: numeric const; // number of clients in the network gates: in: radioIn; // gate for sendDirect submodules: blackboard: Blackboard; display: "p=130,70;b=25,25;o=black"; mobility: BasicMobility; display: "p=130,140;i=cogwheel2"; appl: PollApplLayer; parameters: numClients = numClients; display: "b=35,26;p=60,50;i=app"; arp: SimpleArp; display: "p=200,225;b=30,25"; net: SimpleNetwLayer; display: "b=32,30;p=60,108;i=prot1"; nic: CoreTestNic; display: "b=32,30;p=60,166;i=iface"; connections: nic.uppergateOut --> net.lowergateIn; nic.uppergateIn <-- net.lowergateOut; nic.upperControlOut --> net.lowerControlIn; net.uppergateOut --> appl.lowergateIn; net.uppergateIn <-- appl.lowergateOut; net.upperControlOut --> appl.lowerControlIn; radioIn --> nic.radioIn; display: "p=10,10;b=180,200,rect;o=white"; endmodule