edu.gwu.simplenetsim
Interface DatalinkLayer

All Superinterfaces:
StackLayer

public interface DatalinkLayer
extends StackLayer

An implementation of the datalink layer must implement this interface, which itself extends StackLayer.

See Also:
StackLayer

Method Summary
 void init(int nodeNum, NetworkLayer networkLayer, PhysicalLayer physicalLayer)
          Initialization passes in the layers above and below.
 void receivePacket(DatalinkPacket packet)
          This is called by the layer below, in this case, the simulator.
 void sendPacket(DatalinkPacket packet)
          This is called by the layer above.
 
Methods inherited from interface edu.gwu.simplenetsim.StackLayer
timerBeep
 

Method Detail

init

void init(int nodeNum,
          NetworkLayer networkLayer,
          PhysicalLayer physicalLayer)
Initialization passes in the layers above and below.

Parameters:
nodeNum - an int value
networkLayer - a NetworkLayer value
physicalLayer - a PhysicalLayer value

sendPacket

void sendPacket(DatalinkPacket packet)
This is called by the layer above.

Parameters:
packet - a DatalinkPacket value

receivePacket

void receivePacket(DatalinkPacket packet)
This is called by the layer below, in this case, the simulator.

Parameters:
packet - a DatalinkPacket value