|
|||||||||
| 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.UDPEvent
public class UDPEvent
A UDP EventDetail element with source and destination port.
| Field Summary | |
|---|---|
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 | |
|---|---|
|
UDPEvent()
Creates a new udp event element type |
|
UDPEvent(String type)
Creates a new udp event element type |
protected |
UDPEvent(String eventtype,
String type)
Creates a new udp event element type |
protected |
UDPEvent(String eventtype,
String type,
UDPPacket packet)
Creates a new udp event element type |
|
UDPEvent(String type,
UDPPacket packet)
Creates a new udp event element type |
| Method Summary | |
|---|---|
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
String |
getDstAddress()
gets the destination address of the packet logged in this event |
String |
getDstPort()
gets the destination port |
String |
getSrcAddress()
gets the source address of the packet logged in this event |
String |
getSrcPort()
gets the source port |
void |
initializeLabel(DrawPanel drawpanel)
Initializes the label (the animated object) |
private void |
setDstAddress(String dstaddress)
|
void |
setDstPort(String port)
sets the destination port |
private void |
setSrcAddress(String srcaddress)
|
void |
setSrcPort(String port)
sets the source port |
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
| Constructor Detail |
|---|
protected UDPEvent(String eventtype,
String type,
UDPPacket packet)
eventtype - the event source type, normally udp or tcptype - a type the event type (e.g send or receive)packet - a packet related to this event. this can be a sent or received packet
protected UDPEvent(String eventtype,
String type)
eventtype - the event source type, normally udp or tcptype - a type the event type (e.g send or receive)
public UDPEvent(String type,
UDPPacket packet)
type - a type the event type (e.g send or receive)packet - a packet related to this event. this can be a sent or received packetpublic UDPEvent()
public UDPEvent(String type)
type - a type the event type (e.g send or receive)| Method Detail |
|---|
private void setSrcAddress(String srcaddress)
private void setDstAddress(String dstaddress)
public String getSrcAddress()
public String getDstAddress()
public final String getSrcPort()
public final void setSrcPort(String port)
port - a port numberpublic final String getDstPort()
public final void setDstPort(String port)
port - a port number
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
NetSimException - if the label can't be set upEventDetail.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 | ||||||||