Class CbusSimulatedModuleProvider

    • Method Detail

      • getManufacturerId

        public abstract int getManufacturerId()
        Get the Manufacturer ID.
        Returns:
        manufacturer ID code.
      • getModuleId

        public abstract int getModuleId()
        Get the Manufacturer Module ID.
        Returns:
        manufacturer Module ID code.
      • configureDummyNode

        public abstract void configureDummyNode​(@Nonnull
                                                CbusNode node)
        For a given CbusDummyNode, configure it to the Simulation. This may include Node Parameters, Node Variables, events and event variables.
        Parameters:
        node - the Node to set to.
      • getModuleType

        @Nonnull
        public java.lang.String getModuleType()
        Descriptive String of Module Type. For use in selection menus etc.
        Returns:
        descriptive string of simulated module.
      • getToolTipText

        @Nonnull
        public java.lang.String getToolTipText()
        Descriptive Tooltip for Module Simulation. For use in selection menus etc.
        Returns:
        tooltip for the module.
      • getNewDummyNode

        @Nonnull
        public CbusDummyNode getNewDummyNode​(CanSystemConnectionMemo memo,
                                             int nodeNumber)
        Create a new CbusDummyNode of the implementing class type.
        Parameters:
        nodeNumber - Initial Node Number.
        memo - System Connection to use.
        Returns:
        new Dummy Node of implementing class type.
      • matchesManuAndModuleId

        public boolean matchesManuAndModuleId​(@CheckForNull
                                              CbusDummyNode nd)
        Checks if a Node Manufacturer and Module ID matches this module.
        Parameters:
        nd - the Node to test against, can be null.
        Returns:
        true if they match, else false.