public class XesCostExtension extends XesExtensionImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AMOUNT |
static java.lang.String |
CURRENCY |
static java.lang.String |
DRIVER |
static java.lang.String |
DRIVERS |
static java.lang.String |
TOTAL |
static java.lang.String |
TYPE |
Modifier and Type | Method and Description |
---|---|
XesStringAttribute |
addDriver(XesListAttribute list,
java.lang.String value)
Adds a driver to the list of drivers.
|
java.lang.Double |
getAmount(XesAttribute attribute)
Returns the amount of the given driver, that is, the value of the
attribute with key "cost:amount".
|
java.lang.String |
getCurrency(XesEvent event)
Returns the currency of the given event, that is, the value of the
attribute with key "cost:currency".
|
java.lang.String |
getCurrency(XesTrace trace)
Returns the currency of the given trace, that is, the value of the
attribute with key "cost:currency".
|
java.util.List<XesAttribute> |
getDrivers(XesEvent event)
Returns the drivers of the given event, that is, the value of the
attribute with key "cost:drivers".
|
java.util.List<XesAttribute> |
getDrivers(XesTrace trace)
Returns the drivers of the given trace, that is, the value of the
attribute with key "cost:drivers".
|
java.lang.Double |
getTotal(XesEvent event)
Returns the total costs of the given event, that is, the value of the
attribute with key "cost:total".
|
java.lang.Double |
getTotal(XesTrace trace)
Returns the total costs of the given trace, that is, the value of the
attribute with key "cost:total".
|
java.lang.String |
getType(XesAttribute attribute)
Returns the type of the given driver, that is, the value of the attribute
with key "cost:type".
|
static XesCostExtension |
instance() |
XesRealNumberAttribute |
setAmount(XesAttribute attribute,
java.lang.Double value)
Sets the amount for the given driver, that is, the value of the attribute
with key "cost:amount".
|
XesStringAttribute |
setCurrency(XesEvent event,
java.lang.String value)
Sets the currency for the given event, that is, the value of the
attribute with key "cost:currency".
|
XesStringAttribute |
setCurrency(XesTrace trace,
java.lang.String value)
Sets the currency for the given trace, that is, the value of the
attribute with key "cost:currency".
|
XesListAttribute |
setDrivers(XesEvent event)
Initializes the drivers for the given event, that is, the value of the attribute
with key "cost:drivers".
|
XesListAttribute |
setDrivers(XesTrace trace)
Initializes the drivers for the given trace, that is, the value of the attribute
with key "cost:drivers".
|
XesRealNumberAttribute |
setTotal(XesEvent event,
java.lang.Double value)
Sets the total costs for the given event, that is, the value of the
attribute with key "cost:total".
|
XesRealNumberAttribute |
setTotal(XesTrace trace,
java.lang.Double value)
Sets the total costs for the given trace, that is, the value of the
attribute with key "cost:total".
|
XesStringAttribute |
setType(XesAttribute attribute,
java.lang.String value)
Sets the type for the given driver, that is, the value of the attribute
with key "cost:type".
|
addAlias, addEventAttribute, addLogAttribute, addMetaAttribute, addTraceAttribute, getAlias, getEventAttributes, getLogAttributes, getMetaAttributes, getName, getPrefix, getTraceAttributes, getURI, hasAttribute, hasEventAttribute, hasLogAttribute, hasMetaAttribute, hasTraceAttribute, setName, setPrefix, setURI, toString
public static final java.lang.String TOTAL
public static final java.lang.String CURRENCY
public static final java.lang.String DRIVERS
public static final java.lang.String AMOUNT
public static final java.lang.String DRIVER
public static final java.lang.String TYPE
public static XesCostExtension instance()
public java.lang.Double getTotal(XesTrace trace)
trace
- The given trace.public XesRealNumberAttribute setTotal(XesTrace trace, java.lang.Double value)
trace
- The given trace.value
- The total costs to set.public java.lang.Double getTotal(XesEvent event)
event
- The given event.public XesRealNumberAttribute setTotal(XesEvent event, java.lang.Double value)
event
- The given event.value
- The total costs to set.public java.lang.String getCurrency(XesTrace trace)
trace
- The given trace.public XesStringAttribute setCurrency(XesTrace trace, java.lang.String value)
trace
- The given trace.value
- The currency to set.public java.lang.String getCurrency(XesEvent event)
event
- The given event.public XesStringAttribute setCurrency(XesEvent event, java.lang.String value)
event
- The given event.value
- The currency to set.public java.util.List<XesAttribute> getDrivers(XesTrace trace)
trace
- The given trace.public XesListAttribute setDrivers(XesTrace trace)
trace
- The given trace.public java.util.List<XesAttribute> getDrivers(XesEvent event)
event
- The given event.public XesListAttribute setDrivers(XesEvent event)
event
- The given event.public java.lang.Double getAmount(XesAttribute attribute)
attribute
- The given driver.public XesRealNumberAttribute setAmount(XesAttribute attribute, java.lang.Double value)
attribute
- The given driver.value
- The amount to set.public XesStringAttribute addDriver(XesListAttribute list, java.lang.String value)
list
- The list of drivers.value
- The value for the new driver.public java.lang.String getType(XesAttribute attribute)
attribute
- The given driver.public XesStringAttribute setType(XesAttribute attribute, java.lang.String value)
attribute
- The given driver.value
- The type to set.