org.jbpm.simulation.impl.events
Class GenericSimulationEvent
java.lang.Object
org.jbpm.simulation.impl.events.GenericSimulationEvent
- All Implemented Interfaces:
- SimulationEvent
- Direct Known Subclasses:
- ActivitySimulationEvent, EndSimulationEvent, GatewaySimulationEvent, HumanTaskActivitySimulationEvent, ProcessInstanceEndSimulationEvent, StartSimulationEvent
public class GenericSimulationEvent
- extends Object
- implements SimulationEvent
processId
protected String processId
processInstanceId
protected long processInstanceId
customMetrics
protected Map<String,Object> customMetrics
startTime
protected long startTime
endTime
protected long endTime
uuid
protected UUID uuid
type
protected String type
aggregatedEvent
protected AggregatedSimulationEvent aggregatedEvent
used
protected boolean used
GenericSimulationEvent
public GenericSimulationEvent(String processId,
long processInstanceId,
long startTime,
long endTime,
String type)
isUsed
public boolean isUsed()
setUsed
public void setUsed(boolean used)
getAggregatedEvent
public AggregatedSimulationEvent getAggregatedEvent()
setAggregatedEvent
public void setAggregatedEvent(AggregatedSimulationEvent aggregatedEvent)
getStartTime
public long getStartTime()
- Specified by:
getStartTime in interface SimulationEvent
getEndTime
public long getEndTime()
- Specified by:
getEndTime in interface SimulationEvent
getProcessId
public String getProcessId()
- Specified by:
getProcessId in interface SimulationEvent
getProcessInstanceId
public long getProcessInstanceId()
- Specified by:
getProcessInstanceId in interface SimulationEvent
getUUID
public UUID getUUID()
- Specified by:
getUUID in interface SimulationEvent
getType
public String getType()
- Specified by:
getType in interface SimulationEvent
getMetric
public String getMetric(String name)
- Specified by:
getMetric in interface SimulationEvent
addCustomMetric
public void addCustomMetric(String name,
Object value)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.