Class SimpleGencoService

    • Constructor Detail

      • SimpleGencoService

        public SimpleGencoService()
        Default constructor
    • Method Detail

      • init

        public void init​(List<Genco> gencos)
        Simply receives and stores the list of genco and buyer instances generated by the initialization service.
      • activate

        public void activate​(org.joda.time.Instant now,
                             int phase)
        Called once/timeslot, simply calls updateModel() and generateOrders() on each of the gencos.
        Specified by:
        activate in class TimeslotPhaseProcessor
      • saveBootstrapState

        public void saveBootstrapState()
        Description copied from interface: BootstrapState
        Saves state at the conclusion of a bootstrap session as configuration items. State can then be restored at the beginning of the sim session through the normal configuration process. The usual way to save state is to call ServerPropertiesService.saveBootstrapState(arg), where arg is either a single configurable object (configured with configureMe() or configureSingleton()), or a list of objects annotated with ConfigurableInstance.
        Specified by:
        saveBootstrapState in interface BootstrapState
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext appContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException