org.deckfour.xes.factory
Class XFactoryNaiveImpl

java.lang.Object
  extended by org.deckfour.xes.factory.XFactoryNaiveImpl
All Implemented Interfaces:
XFactory
Direct Known Subclasses:
XFactoryBufferedImpl

public class XFactoryNaiveImpl
extends 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 Summary
XFactoryNaiveImpl()
           
 
Method Summary
 XAttributeBoolean createAttributeBoolean(String key, boolean value, XExtension extension)
          Creates a new XES attribute with boolean type (Factory method).
 XAttributeContinuous createAttributeContinuous(String key, double value, XExtension extension)
          Creates a new XES attribute with continuous type (Factory method).
 XAttributeDiscrete createAttributeDiscrete(String key, long value, XExtension extension)
          Creates a new XES attribute with discrete type (Factory method).
 XAttributeLiteral createAttributeLiteral(String key, String value, XExtension extension)
          Creates a new XES attribute with literal type (Factory method).
 XAttributeMap createAttributeMap()
          Creates a new XES attribute map (Factory method).
 XAttributeTimestamp createAttributeTimestamp(String key, Date value, XExtension extension)
          Creates a new XES attribute with timestamp type (Factory method).
 XAttributeTimestamp createAttributeTimestamp(String key, long millis, XExtension extension)
          Creates a new XES attribute with timestamp type (Factory method).
 XEvent createEvent()
          Creates a new XES event instance (Factory method).
 XEvent createEvent(XAttributeMap attributes)
          Creates a new XES event instance (Factory method).
 XLog createLog()
          Creates a new XES log instance (Factory method).
 XLog createLog(XAttributeMap attributes)
          Creates a new XES log instance (Factory method).
 XTrace createTrace()
          Creates a new XES trace instance (Factory method).
 XTrace createTrace(XAttributeMap attributes)
          Creates a new XES trace instance (Factory method).
 String getAuthor()
          Returns the author name of the specific factory implementation.
 String getDescription()
          Returns a description of the specific factory implementation.
 String getName()
          Returns the name of the specific factory implementation.
 URI getUri()
          Returns an URI, pointing to more information about the specific factory implementation.
 String getVendor()
          Returns the vendor of the specific factory implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFactoryNaiveImpl

public XFactoryNaiveImpl()
Method Detail

getAuthor

public String getAuthor()
Description copied from interface: XFactory
Returns the author name of the specific factory implementation.

Specified by:
getAuthor in interface XFactory

getDescription

public String getDescription()
Description copied from interface: XFactory
Returns a description of the specific factory implementation.

Specified by:
getDescription in interface XFactory

getName

public String getName()
Description copied from interface: XFactory
Returns the name of the specific factory implementation.

Specified by:
getName in interface XFactory

getUri

public 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 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.

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(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(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(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(String key,
                                                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(String key,
                                                    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(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.