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
This is a simple application to demonstrate a sampling in a random interval.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
The operating system calls this method to notify that the application is going to be torn down.void
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
-
Constructor Details
-
RandomSamplingIntervalApp
public RandomSamplingIntervalApp()
-
-
Method Details
-
onStartup
public void onStartup()Description copied from interface:Application
The operating system calls this method to notify that the application is started. -
processEvent
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.
-