Interface PTrace

    • Method Detail

      • getTrace

        org.deckfour.xes.model.XTrace getTrace()
        Returns:
        The linear trace
      • getEvent

        org.deckfour.xes.model.XEvent getEvent​(int index)
      • getTraceIndex

        int getTraceIndex()
        Returns:
        The index of the linear trace in the log
      • setTraceIndex

        void setTraceIndex​(int i)
      • size

        int size()
        Returns:
        The number of events
      • getEventIndices

        java.util.Collection<java.lang.Integer> getEventIndices()
      • getStartEventIndices

        java.util.Collection<java.lang.Integer> getStartEventIndices()
        Returns:
        A set of indices of events that have no predecessors.
      • getEndEventIndices

        java.util.Collection<java.lang.Integer> getEndEventIndices()
        Returns:
        A set of indices of event that have no successors.
      • getDependencies

        java.util.Collection<PDependency> getDependencies()
      • getDependency

        PDependency getDependency​(int sourceEventIndex,
                                  int targetEventIndex)
        Parameters:
        source - The index of preceding event
        target - The index of succeeding event
        Returns:
        A data relation between the two events, or null if there is no relation
      • getPredecessorIndices

        java.util.Collection<java.lang.Integer> getPredecessorIndices​(int index)
      • getSuccessorIndices

        java.util.Collection<java.lang.Integer> getSuccessorIndices​(int index)
      • addEvent

        boolean addEvent​(int eventIndex)
      • addDependency

        boolean addDependency​(PDependency relation,
                              int sourceEventIndex,
                              int targetEventIndex)