java.lang.Object
org.eclipse.mosaic.fed.application.app.AbstractApplication<VehicleOperatingSystem>
org.eclipse.mosaic.app.tutorial.interappcommunication.NotProcessingApp
All Implemented Interfaces:
Application, OperatingSystemAccess<VehicleOperatingSystem>, VehicleApplication, EventProcessor

public class NotProcessingApp extends AbstractApplication<VehicleOperatingSystem> implements VehicleApplication
This application is used only as an addition to the InterconnectApp. It doesn't implement processEvent method, thus not being able to receive the message that is sent from InterconnectApp.
  • Constructor Details

    • NotProcessingApp

      public NotProcessingApp()
  • Method Details

    • processEvent

      public void processEvent(Event event)
      Description copied from interface: EventProcessor
      Processes the given event.
      Specified by:
      processEvent in interface EventProcessor
      Parameters:
      event - the event to process
    • onStartup

      public void onStartup()
      Description copied from interface: Application
      The operating system calls this method to notify that the application is started.
      Specified by:
      onStartup in interface Application
    • 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.
      Specified by:
      onShutdown in interface Application
    • onVehicleUpdated

      public void onVehicleUpdated(@Nullable VehicleData previousVehicleData, @Nonnull VehicleData updatedVehicleData)
      Description copied from interface: VehicleApplication
      Is called when ever the vehicle has moved. That is, if the VehicleData of the unit has been updated.
      Specified by:
      onVehicleUpdated in interface VehicleApplication
      Parameters:
      previousVehicleData - the previous state of the vehicle
      updatedVehicleData - the updated state of the vehicle