Class IvMTraceImpl

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<IvMMove>, java.util.Collection<IvMMove>, java.util.List<IvMMove>, java.util.RandomAccess, org.deckfour.xes.model.XAttributable, IvMTrace

    public class IvMTraceImpl
    extends java.util.ArrayList<IvMMove>
    implements IvMTrace
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Constructor Summary

      Constructors 
      Constructor Description
      IvMTraceImpl​(java.lang.String name, org.deckfour.xes.model.XAttributeMap attributes, int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      IvMTraceImpl.ActivityInstanceIterator activityInstanceIterator​(IvMModel model)  
      IvMTrace clone()  
      IvMTraceImpl.EventIterator eventIterator()  
      org.deckfour.xes.model.XAttributeMap getAttributes()
      Retrieves the attributes set for this element.
      java.lang.Double getEndTime()  
      java.util.Set<org.deckfour.xes.extension.XExtension> getExtensions()
      Retrieves the extensions used by this element, i.e.
      java.lang.String getName()
      Name to be shown in the trace view.
      int getNumberOfEvents()  
      java.lang.Long getRealEndTime()  
      java.lang.Long getRealStartTime()  
      java.lang.Double getStartTime()  
      boolean hasAttributes()
      Checks for the existence of attributes.
      void setAttributes​(org.deckfour.xes.model.XAttributeMap map)
      Sets the map of attributes for this element.
      void setEndTime​(double endTime)  
      void setRealEndTime​(long endTime)  
      void setRealStartTime​(long startTime)  
      void setStartTime​(double startTime)  
      java.lang.String toString()  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • Constructor Detail

      • IvMTraceImpl

        public IvMTraceImpl​(java.lang.String name,
                            org.deckfour.xes.model.XAttributeMap attributes,
                            int size)
    • Method Detail

      • setEndTime

        public void setEndTime​(double endTime)
        Specified by:
        setEndTime in interface IvMTrace
      • setStartTime

        public void setStartTime​(double startTime)
        Specified by:
        setStartTime in interface IvMTrace
      • getEndTime

        public java.lang.Double getEndTime()
        Specified by:
        getEndTime in interface IvMTrace
        Returns:
        end time of the trace in user time. This includes fading-out of the animated tokens.
      • getStartTime

        public java.lang.Double getStartTime()
        Specified by:
        getStartTime in interface IvMTrace
        Returns:
        start time of the trace in user time. This includes fading-in of the animated tokens.
      • setRealEndTime

        public void setRealEndTime​(long endTime)
        Specified by:
        setRealEndTime in interface IvMTrace
      • setRealStartTime

        public void setRealStartTime​(long startTime)
        Specified by:
        setRealStartTime in interface IvMTrace
      • getRealEndTime

        public java.lang.Long getRealEndTime()
        Specified by:
        getRealEndTime in interface IvMTrace
        Returns:
        the last timestamp that is present in the trace in log time.
      • getRealStartTime

        public java.lang.Long getRealStartTime()
        Specified by:
        getRealStartTime in interface IvMTrace
        Returns:
        the first timestamp that is present in the trace in log time.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<IvMMove>
      • getName

        public java.lang.String getName()
        Description copied from interface: IvMTrace
        Name to be shown in the trace view.
        Specified by:
        getName in interface IvMTrace
        Returns:
      • getAttributes

        public org.deckfour.xes.model.XAttributeMap getAttributes()
        Description copied from interface: org.deckfour.xes.model.XAttributable
        Retrieves the attributes set for this element.
        Specified by:
        getAttributes in interface IvMTrace
        Specified by:
        getAttributes in interface org.deckfour.xes.model.XAttributable
        Returns:
        A map of attributes.
      • setAttributes

        public void setAttributes​(org.deckfour.xes.model.XAttributeMap map)
        Description copied from interface: org.deckfour.xes.model.XAttributable
        Sets the map of attributes for this element.
        Specified by:
        setAttributes in interface org.deckfour.xes.model.XAttributable
        Parameters:
        map - A map of attributes.
      • clone

        public IvMTrace clone()
        Overrides:
        clone in class java.util.ArrayList<IvMMove>
      • getExtensions

        public java.util.Set<org.deckfour.xes.extension.XExtension> getExtensions()
        Description copied from interface: org.deckfour.xes.model.XAttributable
        Retrieves the extensions used by this element, i.e. the extensions used by all attributes of this element, and the element itself.
        Specified by:
        getExtensions in interface org.deckfour.xes.model.XAttributable
        Returns:
        A set of extensions.
      • hasAttributes

        public boolean hasAttributes()
        Description copied from interface: org.deckfour.xes.model.XAttributable
        Checks for the existence of attributes. This method can be a more efficient way of checking for the existance of attributes than using XAttributable.getAttributes() in certain situations.
        Specified by:
        hasAttributes in interface org.deckfour.xes.model.XAttributable
        Returns:
        whether this element has any attributes