verinec.netsim.events
Class ARPTimeoutEvent

java.lang.Object
  extended by desmoj.core.simulator.NamedObject
      extended by desmoj.core.simulator.ModelComponent
          extended by desmoj.core.simulator.Schedulable
              extended by desmoj.core.simulator.Event
                  extended by verinec.netsim.events.ARPTimeoutEvent

public class ARPTimeoutEvent
extends Event

A ARP Timeout Event. If this one occurs it means that the ARP request was not successfull

Version:
$Revision: 47 $
Author:
Dominik Jungo

Field Summary
private  IAddress address
           
private  NetworkLayer layer
           
 
Constructor Summary
ARPTimeoutEvent(Model model, IAddress address, NetworkLayer layer)
          Construts a new TimeoutEvent for an ARP request(that was not successful)
 
Method Summary
 void eventRoutine(Entity arg0)
           
 IAddress getAddress()
          gets the address to lookup by arp
 NetworkLayer getLayer()
          gets the layer in which the timeout happend
 void setAddress(IAddress address)
          sets the address to lookup by arp
 void setLayer(NetworkLayer layer)
          sets the layer in which the timeout happend
 
Methods inherited from class desmoj.core.simulator.Event
isExternal, schedule, scheduleAfter, scheduleBefore
 
Methods inherited from class desmoj.core.simulator.Schedulable
cancel, isCurrent, isScheduled, nextEntity, nextEvent, nextSchedulable, rename, reSchedule, scheduledAt
 
Methods inherited from class desmoj.core.simulator.ModelComponent
current, currentEntity, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn
 
Methods inherited from class desmoj.core.simulator.NamedObject
getName, getQuotedName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

address

private IAddress address

layer

private NetworkLayer layer
Constructor Detail

ARPTimeoutEvent

public ARPTimeoutEvent(Model model,
                       IAddress address,
                       NetworkLayer layer)
Construts a new TimeoutEvent for an ARP request(that was not successful)

Parameters:
model - a model
address - the address to lookup by arp
layer - the networklayer that does the arp lookup
Method Detail

eventRoutine

public void eventRoutine(Entity arg0)
Specified by:
eventRoutine in class Event
See Also:
Event.eventRoutine(desmoj.core.simulator.Entity)

getAddress

public IAddress getAddress()
gets the address to lookup by arp

Returns:
the address to lookup by arp

setAddress

public void setAddress(IAddress address)
sets the address to lookup by arp

Parameters:
address - an address to lookup by arp

getLayer

public NetworkLayer getLayer()
gets the layer in which the timeout happend

Returns:
the layer in which the timeout happend

setLayer

public void setLayer(NetworkLayer layer)
sets the layer in which the timeout happend

Parameters:
layer - the layer in which the timeout happens

Copyright © 2005 Verinec, DIUF