org.progressmining.xeslite.external.factory
Class XFactoryMapDBImpl

java.lang.Object
  extended by org.progressmining.xeslite.external.factory.XFactoryMapDBImpl
All Implemented Interfaces:
java.io.Serializable, org.deckfour.xes.factory.XFactory

public class XFactoryMapDBImpl
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 XAttributeMapDBFileStore on the file system using MapDB as storage provider. Attributes are stored together in a single BTreeMap. PLEASE NOTE: Attributes are considered immutable in this implementation, as they may be serialized and re-created at any time.

Author:
F. Mannhardt
See Also:
Serialized Form

Constructor Summary
XFactoryMapDBImpl()
           
 
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

XFactoryMapDBImpl

public XFactoryMapDBImpl()
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()