Interface ModelCreator<S extends org.eclipse.emf.ecore.EObject,M extends Model>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ModelCreator<S extends org.eclipse.emf.ecore.EObject,M extends Model>
  • Method Summary

    Modifier and Type
    Method
    Description
    createModel(S scenario, int seed, Engine engine)
    Returns an instance of a simulation model initialized by its parameters:
  • Method Details

    • createModel

      M createModel(S scenario, int seed, Engine engine)
      Returns an instance of a simulation model initialized by its parameters:
      Parameters:
      scenario - instance of the scenario used to initialize the model
      seed - random seed
      engine - instance of Engine used to initialize the model
      Returns:
      Instance of a simulation model, or null of initialization failed