Package 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
-
-
Field Summary
Fields Modifier and Type Field Description protected AggregatedSimulationEventaggregatedEventprotected Map<String,Object>customMetricsprotected longendTimeprotected StringprocessIdprotected longprocessInstanceIdprotected longstartTimeprotected Stringtypeprotected booleanusedprotected UUIDuuid
-
Constructor Summary
Constructors Constructor Description GenericSimulationEvent(String processId, long processInstanceId, long startTime, long endTime, String type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCustomMetric(String name, Object value)AggregatedSimulationEventgetAggregatedEvent()longgetEndTime()StringgetMetric(String name)StringgetProcessId()longgetProcessInstanceId()longgetStartTime()StringgetType()UUIDgetUUID()booleanisUsed()voidsetAggregatedEvent(AggregatedSimulationEvent aggregatedEvent)voidsetUsed(boolean used)StringtoString()
-
-
-
Field Detail
-
processId
protected String processId
-
processInstanceId
protected long processInstanceId
-
startTime
protected long startTime
-
endTime
protected long endTime
-
uuid
protected UUID uuid
-
type
protected String type
-
aggregatedEvent
protected AggregatedSimulationEvent aggregatedEvent
-
used
protected boolean used
-
-
Method Detail
-
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:
getStartTimein interfaceSimulationEvent
-
getEndTime
public long getEndTime()
- Specified by:
getEndTimein interfaceSimulationEvent
-
getProcessId
public String getProcessId()
- Specified by:
getProcessIdin interfaceSimulationEvent
-
getProcessInstanceId
public long getProcessInstanceId()
- Specified by:
getProcessInstanceIdin interfaceSimulationEvent
-
getUUID
public UUID getUUID()
- Specified by:
getUUIDin interfaceSimulationEvent
-
getType
public String getType()
- Specified by:
getTypein interfaceSimulationEvent
-
getMetric
public String getMetric(String name)
- Specified by:
getMetricin interfaceSimulationEvent
-
-