Interface EngineCommand

All Superinterfaces:
AutoCloseable

public interface EngineCommand extends AutoCloseable

Interface for commands to implement if they want access to a riskscape engine during execution.

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Closes the engine
     
    void
    setEngine(Engine engine)
    Give the command an instance of the engine.
  • Method Details

    • setEngine

      void setEngine(Engine engine)

      Give the command an instance of the engine. Will be set before the command is invoked

    • getEngine

      Engine getEngine()
    • close

      default void close()

      Closes the engine

      Specified by:
      close in interface AutoCloseable