verinec.netsim.processors
Class IPProcessor

java.lang.Object
  extended by verinec.netsim.processors.EventProcessor
      extended by verinec.netsim.processors.IPProcessor

public class IPProcessor
extends EventProcessor

An IP Processor (Implementation of the IP Protocol)

Version:
$Revision:835 $
Author:
Dominik Jungo

Field Summary
private  Logger jlogger
           
 
Constructor Summary
IPProcessor()
          Creates a new IP Processor
IPProcessor(abstractNetworkLayer layer)
          Creates a new IP Processor
 
Method Summary
 void processDown(NetworkLayerPacketArrivedEventDown event)
          processes down a NetworkLayerPacketArrivedEventDown.
 void processDown(PacketArrivedEventDown event)
          processes events for a packet that was send down to this layer
 void processUp(PacketArrivedEventUp event)
          processes events for a packet that was send up to this layer
 
Methods inherited from class verinec.netsim.processors.EventProcessor
getLayer, getName, setLayer, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jlogger

private Logger jlogger
Constructor Detail

IPProcessor

public IPProcessor(abstractNetworkLayer layer)
Creates a new IP Processor

Parameters:
layer - layer in which one the processor operates

IPProcessor

public IPProcessor()
Creates a new IP Processor

Method Detail

processUp

public void processUp(PacketArrivedEventUp event)
Description copied from class: EventProcessor
processes events for a packet that was send up to this layer

Specified by:
processUp in class EventProcessor
Parameters:
event - a event for a packet that was send up to this layer
See Also:
EventProcessor.processUp(verinec.netsim.events.PacketArrivedEventUp)

processDown

public void processDown(NetworkLayerPacketArrivedEventDown event)
processes down a NetworkLayerPacketArrivedEventDown. It does ARP, constructs a Layer 2 packet and sents this one down to layer 2.

Parameters:
event - a NetworkLayerPacketArrivedEventDown
See Also:
EventProcessor.processDown(verinec.netsim.events.PacketArrivedEventDown)

processDown

public void processDown(PacketArrivedEventDown event)
Description copied from class: EventProcessor
processes events for a packet that was send down to this layer

Specified by:
processDown in class EventProcessor
Parameters:
event - a event for a packet that was send down to this layer
See Also:
EventProcessor.processDown(verinec.netsim.events.PacketArrivedEventDown)

Copyright © 2005 Verinec, DIUF