ilog.rules.dt.model.helper

Class IlrDTCloneHelper

  • java.lang.Object
    • ilog.rules.dt.model.helper.IlrDTCloneHelper


  • public class IlrDTCloneHelper
    extends java.lang.Object
    Copies and clones parts of an IlrDTModel.
    • Constructor Detail

      • IlrDTCloneHelper

        public IlrDTCloneHelper()
    • Method Detail

      • clonePartition

        public static void clonePartition(IlrDTModel dtModel,
                          IlrDTPartitionItem item,
                          IlrDTPartition partition)
        Replaces the statement of a partition item by a copy of the given partition.
        Parameters:
        dtModel - The model target of the copy.
        item - The partition item whose statement will be replaced.
        partition - The partition source of the copy.
      • clonePartitionItem

        public static IlrDTPartitionItem clonePartitionItem(IlrDTModel dtModel,
                                            IlrDTPartition partition,
                                            int index,
                                            IlrDTPartitionItem item)
        Inserts a recursive copy of the partition item item at position index in the partition partition of dtModel.
        Parameters:
        dtModel - The target model.
        partition - The parent partition of the copied item.
        index - The index to insert the copied item.
        item - The partition item source for the copy.
      • clonePartitionItem

        public static IlrDTPartitionItem clonePartitionItem(IlrDTModel dtModel,
                                            IlrDTPartition partition,
                                            int index,
                                            IlrDTPartitionItem item,
                                            boolean replaceItem)
        Inserts or replaces a recursive copy of the partition item item at position index in the partition partition of dtModel.
        Parameters:
        dtModel - The target model.
        partition - The parent partition of the copied item.
        index - The index to insert the copied item.
        item - The partition item source for the copy.
        replaceItem - True to replace the partition item a position index, false to insert the copy at position index.
        Returns:
        Inserted or replaced partition item.
      • cloneActionSet

        public static void cloneActionSet(IlrDTModel dtModel,
                          IlrDTPartitionItem item,
                          IlrDTActionSet actionSet)
        Replaces the statement of a partition item by a copy of the given action set.
        Parameters:
        dtModel - The model target of the copy.
        item - The partition item whose statement will be replaced.
        actionSet - The action set source of the copy.

© Copyright IBM Corp. 1987, 2017