org.progressmining.xeslite.external.factory
Class XFactoryExternalImpl

java.lang.Object
  extended by org.progressmining.xeslite.external.factory.XFactoryExternalImpl
All Implemented Interfaces:
java.io.Serializable, org.deckfour.xes.factory.XFactory
Direct Known Subclasses:
XFactoryExternalImpl.MapDBDirectMemoryImpl, XFactoryExternalImpl.MapDBDiskImpl

public class XFactoryExternalImpl
extends java.lang.Object
implements org.deckfour.xes.factory.XFactory, java.io.Serializable

Factory storing attributes of XAttributable XES objects in a, possibly external, XAttributeStore. This implementation stores attributes of XEvent, XTrace objects in a XAttributeMapDBStore.DiskStore on the file system using MapDB as storage provider. Attributes are stored together in a single BTreeMap. PLEASE NOTE: Attributes are immutable in this implementation, as they may be serialized and re-created at any time. Trying to change the value of an attribute will result in an UnsupportedOperationException.

Author:
F. Mannhardt
See Also:
Serialized Form

Nested Class Summary
static class XFactoryExternalImpl.MapDBDirectMemoryImpl
           
static class XFactoryExternalImpl.MapDBDiskImpl
           
 
Constructor Summary
XFactoryExternalImpl()
           
XFactoryExternalImpl(XAttributeStore store)
           
 
Method Summary
 void commit()
           
 org.deckfour.xes.model.XAttributeBoolean createAttributeBoolean(java.lang.String key, boolean value, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeContainer createAttributeContainer(java.lang.String key, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeContinuous createAttributeContinuous(java.lang.String key, double value, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeDiscrete createAttributeDiscrete(java.lang.String key, long value, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeID createAttributeID(java.lang.String key, org.deckfour.xes.id.XID value, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeList createAttributeList(java.lang.String key, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeLiteral createAttributeLiteral(java.lang.String key, java.lang.String value, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeMap createAttributeMap()
           
 org.deckfour.xes.model.XAttributeTimestamp createAttributeTimestamp(java.lang.String key, java.util.Date value, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XAttributeTimestamp createAttributeTimestamp(java.lang.String key, long millis, org.deckfour.xes.extension.XExtension extension)
           
 org.deckfour.xes.model.XEvent createEvent()
           
 org.deckfour.xes.model.XEvent createEvent(org.deckfour.xes.model.XAttributeMap attributes)
           
 org.deckfour.xes.model.XEvent createEvent(org.deckfour.xes.id.XID id, org.deckfour.xes.model.XAttributeMap attributes)
           
 org.deckfour.xes.model.XLog createLog()
           
 org.deckfour.xes.model.XLog createLog(org.deckfour.xes.model.XAttributeMap attributes)
           
 org.deckfour.xes.model.XTrace createTrace()
           
 org.deckfour.xes.model.XTrace createTrace(org.deckfour.xes.model.XAttributeMap attributes)
           
 java.lang.String getAuthor()
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.net.URI getUri()
           
 java.lang.String getVendor()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFactoryExternalImpl

public XFactoryExternalImpl()

XFactoryExternalImpl

public XFactoryExternalImpl(XAttributeStore store)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.deckfour.xes.factory.XFactory

getAuthor

public java.lang.String getAuthor()
Specified by:
getAuthor in interface org.deckfour.xes.factory.XFactory

getUri

public java.net.URI getUri()
Specified by:
getUri in interface org.deckfour.xes.factory.XFactory

getVendor

public java.lang.String getVendor()
Specified by:
getVendor in interface org.deckfour.xes.factory.XFactory

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface org.deckfour.xes.factory.XFactory

createLog

public org.deckfour.xes.model.XLog createLog()
Specified by:
createLog in interface org.deckfour.xes.factory.XFactory

createLog

public org.deckfour.xes.model.XLog createLog(org.deckfour.xes.model.XAttributeMap attributes)
Specified by:
createLog in interface org.deckfour.xes.factory.XFactory

createTrace

public org.deckfour.xes.model.XTrace createTrace()
Specified by:
createTrace in interface org.deckfour.xes.factory.XFactory

createTrace

public org.deckfour.xes.model.XTrace createTrace(org.deckfour.xes.model.XAttributeMap attributes)
Specified by:
createTrace in interface org.deckfour.xes.factory.XFactory

createEvent

public org.deckfour.xes.model.XEvent createEvent()
Specified by:
createEvent in interface org.deckfour.xes.factory.XFactory

createEvent

public org.deckfour.xes.model.XEvent createEvent(org.deckfour.xes.model.XAttributeMap attributes)
Specified by:
createEvent in interface org.deckfour.xes.factory.XFactory

createEvent

public org.deckfour.xes.model.XEvent createEvent(org.deckfour.xes.id.XID id,
                                                 org.deckfour.xes.model.XAttributeMap attributes)
Specified by:
createEvent in interface org.deckfour.xes.factory.XFactory

createAttributeMap

public org.deckfour.xes.model.XAttributeMap createAttributeMap()
Specified by:
createAttributeMap in interface org.deckfour.xes.factory.XFactory

createAttributeBoolean

public org.deckfour.xes.model.XAttributeBoolean createAttributeBoolean(java.lang.String key,
                                                                       boolean value,
                                                                       org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeBoolean in interface org.deckfour.xes.factory.XFactory

createAttributeContinuous

public org.deckfour.xes.model.XAttributeContinuous createAttributeContinuous(java.lang.String key,
                                                                             double value,
                                                                             org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeContinuous in interface org.deckfour.xes.factory.XFactory

createAttributeDiscrete

public org.deckfour.xes.model.XAttributeDiscrete createAttributeDiscrete(java.lang.String key,
                                                                         long value,
                                                                         org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeDiscrete in interface org.deckfour.xes.factory.XFactory

createAttributeLiteral

public org.deckfour.xes.model.XAttributeLiteral createAttributeLiteral(java.lang.String key,
                                                                       java.lang.String value,
                                                                       org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeLiteral in interface org.deckfour.xes.factory.XFactory

createAttributeTimestamp

public org.deckfour.xes.model.XAttributeTimestamp createAttributeTimestamp(java.lang.String key,
                                                                           java.util.Date value,
                                                                           org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeTimestamp in interface org.deckfour.xes.factory.XFactory

createAttributeTimestamp

public org.deckfour.xes.model.XAttributeTimestamp createAttributeTimestamp(java.lang.String key,
                                                                           long millis,
                                                                           org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeTimestamp in interface org.deckfour.xes.factory.XFactory

createAttributeID

public org.deckfour.xes.model.XAttributeID createAttributeID(java.lang.String key,
                                                             org.deckfour.xes.id.XID value,
                                                             org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeID in interface org.deckfour.xes.factory.XFactory

createAttributeContainer

public org.deckfour.xes.model.XAttributeContainer createAttributeContainer(java.lang.String key,
                                                                           org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeContainer in interface org.deckfour.xes.factory.XFactory

createAttributeList

public org.deckfour.xes.model.XAttributeList createAttributeList(java.lang.String key,
                                                                 org.deckfour.xes.extension.XExtension extension)
Specified by:
createAttributeList in interface org.deckfour.xes.factory.XFactory

commit

public void commit()