Class OrderCatalogEntryRandomTaskCmdImpl

  • All Implemented Interfaces:
    MarketingSpotCommandBaseTaskCmd, OrderCatalogEntryTaskCmd,,,,,,

    public class OrderCatalogEntryRandomTaskCmdImpl
    extends MarketingSpotCommandBaseTaskCmdImpl
    implements OrderCatalogEntryTaskCmd
    The default implementation of OrderCatalogEntryTaskCmd. This implementation will provide a weighted-random ordering of catalog entries. The weighted-random algorithm will randomly select an ordering, giving those items with a higher priority a greater chance of being selected first. The catalog entry priority is set to the priority of the associated activity.
    See Also:
    Serialized Form
    • Field Detail


        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values

        public static final java.lang.String CLASSNAME
        The name of this class.
        See Also:
        Constant Field Values
    • Constructor Detail

      • OrderCatalogEntryRandomTaskCmdImpl

        public OrderCatalogEntryRandomTaskCmdImpl()
    • Method Detail

      • setCatalogEntries

        public void setCatalogEntries(java.util.ArrayList catalogEntries)
        Sets the catalog entries to order.
        Specified by:
        setCatalogEntries in interface OrderCatalogEntryTaskCmd
        catalogEntries - the array of catalog entry objects to order.
      • getCatalogEntries

        public java.util.ArrayList getCatalogEntries()
        Gets the ordered catalog entries.
        Specified by:
        getCatalogEntries in interface OrderCatalogEntryTaskCmd
        the array of catalog entries ordered by the command.
      • performExecute

        public void performExecute()
        Performs the ordering of the items passed.
        Specified by:
        performExecute in interface
        performExecute in class MarketingSpotCommandBaseTaskCmdImpl
        See Also: