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 TypeMethodDescriptionvoidThe operating system calls this method to notify that the application is going to be torn down.voidThe operating system calls this method to notify that the application is started.voidprocessEvent(Event event) Processes the given event.Methods inherited from class org.eclipse.mosaic.fed.application.app.AbstractApplication
canProcessEvent, getLog, getOperatingSystem, getRandom, isTornDown, isValidStateAndLog, setUp, tearDownMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ApplicationThe operating system calls this method to notify that the application is started. -
processEvent
Description copied from interface:EventProcessorProcesses the given event.- Parameters:
event- the event to process- Throws:
Exception
-
onShutdown
public void onShutdown()Description copied from interface:ApplicationThe operating system calls this method to notify that the application is going to be torn down.
-