verinec.netsim.processors.applications
Class AbstractApplication

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.Entity
                  extended by desmoj.core.simulator.SimProcess
                      extended by desmoj.core.simulator.NetSimProcess
                          extended by verinec.netsim.processors.applications.AbstractApplication
Direct Known Subclasses:
Dnsd, Ping, PingServer, PingUDP, PingUDPServer

public abstract class AbstractApplication
extends NetSimProcess

Version:
$Revision: 806 $
Author:
Dominik Jungo

Field Summary
protected  String arguments
          arguments used for the application
protected  String dst
          Destination
protected  Logger jlogger
          java logger used by this class
protected  ILogger logger
          logger used by the application
protected  Node node
          node on which the application runs
protected  String src
          Source
 
Constructor Summary
AbstractApplication(Model model, String name, Node node, String arguments, ILogger logger, String src, String dst)
          An abstract application
 
Method Summary
abstract  void applicationLifeCycle()
          runs the application
 ILogger getLogger()
          Gets this application's logger.
 void lifeCycle()
          Override this method in a subclass of simprocess to implement that simprocess' specific behaviour.
 void setLogger(ILogger logger2)
           
 
Methods inherited from class desmoj.core.simulator.NetSimProcess
activate, activateAfter, activateBefore, canCooperate, clearInterruptCode, cooperate, getInterruptCode, getMaster, getSlaveWaitQueue, getSupervisor, getUsedResources, hold, interrupt, isBlocked, isComponent, isInterrupted, isTerminated, obtainResources, passivate, prepareTransport, reActivate, resetMaster, returnAllResources, returnResources, setBlocked, setSlaveWaitQueue, setSupervisor
 
Methods inherited from class desmoj.core.simulator.Entity
getPriority, isEqual, isLarger, isLargerOrEqual, isNotEqual, isSimProcess, isSmaller, isSmallerOrEqual, numQueues, schedule, scheduleAfter, scheduleBefore, setPriority
 
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

node

protected Node node
node on which the application runs


arguments

protected String arguments
arguments used for the application


logger

protected ILogger logger
logger used by the application


src

protected String src
Source


dst

protected String dst
Destination


jlogger

protected Logger jlogger
java logger used by this class

Constructor Detail

AbstractApplication

public AbstractApplication(Model model,
                           String name,
                           Node node,
                           String arguments,
                           ILogger logger,
                           String src,
                           String dst)
An abstract application

Parameters:
model - a network model
name - name of the application
node - node on which the application runs
arguments - arguments used for the application
logger - logger used by the application
src - Source
dst - Destination
Method Detail

getLogger

public ILogger getLogger()
Gets this application's logger. At the beginning it should be a top level logger.

Returns:
this application's logger

lifeCycle

public final void lifeCycle()
Description copied from class: desmoj.core.simulator.NetSimProcess
Override this method in a subclass of simprocess to implement that simprocess' specific behaviour. This method starts after a simprocess has been created and activated by the scheduler.

Specified by:
lifeCycle in class NetSimProcess
See Also:
SimProcess.lifeCycle()

applicationLifeCycle

public abstract void applicationLifeCycle()
runs the application


setLogger

public void setLogger(ILogger logger2)

Copyright © 2005 Verinec, DIUF