verinec.netsim.events
Class ApplicationEvent
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Event
verinec.netsim.events.ApplicationEvent
public class ApplicationEvent
- extends Event
An ApplicationEvent. This causes an application to be instantiacted an
scheduled to be run on a node.
- Version:
- $Revision: 794 $
- Author:
- Dominik Jungo
| Methods inherited from class desmoj.core.simulator.ModelComponent |
current, currentEntity, currentEvent, currentModel, currentSimProcess, currentTime, debugIsOn, debugOff, debugOn, epsilon, getModel, isExperimentCompatible, isModelCompatible, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOn |
application
private String application
parameters
private String parameters
node
private Node node
logger
private ILogger logger
src
private String src
dst
private String dst
time
private int time
type
private String type
ApplicationEvent
public ApplicationEvent(Model model,
Event event,
String type,
ILogger logger)
throws NetSimException
- Creates a new ApplicationEvent from a LogEvent
- Parameters:
model - a network modelevent - the logevent which contains informations about the application
eventtype - the application type start|servicelogger - a logger used for logging all events that happen during the
run of the application
- Throws:
NetSimException - if no host with given name is found
ApplicationEvent
private ApplicationEvent(abstractNetworkLayer nl,
String src,
String dst,
String application,
String params,
int time,
String type)
eventRoutine
public void eventRoutine(Entity who)
- Specified by:
eventRoutine in class Event
- See Also:
Event.eventRoutine(desmoj.core.simulator.Entity)
getLayer
private static abstractNetworkLayer getLayer(Model model,
String node)
throws NetSimException
- Throws:
NetSimException