Package org.deckfour.xes.extension.std
Class XCostExtension
- java.lang.Object
-
- org.deckfour.xes.extension.XExtension
-
- org.deckfour.xes.extension.std.XCostExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class XCostExtension extends XExtension
This extension provides costs for traces and events. It defines five attributes: - cost:total: Contains total cost incurred for a trace or an event. The value represents the sum of all the cost amounts within the element. - cost:currecny: Any valid currency format. - cost:amount: The value contains the cost amount for a cost driver. - cost:driver: The value contains the id for the cost driver used to calculate the cost. - cost:type: The value contains the cost type (e.g., Fixed, Overhead, Materials).- Author:
- Eric Verbeek (h.m.w.verbeek@tue.nl)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static XAttributeContinuousATTR_AMOUNTstatic XAttributeLiteralATTR_CURRENCYstatic XAttributeLiteralATTR_DRIVERstatic XAttributeContinuousATTR_TOTALAttribute prototypesstatic XAttributeLiteralATTR_TYPEstatic java.net.URIEXTENSION_URIUnique URI of this extension.static java.lang.StringKEY_AMOUNTstatic java.lang.StringKEY_CURRENCYstatic java.lang.StringKEY_DRIVERstatic java.lang.StringKEY_TOTALKeys for the attributes.static java.lang.StringKEY_TYPE-
Fields inherited from class org.deckfour.xes.extension.XExtension
allAttributes, eventAttributes, logAttributes, metaAttributes, name, prefix, traceAttributes, uri
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassignAmount(XAttribute attribute, java.lang.Double amount)Assigns any attribute its cost amount, as defined by this extension's amount attribute.voidassignAmounts(XEvent event, java.util.Map<java.lang.String,java.lang.Double> amounts)Assigns (to the given event) multiple amounts given their keys.voidassignAmounts(XTrace trace, java.util.Map<java.lang.String,java.lang.Double> amounts)Assigns (to the given trace) multiple amounts given their keys.voidassignCurrency(XEvent event, java.lang.String currency)Assigns any event its cost currency, as defined by this extension's currency attribute.voidassignCurrency(XTrace trace, java.lang.String currency)Assigns any trace its cost currency, as defined by this extension's currency attribute.voidassignDriver(XAttribute attribute, java.lang.String driver)Assigns any attribute its cost driver, as defined by this extension's driver attribute.voidassignDrivers(XEvent event, java.util.Map<java.lang.String,java.lang.String> drivers)Assigns (to the given event) multiple cost drivers given their key.voidassignDrivers(XTrace trace, java.util.Map<java.lang.String,java.lang.String> drivers)Assigns (to the given trace) multiple cost drivers given their keys.voidassignNestedAmounts(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.Double> amounts)Assigns (to the given event) multiple amounts given their key lists.voidassignNestedAmounts(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.Double> amounts)Assigns (to the given trace) multiple amounts given their key lists.voidassignNestedDrivers(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.String> drivers)Assigns (to the given event) multiple cost drivers given their key lists.voidassignNestedDrivers(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.String> drivers)Assigns (to the given trace) multiple cost drivers given their key lists.voidassignNestedTypes(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)Assigns (to the given event) multiple cost types given their key lists.voidassignNestedTypes(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)Assigns (to the given trace) multiple cost types given their key lists.voidassignTotal(XEvent event, java.lang.Double total)Assigns any event its total costs, as defined by this extension's total attribute.voidassignTotal(XTrace trace, java.lang.Double total)Assigns any trace its total costs, as defined by this extension's total attribute.voidassignType(XAttribute attribute, java.lang.String type)Assigns any attribute its cost type, as defined by this extension's type attribute.voidassignTypes(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)Assigns (to the given event) multiple cost types given their keys.voidassignTypes(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)Assigns (to the given trace) multiple cost types given their keys.java.lang.DoubleextractAmount(XAttribute attribute)Retrieves the cost amount for an attribute, if set by this extension's amount attribute.java.util.Map<java.lang.String,java.lang.Double>extractAmounts(XEvent event)Retrieves a map containing all cost amounts for all child attributes of an event.java.util.Map<java.lang.String,java.lang.Double>extractAmounts(XTrace trace)Retrieves a map containing all cost amounts for all child attributes of a trace.java.lang.StringextractCurrency(XEvent event)Retrieves the cost currency for an event, if set by this extension's currency attribute.java.lang.StringextractCurrency(XTrace trace)Retrieves the cost currency for a trace, if set by this extension's currency attribute.java.lang.StringextractDriver(XAttribute attribute)Retrieves the cost driver for an attribute, if set by this extension's driver attribute.java.util.Map<java.lang.String,java.lang.String>extractDrivers(XEvent event)Retrieves a map containing all cost drivers for all child attributes of an event.java.util.Map<java.lang.String,java.lang.String>extractDrivers(XTrace trace)Retrieves a map containing all cost drivers for all child attributes of a trace.java.util.Map<java.util.List<java.lang.String>,java.lang.Double>extractNestedAmounts(XEvent event)Retrieves a map containing all cost amounts for all descending attributes of an event.java.util.Map<java.util.List<java.lang.String>,java.lang.Double>extractNestedAmounts(XTrace trace)Retrieves a map containing all cost amounts for all descending attributes of a trace.java.util.Map<java.util.List<java.lang.String>,java.lang.String>extractNestedDrivers(XEvent event)Retrieves a map containing all cost drivers for all descending attributes of an event.java.util.Map<java.util.List<java.lang.String>,java.lang.String>extractNestedDrivers(XTrace trace)Retrieves a map containing all cost drivers for all descending attributes of a trace.java.util.Map<java.util.List<java.lang.String>,java.lang.String>extractNestedTypes(XEvent event)Retrieves a map containing all cost types for all descending attributes of an event.java.util.Map<java.util.List<java.lang.String>,java.lang.String>extractNestedTypes(XTrace trace)Retrieves a map containing all cost types for all descending attributes of a trace.java.lang.DoubleextractTotal(XEvent event)Retrieves the total costs of an event, if set by this extension's total attribute.java.lang.DoubleextractTotal(XTrace trace)Retrieves the total costs of a trace, if set by this extension's total attribute.java.lang.StringextractType(XAttribute attribute)Retrieves the cost type for an attribute, if set by this extension's type attribute.java.util.Map<java.lang.String,java.lang.String>extractTypes(XEvent event)Retrieves a map containing all cost types for all child attributes of an event.java.util.Map<java.lang.String,java.lang.String>extractTypes(XTrace trace)Retrieves a map containing all cost types for all child attributes of a trace.static XCostExtensioninstance()Provides access to the singleton instance.-
Methods inherited from class org.deckfour.xes.extension.XExtension
accept, equals, getDefinedAttributes, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getUri, hashCode, toString
-
-
-
-
Field Detail
-
EXTENSION_URI
public static final java.net.URI EXTENSION_URI
Unique URI of this extension.
-
KEY_TOTAL
public static final java.lang.String KEY_TOTAL
Keys for the attributes.- See Also:
- Constant Field Values
-
KEY_CURRENCY
public static final java.lang.String KEY_CURRENCY
- See Also:
- Constant Field Values
-
KEY_AMOUNT
public static final java.lang.String KEY_AMOUNT
- See Also:
- Constant Field Values
-
KEY_DRIVER
public static final java.lang.String KEY_DRIVER
- See Also:
- Constant Field Values
-
KEY_TYPE
public static final java.lang.String KEY_TYPE
- See Also:
- Constant Field Values
-
ATTR_TOTAL
public static XAttributeContinuous ATTR_TOTAL
Attribute prototypes
-
ATTR_CURRENCY
public static XAttributeLiteral ATTR_CURRENCY
-
ATTR_AMOUNT
public static XAttributeContinuous ATTR_AMOUNT
-
ATTR_DRIVER
public static XAttributeLiteral ATTR_DRIVER
-
ATTR_TYPE
public static XAttributeLiteral ATTR_TYPE
-
-
Method Detail
-
instance
public static XCostExtension instance()
Provides access to the singleton instance.- Returns:
- Singleton extension.
-
extractTotal
public java.lang.Double extractTotal(XTrace trace)
Retrieves the total costs of a trace, if set by this extension's total attribute.- Parameters:
trace- Trace to retrieve total costs for.- Returns:
- The requested total costs.
-
extractTotal
public java.lang.Double extractTotal(XEvent event)
Retrieves the total costs of an event, if set by this extension's total attribute.- Parameters:
event- Event to retrieve total costs for.- Returns:
- The requested total costs.
-
assignTotal
public void assignTotal(XTrace trace, java.lang.Double total)
Assigns any trace its total costs, as defined by this extension's total attribute.- Parameters:
trace- Trace to assign total costs to.total- The total costs to be assigned.
-
assignTotal
public void assignTotal(XEvent event, java.lang.Double total)
Assigns any event its total costs, as defined by this extension's total attribute.- Parameters:
event- Event to assign total costs to.total- The total costs to be assigned.
-
extractCurrency
public java.lang.String extractCurrency(XTrace trace)
Retrieves the cost currency for a trace, if set by this extension's currency attribute.- Parameters:
trace- Trace to retrieve currency for.- Returns:
- The requested cost currency.
-
extractCurrency
public java.lang.String extractCurrency(XEvent event)
Retrieves the cost currency for an event, if set by this extension's currency attribute.- Parameters:
event- Event to retrieve currency for.- Returns:
- The requested cost currency.
-
assignCurrency
public void assignCurrency(XTrace trace, java.lang.String currency)
Assigns any trace its cost currency, as defined by this extension's currency attribute.- Parameters:
trace- Trace to assign cost currency to.currency- The currency to be assigned.
-
assignCurrency
public void assignCurrency(XEvent event, java.lang.String currency)
Assigns any event its cost currency, as defined by this extension's currency attribute.- Parameters:
event- Event to assign cost currency to.currency- The currency to be assigned.
-
extractAmount
public java.lang.Double extractAmount(XAttribute attribute)
Retrieves the cost amount for an attribute, if set by this extension's amount attribute.- Parameters:
attribute- Attribute element to retrieve cost amount for.- Returns:
- The requested cost amount.
-
extractAmounts
public java.util.Map<java.lang.String,java.lang.Double> extractAmounts(XTrace trace)
Retrieves a map containing all cost amounts for all child attributes of a trace. For example, the XES fragment:
should result into the following:<trace> <string key="a" value=""> <float key="cost:amount" value="10.00"/> <string key="b" value=""> <float key="cost:amount" value="20.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="30.00"/> </string> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </trace>[[a 10.00] [b 15.00] [c 25.00]]
- Parameters:
trace- Trace to retrieve all cost amounts for.- Returns:
- Map from all child keys to cost amounts.
-
extractAmounts
public java.util.Map<java.lang.String,java.lang.Double> extractAmounts(XEvent event)
Retrieves a map containing all cost amounts for all child attributes of an event. For example, the XES fragment:
should result into the following:<event> <string key="a" value=""> <float key="cost:amount" value="10.00"/> <string key="b" value=""> <float key="cost:amount" value="20.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="30.00"/> </string> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </event>[[a 10.00] [b 15.00] [c 25.00]]
- Parameters:
event- Event to retrieve all cost amounts for.- Returns:
- Map from all child keys to cost amounts.
-
extractNestedAmounts
public java.util.Map<java.util.List<java.lang.String>,java.lang.Double> extractNestedAmounts(XTrace trace)
Retrieves a map containing all cost amounts for all descending attributes of a trace. For example, the XES fragment:
should result into the following:<trace> <string key="a" value=""> <float key="cost:amount" value="10.00"/> <string key="b" value=""> <float key="cost:amount" value="20.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="30.00"/> </string> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </trace>[[[a] 10.00] [[a b] 20.00] [[a c] 30.00] [[b] 15.00] [[c] 25.00]]
- Parameters:
trace- Trace to retrieve all cost amounts for.- Returns:
- Map from all descending keys to cost amounts.
-
extractNestedAmounts
public java.util.Map<java.util.List<java.lang.String>,java.lang.Double> extractNestedAmounts(XEvent event)
Retrieves a map containing all cost amounts for all descending attributes of an event. For example, the XES fragment:
should result into the following:<event> <string key="a" value=""> <float key="cost:amount" value="10.00"/> <string key="b" value=""> <float key="cost:amount" value="20.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="30.00"/> </string> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </event>[[[a] 10.00] [[a b] 20.00] [[a c] 30.00] [[b] 15.00] [[c] 25.00]]
- Parameters:
event- Event to retrieve all cost amounts for.- Returns:
- Map from all descending keys to cost amounts.
-
assignAmount
public void assignAmount(XAttribute attribute, java.lang.Double amount)
Assigns any attribute its cost amount, as defined by this extension's amount attribute.- Parameters:
attribute- Attribute to assign cost amount to.amount- The cost amount to be assigned.
-
assignAmounts
public void assignAmounts(XTrace trace, java.util.Map<java.lang.String,java.lang.Double> amounts)
Assigns (to the given trace) multiple amounts given their keys. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key. For example, the call:assignAmounts(trace, [[a 10.00] [b 15.00] [c 25.00]])
should result into the following XES fragment:<trace> <string key="a" value=""> <float key="cost:amount" value="10.00"/> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </trace>- Parameters:
trace- Trace to assign the amounts to.amounts- Mapping from keys to amounts which are to be assigned.
-
assignAmounts
public void assignAmounts(XEvent event, java.util.Map<java.lang.String,java.lang.Double> amounts)
Assigns (to the given event) multiple amounts given their keys. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key. For example, the call:assignAmounts(event, [[a 10.00] [b 15.00] [c 25.00]])
should result into the following XES fragment:<event> <string key="a" value=""> <float key="cost:amount" value="10.00"/> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </event>- Parameters:
event- Event to assign the amounts to.amounts- Mapping from keys to amounts which are to be assigned.
-
assignNestedAmounts
public void assignNestedAmounts(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.Double> amounts)
Assigns (to the given trace) multiple amounts given their key lists. The i-th element in the key list should correspond to an i-level attribute with the prescribed key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key. For example, the call:assignAmounts(trace, [[[a] 10.00] [[a b] 20.00] [[a c] 30.00] [[b] 15.00] [[c] 25.00]])
should result into the following XES fragment:<trace> <string key="a" value=""> <float key="cost:amount" value="10.00"/> <string key="b" value=""> <float key="cost:amount" value="20.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="30.00"/> </string> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </trace>- Parameters:
trace- Trace to assign the amounts to.amounts- Mapping from key lists to amounts which are to be assigned.
-
assignNestedAmounts
public void assignNestedAmounts(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.Double> amounts)
Assigns (to the given event) multiple amounts given their key lists. The i-th element in the key list should correspond to an i-level attribute with the prescribed key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key. For example, the call:assignAmounts(event, [[[a] 10.00] [[a b] 20.00] [[a c] 30.00] [[b] 15.00] [[c] 25.00]])
should result into the following XES fragment:<event> <string key="a" value=""> <float key="cost:amount" value="10.00"/> <string key="b" value=""> <float key="cost:amount" value="20.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="30.00"/> </string> </string> <string key="b" value=""> <float key="cost:amount" value="15.00"/> </string> <string key="c" value=""> <float key="cost:amount" value="25.00"/> </string> </event>- Parameters:
event- Event to assign the amounts to.amounts- Mapping from key lists to amounts which are to be assigned.
-
extractDriver
public java.lang.String extractDriver(XAttribute attribute)
Retrieves the cost driver for an attribute, if set by this extension's driver attribute.- Parameters:
attribute- Attribute element to retrieve cost driver for.- Returns:
- The requested cost driver.
-
extractDrivers
public java.util.Map<java.lang.String,java.lang.String> extractDrivers(XTrace trace)
Retrieves a map containing all cost drivers for all child attributes of a trace.- Parameters:
trace- Trace to retrieve all cost drivers for.- Returns:
- Map from all child keys to cost drivers.
- See Also:
extractAmounts(XTrace)
-
extractDrivers
public java.util.Map<java.lang.String,java.lang.String> extractDrivers(XEvent event)
Retrieves a map containing all cost drivers for all child attributes of an event.- Parameters:
event- Event to retrieve all cost drivers for.- Returns:
- Map from all child keys to cost drivers.
- See Also:
extractAmounts(XEvent)
-
extractNestedDrivers
public java.util.Map<java.util.List<java.lang.String>,java.lang.String> extractNestedDrivers(XTrace trace)
Retrieves a map containing all cost drivers for all descending attributes of a trace.- Parameters:
trace- Trace to retrieve all cost drivers for.- Returns:
- Map from all descending keys to cost drivers.
- See Also:
extractNestedAmounts(XTrace)
-
extractNestedDrivers
public java.util.Map<java.util.List<java.lang.String>,java.lang.String> extractNestedDrivers(XEvent event)
Retrieves a map containing all cost drivers for all descending attributes of an event.- Parameters:
event- Event to retrieve all cost drivers for.- Returns:
- Map from all descending keys to cost drivers.
- See Also:
extractNestedDrivers(XEvent)
-
assignDriver
public void assignDriver(XAttribute attribute, java.lang.String driver)
Assigns any attribute its cost driver, as defined by this extension's driver attribute.- Parameters:
attribute- Attribute to assign cost driver to.driver- The cost driver to be assigned.
-
assignDrivers
public void assignDrivers(XTrace trace, java.util.Map<java.lang.String,java.lang.String> drivers)
Assigns (to the given trace) multiple cost drivers given their keys. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
trace- Trace to assign the cost drivers to.drivers- Mapping from keys to cost drivers which are to be assigned.- See Also:
assignAmounts(XTrace, Map)
-
assignDrivers
public void assignDrivers(XEvent event, java.util.Map<java.lang.String,java.lang.String> drivers)
Assigns (to the given event) multiple cost drivers given their key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
event- Event to assign the cost drivers to.drivers- Mapping from keys to cost drivers which are to be assigned.- See Also:
assignAmounts(XEvent, Map)
-
assignNestedDrivers
public void assignNestedDrivers(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.String> drivers)
Assigns (to the given trace) multiple cost drivers given their key lists. The i-th element in the key list should correspond to an i-level attribute with the prescribed key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
trace- Trace to assign the cost drivers to.drivers- Mapping from key lists to cost drivers which are to be assigned.- See Also:
assignNestedAmounts(XTrace, Map)
-
assignNestedDrivers
public void assignNestedDrivers(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.String> drivers)
Assigns (to the given event) multiple cost drivers given their key lists. The i-th element in the key list should correspond to an i-level attribute with the prescribed key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
event- Event to assign the cost drivers to.drivers- Mapping from key lists to cost drivers which are to be assigned.- See Also:
assignNestedAmounts(XEvent, Map)
-
extractType
public java.lang.String extractType(XAttribute attribute)
Retrieves the cost type for an attribute, if set by this extension's type attribute.- Parameters:
attribute- Attribute element to retrieve cost type for.- Returns:
- The requested cost type.
-
extractTypes
public java.util.Map<java.lang.String,java.lang.String> extractTypes(XTrace trace)
Retrieves a map containing all cost types for all child attributes of a trace.- Parameters:
trace- Trace to retrieve all cost types for.- Returns:
- Map from all child keys to cost types.
- See Also:
extractAmounts(XTrace)
-
extractTypes
public java.util.Map<java.lang.String,java.lang.String> extractTypes(XEvent event)
Retrieves a map containing all cost types for all child attributes of an event.- Parameters:
event- Event to retrieve all cost types for.- Returns:
- Map from all child keys to cost types.
- See Also:
extractAmounts(XEvent)
-
extractNestedTypes
public java.util.Map<java.util.List<java.lang.String>,java.lang.String> extractNestedTypes(XTrace trace)
Retrieves a map containing all cost types for all descending attributes of a trace.- Parameters:
trace- Trace to retrieve all cost types for.- Returns:
- Map from all descending keys to cost types.
- See Also:
extractNestedAmounts(XTrace)
-
extractNestedTypes
public java.util.Map<java.util.List<java.lang.String>,java.lang.String> extractNestedTypes(XEvent event)
Retrieves a map containing all cost types for all descending attributes of an event.- Parameters:
event- Event to retrieve all cost types for.- Returns:
- Map from all descending keys to cost types.
- See Also:
extractNestedAmounts(XEvent)
-
assignType
public void assignType(XAttribute attribute, java.lang.String type)
Assigns any attribute its cost type, as defined by this extension's type attribute.- Parameters:
attribute- Attribute to assign cost type to.type- The cost type to be assigned.
-
assignTypes
public void assignTypes(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)
Assigns (to the given trace) multiple cost types given their keys. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
trace- Trace to assign the cost types to.types- Mapping from keys to cost types which are to be assigned.- See Also:
assignAmounts(XTrace, Map)
-
assignTypes
public void assignTypes(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)
Assigns (to the given event) multiple cost types given their keys. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
event- Event to assign the cost types to.types- Mapping from keys to cost types which are to be assigned.- See Also:
assignAmounts(XEvent, Map)
-
assignNestedTypes
public void assignNestedTypes(XTrace trace, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)
Assigns (to the given trace) multiple cost types given their key lists. The i-th element in the key list should correspond to an i-level attribute with the prescribed key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
trace- Trace to assign the cost types to.types- Mapping from key lists to cost types which are to be assigned.- See Also:
assignNestedAmounts(XTrace, Map)
-
assignNestedTypes
public void assignNestedTypes(XEvent event, java.util.Map<java.util.List<java.lang.String>,java.lang.String> types)
Assigns (to the given event) multiple cost types given their key lists. The i-th element in the key list should correspond to an i-level attribute with the prescribed key. Note that as a side effect this method creates attributes when it does not find an attribute with the proper key.- Parameters:
event- Event to assign the cost types to.types- Mapping from key lists to cost types which are to be assigned.- See Also:
assignNestedAmounts(XEvent, Map)
-
-