|
|||||||||
| 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.IPEvent
public class IPEvent
A IP Event that happens when sending/receiving IP Packets
| Field Summary | |
|---|---|
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 | |
|---|---|
IPEvent()
Creates a new IP Event |
|
IPEvent(String type,
String protocol,
String ttl)
Creates a new IP Event |
|
| Method Summary | |
|---|---|
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
String |
getProtocol()
gets the protocol of the overlying layer |
String |
getTTL()
gets the time to live of the ip packet |
void |
initializeLabel(DrawPanel drawPanel)
Initializes the label (the animated object) |
void |
setProtocol(String protocol)
sets the protocol of the overlying layer |
void |
setTTL(String ttl)
sets the time to live of the ip packet |
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
| Constructor Detail |
|---|
public IPEvent(String type,
String protocol,
String ttl)
type - a Typeprotocol - Protocoll of overlying layerttl - time to live of the ip packetpublic IPEvent()
| Method Detail |
|---|
public final String getTTL()
public final void setTTL(String ttl)
ttl - the time to live of the ip packetpublic final String getProtocol()
public final void setProtocol(String protocol)
protocol - a protocol
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 | ||||||||