Class XFactoryNaiveImpl

  • All Implemented Interfaces:
    XFactory
    Direct Known Subclasses:
    XFactoryBufferedImpl

    public class XFactoryNaiveImpl
    extends java.lang.Object
    implements XFactory
    This factory will create the naive implementations of all model hierarchy elements, i.e., no buffering or further optimizations will be employed.
    Author:
    Christian W. Guenther (christian@deckfour.org)
    • Constructor Detail

      • XFactoryNaiveImpl

        public XFactoryNaiveImpl()
    • Method Detail

      • getAuthor

        public java.lang.String getAuthor()
        Description copied from interface: XFactory
        Returns the author name of the specific factory implementation.
        Specified by:
        getAuthor in interface XFactory
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: XFactory
        Returns a description of the specific factory implementation.
        Specified by:
        getDescription in interface XFactory
      • getName

        public java.lang.String getName()
        Description copied from interface: XFactory
        Returns the name of the specific factory implementation.
        Specified by:
        getName in interface XFactory
      • getUri

        public java.net.URI getUri()
        Description copied from interface: XFactory
        Returns an URI, pointing to more information about the specific factory implementation.
        Specified by:
        getUri in interface XFactory
      • getVendor

        public java.lang.String getVendor()
        Description copied from interface: XFactory
        Returns the vendor of the specific factory implementation.
        Specified by:
        getVendor in interface XFactory
      • createLog

        public XLog createLog()
        Description copied from interface: XFactory
        Creates a new XES log instance (Factory method).
        Specified by:
        createLog in interface XFactory
        Returns:
        A new log instance.
      • createLog

        public XLog createLog​(XAttributeMap attributes)
        Description copied from interface: XFactory
        Creates a new XES log instance (Factory method).
        Specified by:
        createLog in interface XFactory
        Parameters:
        attributes - The attributes of the log.
        Returns:
        A new log instance.
      • createTrace

        public XTrace createTrace()
        Description copied from interface: XFactory
        Creates a new XES trace instance (Factory method).
        Specified by:
        createTrace in interface XFactory
        Returns:
        A new trace instance.
      • createTrace

        public XTrace createTrace​(XAttributeMap attributes)
        Description copied from interface: XFactory
        Creates a new XES trace instance (Factory method).
        Specified by:
        createTrace in interface XFactory
        Parameters:
        attributes - The attributes of the trace.
        Returns:
        A new trace instance.
      • createEvent

        public XEvent createEvent()
        Description copied from interface: XFactory
        Creates a new XES event instance (Factory method).
        Specified by:
        createEvent in interface XFactory
        Returns:
        A new event instance.
      • createEvent

        public XEvent createEvent​(XAttributeMap attributes)
        Description copied from interface: XFactory
        Creates a new XES event instance (Factory method).
        Specified by:
        createEvent in interface XFactory
        Parameters:
        attributes - The attributes of the event.
        Returns:
        A new event instance.
      • createEvent

        public XEvent createEvent​(XID id,
                                  XAttributeMap attributes)
        Description copied from interface: XFactory
        Creates a new XES event instance (Factory method). Only to be used in case of deserialization, such that the id remains consistent.
        Specified by:
        createEvent in interface XFactory
        Parameters:
        id - the id of this new event. Only to be used in case of deserializing!
        attributes - the attributes of the event
        Returns:
        A new event instance
      • createAttributeMap

        public XAttributeMap createAttributeMap()
        Description copied from interface: XFactory
        Creates a new XES attribute map (Factory method).
        Specified by:
        createAttributeMap in interface XFactory
        Returns:
        A new XES attribute map instance.
      • createAttributeBoolean

        public XAttributeBoolean createAttributeBoolean​(java.lang.String key,
                                                        boolean value,
                                                        XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with boolean type (Factory method).
        Specified by:
        createAttributeBoolean in interface XFactory
        Parameters:
        key - The key of the attribute.
        value - The value of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • createAttributeContinuous

        public XAttributeContinuous createAttributeContinuous​(java.lang.String key,
                                                              double value,
                                                              XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with continuous type (Factory method).
        Specified by:
        createAttributeContinuous in interface XFactory
        Parameters:
        key - The key of the attribute.
        value - The value of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • createAttributeDiscrete

        public XAttributeDiscrete createAttributeDiscrete​(java.lang.String key,
                                                          long value,
                                                          XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with discrete type (Factory method).
        Specified by:
        createAttributeDiscrete in interface XFactory
        Parameters:
        key - The key of the attribute.
        value - The value of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • createAttributeLiteral

        public XAttributeLiteral createAttributeLiteral​(java.lang.String key,
                                                        java.lang.String value,
                                                        XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with literal type (Factory method).
        Specified by:
        createAttributeLiteral in interface XFactory
        Parameters:
        key - The key of the attribute.
        value - The value of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • createAttributeTimestamp

        public XAttributeTimestamp createAttributeTimestamp​(java.lang.String key,
                                                            java.util.Date value,
                                                            XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with timestamp type (Factory method).
        Specified by:
        createAttributeTimestamp in interface XFactory
        Parameters:
        key - The key of the attribute.
        value - The value of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • createAttributeTimestamp

        public XAttributeTimestamp createAttributeTimestamp​(java.lang.String key,
                                                            long millis,
                                                            XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with timestamp type (Factory method).
        Specified by:
        createAttributeTimestamp in interface XFactory
        Parameters:
        key - The key of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • createAttributeID

        public XAttributeID createAttributeID​(java.lang.String key,
                                              XID value,
                                              XExtension extension)
        Description copied from interface: XFactory
        Creates a new XES attribute with id type (Factory method).
        Specified by:
        createAttributeID in interface XFactory
        Parameters:
        key - The key of the attribute.
        value - The value of the attribute.
        extension - The extension defining the attribute (set to null , if the attribute is not associated to an extension)
        Returns:
        A newly created attribute.
      • isUseInterner

        public boolean isUseInterner()
      • setUseInterner

        public void setUseInterner​(boolean useInterner)