Interface GraphCourseModel<ST extends GraphSegment<ST,​PT>,​PT extends GraphPoint<PT,​ST>>

    • Method Detail

      • isReversedRestitution

        @Pure
        boolean isReversedRestitution()
        Replies if this model restitutes the elements in a reverse order.

        If true this model is assumed to replies the GraphIterationElement in the reverse order than the sequence of calls to addIterationElement(). If false this model is assumed to replies the GraphIterationElement in the same order as the sequence of calls to addIterationElement().

        Returns:
        true if reversed, otherwise false
      • addIterationElement

        void addIterationElement​(GraphIterationElement<ST,​PT> element)
        Add an element to iterate on.
        Parameters:
        element - is the element which could be the result of a future iteration.
      • isEmpty

        @Pure
        boolean isEmpty()
        Replies if the model contains an element to iterate one.
        Returns:
        true if an element exists, otherwhise false.
      • getNextIterationElement

        GraphIterationElement<ST,​PT> getNextIterationElement()
        Replies the next element without removing it from the iterator list.
        Returns:
        the next element
      • removeNextIterationElement

        GraphIterationElement<ST,​PT> removeNextIterationElement()
        Replies the next element and removes it from the iterator list.
        Returns:
        the next element
      • removeIterationElements

        void removeIterationElements​(Iterable<GraphIterationElement<ST,​PT>> elements)
        Remove the specified iteration elements.
        Parameters:
        elements - the elements to remove.
        Since:
        16.0