|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjist.runtime.Event
jist.runtime.EventLocation
class EventLocation
Extends Event to include its originating location. Note: These events should only be used for debugging purposes, and not for running full-speed simulations, since generating the source location is slow.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class jist.runtime.Event |
|---|
Event.Continuation, Event.ContinuationFrame, Event.EventComparator |
| Field Summary | |
|---|---|
private java.lang.String |
file
Filename where event was generated. |
private int |
line
Line where event was generated. |
private Event |
source
Event that generated this event. |
| Fields inherited from class jist.runtime.Event |
|---|
args, cont, method, ref, time |
| Constructor Summary | |
|---|---|
EventLocation()
Create an empty Event with location information, used by EventPool. |
|
EventLocation(long time,
java.lang.reflect.Method method,
EntityRef ref,
java.lang.Object[] args)
Create an initialized Event with location information. |
|
| Method Summary | |
|---|---|
void |
compute()
Initialize event structure with information about where it originated. |
private void |
computeLocation()
Computes the originating source location (if possible) for an event. |
private void |
computeSource()
Computes the originating source runtime events (if possible) for an event. |
Event |
getSource()
Return the event that generated this event. |
static void |
printEventTrace()
Display event causality trace on System error stream. |
java.lang.String |
toString()
Return string representation of Event including its originating location. |
| Methods inherited from class jist.runtime.Event |
|---|
equals, getArgsString, getClassString, getContinuationString, getEntityString, getMethodString, getModifiersString, getTimeString, getTypeString, hashCode, set |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String file
private int line
private Event source
| Constructor Detail |
|---|
public EventLocation()
public EventLocation(long time,
java.lang.reflect.Method method,
EntityRef ref,
java.lang.Object[] args)
time - simulation time at which the event should be processedmethod - method to be invoked for event processingref - entity reference to receive eventargs - arguments to be passed to entity for processing| Method Detail |
|---|
public void compute()
private void computeLocation()
private void computeSource()
public java.lang.String toString()
toString in class Eventpublic Event getSource()
public static void printEventTrace()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||