Interface IValueLifecycleHandler

All Superinterfaces:
IDiscoverableRuntimeMablModule
All Known Implementing Classes:
ArrayUtilLifecycleHandler, BaseLifecycleHandler, BooleanLogicLifecycleHandler, ConsolePrinterLifecycleHandler, CsvLifecycleHandler, DataWriterLifecycleHandler, DerivativeEstimatorLifecycleHandler, Fmi2LifecycleHandler, Fmi3LifecycleHandler, JavaClasspathLoaderLifecycleHandler, JFmi2LifecycleHandler, LoggerLifecycleHandler, MathLifecycleHandler, MEnvLifecycleHandler, ModelTransitionLifecycleHandler, RealTimeLifecycleHandler, SimulationControlDefaultLifecycleHandler, VariableStepLifecycleHandler

public interface IValueLifecycleHandler extends IDiscoverableRuntimeMablModule
Interface for dynamic runtime modules
  • Method Details

    • instantiate

      com.spencerwi.either.Either<Exception,Value> instantiate(List<Value> args)
      Creates an instance of the module based on the given arguments
      Parameters:
      args - the arguments to be used for the creation
      Returns:
      either an exception or the value just created
    • destroy

      void destroy(Value value)
      Destruction of the initially created value. This serves as a clena up handle
      Parameters:
      value - the value to destroy