Class OrderCategoryRandomTaskCmdImpl

  • All Implemented Interfaces:
    MarketingSpotCommandBaseTaskCmd, OrderCategoryRandomTaskCmd, OrderCategoryTaskCmd,,,,,,

    public class OrderCategoryRandomTaskCmdImpl
    extends MarketingSpotCommandBaseTaskCmdImpl
    implements OrderCategoryRandomTaskCmd
    The default implementation of OrderCategoryRandomTaskCmd. This implementation will provide a weighted-random ordering of categories. The weighted-random algorithm will randomly select an ordering, giving those items with a higher priority a greater chance of being selected first. The category 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

      • OrderCategoryRandomTaskCmdImpl

        public OrderCategoryRandomTaskCmdImpl()
    • Method Detail

      • setCategories

        public void setCategories(java.util.ArrayList categories)
        Sets the categories to order.
        Specified by:
        setCategories in interface OrderCategoryTaskCmd
        categories - the array of categories objects to order.
      • getCategories

        public java.util.ArrayList getCategories()
        Gets the ordered categories.
        Specified by:
        getCategories in interface OrderCategoryTaskCmd
        the array of categories 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: