|
|||||||||
| 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.EthernetEvent
public class EthernetEvent
A Ethernet Event Detail
| Field Summary | |
|---|---|
private Icon |
destinationIcon
|
private int |
endTime
|
private NwBinding |
ownerNWBinding
|
private static long |
serialVersionUID
|
private int |
startTime
|
private int |
totalSubsteps
|
| 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 | |
|---|---|
EthernetEvent()
Creates a Ethernet Event Detail |
|
EthernetEvent(String type,
String payloadtype)
Creates a Ethernet Event Detail |
|
| Method Summary | |
|---|---|
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
String |
getPayloadType()
gets the payloadType |
void |
initializeLabel(DrawPanel drawPanel)
Initializes the label (the animated object) |
private void |
initReceive(NwWire wire,
NwBinding ownerNWBinding)
|
private void |
initSend(NwWire wire,
NwBinding ownerNWBinding)
|
void |
setPayloadType(String payloadtype)
sets the payloadType |
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 int startTime
private int endTime
private int totalSubsteps
private NwBinding ownerNWBinding
private Icon destinationIcon
| Constructor Detail |
|---|
public EthernetEvent(String type,
String payloadtype)
type - a Typepayloadtype - payload typepublic EthernetEvent()
| Method Detail |
|---|
public final String getPayloadType()
public final void setPayloadType(String payloadtype)
payloadtype - a payloadType
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)
private void initSend(NwWire wire,
NwBinding ownerNWBinding)
private void initReceive(NwWire wire,
NwBinding ownerNWBinding)
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 | ||||||||