SSF.Net
Class ptpLinkLayer

java.lang.Object
  |
  +--com.renesys.raceway.SSF.Entity
        |
        +--SSF.Net.ptpLinkLayer
All Implemented Interfaces:
linkLayer

public class ptpLinkLayer
extends com.renesys.raceway.SSF.Entity
implements linkLayer

Class implementing the special case of a link layer with exactly two attached interfaces: a point-to-point link.


Constructor Summary
ptpLinkLayer(link L)
           
 
Method Summary
protected  com.renesys.raceway.SSF.inChannel in(NIC fromNIC)
           
 link onLink()
          Return a reference to the link for which this is the linkLayer implementation.
 NIC peer(NIC forNIC)
           
 java.util.Enumeration peers(NIC forNIC)
          Return the attached interfaces that are peers to the given interface.
 com.renesys.raceway.SSF.Event[] receive(NIC forNIC)
          Poll the link layer for any packets available for receipt
 void transmit(NIC forNIC, PacketEvent pevt, long qdelay)
          Send a packet with the given queueing delay
 void up(NIC nic)
          Bring up the given NIC over this link layer
 
Methods inherited from class com.renesys.raceway.SSF.Entity
alignment, alignTo, coalignedEntities, inChannels, init, joinAll, makeIndependent, now, outChannels, pauseAll, playRole, processes, resetSimulation, resumeAll, startAll, startAll, startClient, startClient, startServer, Vx, Yx
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ptpLinkLayer

public ptpLinkLayer(link L)
Method Detail

onLink

public link onLink()
Description copied from interface: linkLayer
Return a reference to the link for which this is the linkLayer implementation.

Specified by:
onLink in interface linkLayer

in

protected com.renesys.raceway.SSF.inChannel in(NIC fromNIC)

up

public void up(NIC nic)
Bring up the given NIC over this link layer

Specified by:
up in interface linkLayer

transmit

public void transmit(NIC forNIC,
                     PacketEvent pevt,
                     long qdelay)
Send a packet with the given queueing delay

Specified by:
transmit in interface linkLayer

receive

public com.renesys.raceway.SSF.Event[] receive(NIC forNIC)
Poll the link layer for any packets available for receipt

Specified by:
receive in interface linkLayer

peer

public NIC peer(NIC forNIC)

peers

public java.util.Enumeration peers(NIC forNIC)
Description copied from interface: linkLayer
Return the attached interfaces that are peers to the given interface.

Specified by:
peers in interface linkLayer