jBPM Simulation 6.0.0.CR3

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, ProcessInstanceEndSimulationEvent, StartSimulationEvent

public class GenericSimulationEvent
extends Object
implements SimulationEvent


Field Summary
protected  AggregatedSimulationEvent aggregatedEvent
           
protected  Map<String,Object> customMetrics
           
protected  long endTime
           
protected  String processId
           
protected  long processInstanceId
           
protected  long startTime
           
protected  String type
           
protected  boolean used
           
protected  UUID uuid
           
 
Constructor Summary
GenericSimulationEvent(String processId, long processInstanceId, long startTime, long endTime, String type)
           
 
Method Summary
 void addCustomMetric(String name, Object value)
           
 AggregatedSimulationEvent getAggregatedEvent()
           
 long getEndTime()
           
 String getMetric(String name)
           
 String getProcessId()
           
 long getProcessInstanceId()
           
 long getStartTime()
           
 String getType()
           
 UUID getUUID()
           
 boolean isUsed()
           
 void setAggregatedEvent(AggregatedSimulationEvent aggregatedEvent)
           
 void setUsed(boolean used)
           
 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

type

protected String type

aggregatedEvent

protected AggregatedSimulationEvent aggregatedEvent

used

protected boolean used
Constructor Detail

GenericSimulationEvent

public GenericSimulationEvent(String processId,
                              long processInstanceId,
                              long startTime,
                              long endTime,
                              String type)
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:
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

jBPM Simulation 6.0.0.CR3

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.