Class CustomerModelService

    • Constructor Detail

      • CustomerModelService

        public CustomerModelService()
    • Method Detail

      • initialize

        public String initialize​(org.powertac.common.Competition competition,
                                 List<String> completedInits)
        Description copied from interface: InitializationService
        Initializes a plugin prior to the beginning of a game. The completedInits parameter is the list of plugin role names that have been successfully initialized. If sequence dependencies are satisfied (or if there are no sequence dependencies), then an implementation must complete its pre-game initialization process and return its role name. If sequence dependencies are not satisfied, then an implementation must return null. It will be called again after additional successful initializations have been completed. If initialization is not possible, then returning the string 'fail' will cause the server to log an error and shut down. This will be helpful just in case the implementation also logs a detailed error message.
        Specified by:
        initialize in interface InitializationService
      • activate

        public void activate​(org.joda.time.Instant time,
                             int phaseNumber)
        Description copied from class: TimeslotPhaseProcessor
        This method gets called once during each timeslot. To get called, the module must first call the register(phaseNumber) method on CompetitionControl. The call will give the current simulation time and phase number in the arguments.
        Specified by:
        activate in class TimeslotPhaseProcessor
      • publishNewTariffs

        public void publishNewTariffs​(List<org.powertac.common.Tariff> tariffs)
        Description copied from interface: NewTariffListener
        Called periodically with a list of newly-published Tariffs
        Specified by:
        publishNewTariffs in interface NewTariffListener
      • 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