Class BmModels


  • public final class BmModels
    extends Object
    Factory methods for models.
    Restriction:
    • Method Detail

      • create

        public static IBmModel create​(IBmEngine engine,
                                      IBmSaveManager saveManager,
                                      IBmTaskCompletedProcessor processor,
                                      Path workingDirectory,
                                      boolean enableEvents)
        Creates a new IBmModel with the specified parameters.
        Parameters:
        engine - The underlying engine. May not be null.
        saveManager - The save manager. May not be null.
        path - The path of the file/directory where the model stores its data. May not be null
        enableEvents - The flag showing whether the events are enabled.
        Returns:
        a newly created BM model, never null.