|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdom.Content
org.jdom.Element
verinec.netsim.loggers.events.EventDetail
verinec.netsim.loggers.events.ARPEvent
public class ARPEvent
A ARP Event
| Field Summary | |
|---|---|
private static String |
ARP_REPLY_ICON
|
private static String |
ARP_REQUEST_ICON
|
private NwBinding |
ownerNWBinding
|
private static long |
serialVersionUID
|
| Fields inherited from class verinec.netsim.loggers.events.EventDetail |
|---|
dHeight, dWidth, dx, dy, endX, endY, label, ownerPCNode, startX, startY |
| Fields inherited from class org.jdom.Element |
|---|
additionalNamespaces, name, namespace |
| Fields inherited from class org.jdom.Content |
|---|
parent |
| Constructor Summary | |
|---|---|
ARPEvent()
Creates a ARP Event |
|
ARPEvent(String type,
String sha,
String spa,
String tha,
String tpa)
creates a new ARP Event |
|
| Method Summary | |
|---|---|
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
String |
getSha()
gets the source layer 2 address |
String |
getSpa()
gets the source layer 3 address |
String |
getTha()
gets the destination layer 2 address |
String |
getTpa()
gets the destination layer 3 address |
void |
initializeLabel(DrawPanel drawPanel)
Initializes the label (the animated object) |
void |
setSha(String sha)
sets the source layer 3 address |
void |
setSpa(String spa)
sets the source layer 3 address |
void |
setTha(String tha)
sets the destination layer 2 address |
void |
setTpa(String tpa)
sets the destination layer 3 address |
protected void |
subanimate(int time,
int substep,
int myPhase,
int totalPhase)
animates a substep of the whole animation |
| Methods inherited from class verinec.netsim.loggers.events.EventDetail |
|---|
animate, getType, initAnimation, isAnimationInitialized, setType, toString |
| Methods inherited from class org.jdom.Content |
|---|
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jdom.Parent |
|---|
getDocument, getParent |
| Field Detail |
|---|
private static final long serialVersionUID
private NwBinding ownerNWBinding
private static String ARP_REQUEST_ICON
private static String ARP_REPLY_ICON
| Constructor Detail |
|---|
public ARPEvent(String type,
String sha,
String spa,
String tha,
String tpa)
type - a Typesha - the source layer 2 addressspa - the source layer 3 addresstha - the destination layer 2 addresstpa - the destination layer 3 addresspublic ARPEvent()
| Method Detail |
|---|
public final String getSha()
public final void setSha(String sha)
sha - an addresspublic final String getSpa()
public final void setSpa(String spa)
spa - an addresspublic final String getTha()
public final void setTha(String tha)
tha - an addresspublic final String getTpa()
public final void setTpa(String tpa)
tpa - an address
public Event createSimEvent(Model model,
ILogger logger)
EventDetail
createSimEvent in class EventDetailmodel - a network modellogger - a log event
EventDetail.createSimEvent(Model,
ILogger)
public void initializeLabel(DrawPanel drawPanel)
throws NetSimException
EventDetail
initializeLabel in class EventDetaildrawPanel - the panel containing the label
NetSimExceptionEventDetail.initializeLabel(verinec.gui.core.DrawPanel)
protected void subanimate(int time,
int substep,
int myPhase,
int totalPhase)
EventDetail
subanimate in class EventDetailtime - actual timesubstep - the n'th substep that is animatedmyPhase - the phase length that is animated in this substeptotalPhase - the complete phase lengthEventDetail.subanimate(int, int, int, int)
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||