Interface IContainableElementsSorter

All Known Subinterfaces:
IDecisionVariableContainer
All Known Implementing Classes:
AttributeAssignment, BasicDecisionVariableContainer, Compound, FullDecisionVariableContainer

public interface IContainableElementsSorter
Defines an interface for classes which are able to sort their elements according to a given comparator.
Author:
Holger Eichelberger
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Sorts the contained elements (and creates the related datastructure if needed) according to the specified comparator.
  • Method Details

    • sortContainedElements

      void sortContainedElements(Comparator<ContainableModelElement> comp)
      Sorts the contained elements (and creates the related datastructure if needed) according to the specified comparator. Please note the following requirements for applying this method:
      • All Elements which were added before this operation must still be member of this project after executing this operation.
      • Comments related to an element must occur before the element in the final sequence.
      Parameters:
      comp - a comparator which fulfills the requirements above