NED File src/buffer/Buffer.ned

Name Type Description
Buffer simple module

Abstract base Buffer used for the various Buffers of TTEthernet. Since this is an abstract module please do not instantiate it

Source code:

package ttethernet.buffer;

import inet.linklayer.IOutputQueue;
//
// Abstract base Buffer used for the various Buffers of TTEthernet.
// Since this is an abstract module please do not instantiate it
//
// @warning Currently the out gate is not used. Instead the buffer sends its
// message via sendDirect to all via addDestinationGate() registred gates.
//
// @todo The Buffer module should be converted to an interface since it should
// not be used directly in simulation.
//
// @see IOutputQueue
//
// @author Till Steinbach
simple Buffer like IOutputQueue
{
    parameters:
        @display("i=block/buffer");
        //Statistic of the amount of packets that were sent by the buffer
        @statistic[txPk](title="TX Packets"; record=count,vector);
        //End-to-end latency
        @statistic[latency](title="End-to-end latency"; unit=s; record=stats,histogram,vector);
        //Priority of the buffer (currently only used for rate-constrained traffic)
//        int priority=default(-1);
        //Critical traffic ID of the buffer
//        int ct_id=default(0);
        //Critical traffic marker of the buffer
//        int ct_marker=default(0);
        //Critical traffic mask of the buffer
//        int ct_mask=default(0);
        //Comma seperated list of gates where the frames of the buffer are delivered
        string destination_gates = default("");
    gates:
        //The buffers Input
        input in @loose @labels(CTFrame);
        //The buffers Output @warning CURRENTLY NOT USED!
        output out @loose @labels(CTFrame);
}