verinec.netsim.events
Class ApplicationEvent

java.lang.Object
  extended by desmoj.core.simulator.NamedObject
      extended by desmoj.core.simulator.ModelComponent
          extended by desmoj.core.simulator.Schedulable
              extended by desmoj.core.simulator.Event
                  extended by 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

Field Summary
private  String application
           
private  String dst
           
private  ILogger logger
           
private  Node node
           
private  String parameters
           
private  String src
           
private  int time
           
private  String type
           
 
Constructor Summary
private ApplicationEvent(abstractNetworkLayer nl, String src, String dst, String application, String params, int time, String type)
           
  ApplicationEvent(Model model, Event event, String type, ILogger logger)
          Creates a new ApplicationEvent from a LogEvent
 
Method Summary
 void eventRoutine(Entity who)
           
private static abstractNetworkLayer getLayer(Model model, String node)
           
 
Methods inherited from class desmoj.core.simulator.Event
isExternal, schedule, scheduleAfter, scheduleBefore
 
Methods inherited from class desmoj.core.simulator.Schedulable
cancel, isCurrent, isScheduled, nextEntity, nextEvent, nextSchedulable, rename, reSchedule, scheduledAt
 
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
 
Methods inherited from class desmoj.core.simulator.NamedObject
getName, getQuotedName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

ApplicationEvent

public ApplicationEvent(Model model,
                        Event event,
                        String type,
                        ILogger logger)
                 throws NetSimException
Creates a new ApplicationEvent from a LogEvent

Parameters:
model - a network model
event - the logevent which contains informations about the application event
type - the application type start|service
logger - 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)
Method Detail

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

Copyright © 2005 Verinec, DIUF