Class RandomSamplingIntervalApp
- java.lang.Object
-
- org.eclipse.mosaic.fed.application.app.AbstractApplication<VehicleOperatingSystem>
-
- org.eclipse.mosaic.app.tutorial.eventprocessing.sampling.RandomSamplingIntervalApp
-
- All Implemented Interfaces:
Application
,OperatingSystemAccess<VehicleOperatingSystem>
,EventProcessor
public class RandomSamplingIntervalApp extends AbstractApplication<VehicleOperatingSystem>
This is a simple application to demonstrate a sampling in a random interval.
-
-
Constructor Summary
Constructors Constructor Description RandomSamplingIntervalApp()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onShutdown()
The operating system calls this method to notify that the application is going to be torn down.void
onStartup()
The operating system calls this method to notify that the application is started.void
processEvent(Event event)
Processes the given event.-
Methods inherited from class org.eclipse.mosaic.fed.application.app.AbstractApplication
canProcessEvent, getLog, getOperatingSystem, getRandom, isTornDown, isValidStateAndLog, setUp, tearDown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.mosaic.fed.application.app.api.OperatingSystemAccess
getOs
-
-
-
-
Method Detail
-
onStartup
public void onStartup()
Description copied from interface:Application
The operating system calls this method to notify that the application is started.
-
processEvent
public void processEvent(Event event) throws Exception
Description copied from interface:EventProcessor
Processes the given event.- Parameters:
event
- the event to process- Throws:
Exception
-
onShutdown
public void onShutdown()
Description copied from interface:Application
The operating system calls this method to notify that the application is going to be torn down.
-
-