Name | Description |
---|---|
BasePSApp (simple module) |
The Base of the Pub-Sub Ethernet Applications |
// // Copyright (C) 2011 Nikolaos Vastardis; University of Essex, Colchester // // 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 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 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.PSetherApp; // // <b> The Base of the Pub-Sub Ethernet Applications </b> // // The basic module of the publish subscribe network applications. It defines // the core functionality of every application module, no matter whether // publisher or subscriber. Although a simple C++ implementation of the function // seems enough, because of the necessity for this element to access the OMNET++ // module parameters, this ned definition was created. // // @see PEtherApp, SEtherApp // // @author Nikolaos Vastardis // simple BasePSApp { parameters: double actPeak @unit("s") = default(30s); // The time period the application mainly active volatile int datarate @unit(Mbps) = default(10Mbps); //The datarate of each stream from the publisher @display("i=block/app"); gates: input ifIn[] @labels(Ieee802Ctrl/up); output ifOut[] @labels(Ieee802Ctrl/down); }