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

      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.