Package com.amalgamasimulation.engine
Class TraceableEvent
java.lang.Object
com.amalgamasimulation.engine.Event
com.amalgamasimulation.engine.TraceableEvent
Represents an event that remembers stack trace of the point in code from
where it was scheduled. Traceable events are created automatically inside
Engine
if its event tracing flag has been set to true
by
calling Engine.setTraceEvents(boolean)
method.
Tracing events can be useful for debugging because it is sometimes useful to understand where a problematic event was scheduled from. It is not recommended to use event tracing in productive models because calculating and storing stack trace of each event requires significant computational resources
- Author:
- Andrey Malykhanov
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amalgamasimulation.engine.Event
Event.Status
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the stack trace of the point in code from where this event was scheduled
-
Method Details
-
getStackTrace
Returns the stack trace of the point in code from where this event was scheduled- Returns:
- stack trace in the form of array of stack trace elements
(
StackTraceElement
)
-