org.jbpm.simulation.impl.events
Class GenericSimulationEvent

java.lang.Object
  extended by org.jbpm.simulation.impl.events.GenericSimulationEvent
All Implemented Interfaces:
SimulationEvent
Direct Known Subclasses:
ActivitySimulationEvent, EndSimulationEvent, GatewaySimulationEvent, HumanTaskActivitySimulationEvent, StartSimulationEvent

public class GenericSimulationEvent
extends Object
implements SimulationEvent


Field Summary
protected  Map<String,Object> customMetrics
           
protected  long endTime
           
protected  String processId
           
protected  long processInstanceId
           
protected  long startTime
           
protected  UUID uuid
           
 
Constructor Summary
GenericSimulationEvent(String processId, long processInstanceId, long startTime, long endTime)
           
 
Method Summary
 void addCustomMetric(String name, Object value)
           
 long getEndTime()
           
 String getMetric(String name)
           
 String getProcessId()
           
 long getProcessInstanceId()
           
 long getStartTime()
           
 UUID getUUID()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

GenericSimulationEvent

public GenericSimulationEvent(String processId,
                              long processInstanceId,
                              long startTime,
                              long endTime)
Method Detail

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

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-2012 JBoss by Red Hat. All Rights Reserved.