Class AbstractCsvDatasource

    • Constructor Detail

      • AbstractCsvDatasource

        protected AbstractCsvDatasource​(ChannelId[] firstInitialChannelIds,
                                        ChannelId[]... furtherInitialChannelIds)
    • Method Detail

      • getComponentManager

        protected abstract ComponentManager getComponentManager()
      • getData

        protected abstract DataContainer getData()
                                          throws java.lang.NumberFormatException,
                                                 java.io.IOException
        Throws:
        java.lang.NumberFormatException
        java.io.IOException
      • activate

        protected void activate​(org.osgi.service.component.ComponentContext context,
                                java.lang.String id,
                                java.lang.String alias,
                                boolean enabled,
                                int timeDelta)
                         throws java.lang.NumberFormatException,
                                java.io.IOException
        Throws:
        java.lang.NumberFormatException
        java.io.IOException
      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler
      • getValue

        public <T> T getValue​(OpenemsType type,
                              ChannelAddress channelAddress)
        Description copied from interface: SimulatorDatasource
        Gets the value for the given key (channelId) in the given type.
        Specified by:
        getValue in interface SimulatorDatasource
        Type Parameters:
        T - the type
        Parameters:
        type - the expected type
        channelAddress - the Channel-Address
        Returns:
        the value, possibly null