|
|||||||||
| 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.ApplicationEvent
public class ApplicationEvent
A ApplicationEvent Detail. This is the one and only EventDetail used for Application to keep things simple. It would be to complicated to add for each application an event detail.
| 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 | |
|---|---|
ApplicationEvent()
Creates a new Application EventDetail |
|
ApplicationEvent(String type,
String program,
String parameters)
Creates a new Application EventDetail |
|
| Method Summary | |
|---|---|
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
String |
getParameters()
gets the parameters with which the program was called |
String |
getProgram()
gets the name of the programm that caused this event |
void |
initializeLabel(DrawPanel drawPanel)
Initializes the label (the animated object) |
void |
resolveVariables()
Resolves all variables in the attribute by looking up their value in the parent |
Element |
setAttribute(Attribute attribute)
|
void |
setParameters(String parameters)
sets the parameters with which the program was called |
void |
setProgram(String program)
sets the name of the programm that caused this event |
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 |
|---|
public ApplicationEvent(String type,
String program,
String parameters)
type - a Typeprogram - the programm which caused this eventparameters - the parameters with which this programm was called. All appearing variables between dollars are not resolved here.public ApplicationEvent()
| Method Detail |
|---|
public Element setAttribute(Attribute attribute)
setAttribute in class ElementElement.setAttribute(org.jdom.Attribute)public void resolveVariables()
public final String getProgram()
public final void setProgram(String program)
program - a programm namepublic final String getParameters()
public final void setParameters(String parameters)
parameters - the parameters with which the program was called
public Event createSimEvent(Model model,
ILogger logger)
throws NumberFormatException,
NetSimException
EventDetail
createSimEvent in class EventDetailmodel - a network modellogger - a log event
NetSimException - if no host with given name is found
NumberFormatExceptionEventDetail.createSimEvent(desmoj.core.simulator.Model,
verinec.netsim.loggers.ILogger)public void initializeLabel(DrawPanel drawPanel)
EventDetail
initializeLabel in class EventDetaildrawPanel - the panel containing the labelEventDetail.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 | ||||||||