Interface Loader

  • All Implemented Interfaces:
    java.io.Serializable

    
    public interface Loader
     implements Serializable
                        

    An entity which is able to produce an Alchemist Simulation, resolving user defined variable values.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • getWith

         abstract <T extends Any, P extends Position<P>> Simulation<T, P> getWith(Map<String, ?> values)
        Parameters:
        values - a map specifying name-value bindings for the variables in this scenario
        Returns:

        an Simulation with all the variables set at the specified values. If the value is unspecified, the default is used instead </P></T>

      • launch

         Unit launch(Launcher launcher)

        Launches the simulations as configured by this loader. A custom launcher can be provided. Blocking, returns when all simulations are completed.

        Parameters:
        launcher - the launcher to be used
      • getConstants

         abstract Map<String, Object> getConstants()

        Allows to access the currently defined constants, namely variables defined in the simulation file whose value is constant and does not depend on the value of any free variable (directly or indirectly).

        Returns:

        a Map between variable names and their computed value

      • getLauncher

         abstract Launcher getLauncher()

        Returns the launcher to be used in to manage the simulation lifecycle.

        Returns:

        launcher

      • getDependentVariables

         abstract Map<String, DependentVariable<?>> getDependentVariables()

        Allows to access the currently defined dependent variable (those variables whose value can be determined given a valid set of values for the free variables).

        Returns:

        a Map between variable names and their actual representation