CommTrace (v.2.00)
|
|
The trace file viewer (figure 2) allows the user to examine the HASE trace used by CommTrace to generate the communication figures.
|
The trace file used by CommTrace is held in a different format to that of a standard HASE trace. This is because a standard HASE trace file only tracks events being generated at source ports. This is fine for most analysis however we are interested in both source and destination port details here. HASE provides an extended trace format for CommTrace detailing the fields shown in table 1
Field |
Notes |
Time |
The value of the simulation clock when this event was generated. |
Src Entity |
The entity which generated this event. |
Src Port |
The name of the source port. |
Dest Entity |
The entitiy which will receive this event. |
Dest Port |
The port on which the event will be recieved. |
Pkt Type |
The type of the message packet (as defined in the model's EDL). |
Contents |
The packet contents associated with this event. |
Table 1: Enhanced Trace File Format - Field Definitions
The main function of the CommTrace utility is to provide a meaningful representation of the communication taking place between two simulation entities. This is done via the communication diagram window (figure 3).
The communication diagram is a time-series graph showing the points in simulation time when messages were sent. A message is depicted by an arrow, the direction of which indicates whether an input or output event is taking place. The arrows are labelled with information detailing the message type (in square brackets) and the message contents (display in braces).
Boxes (one blue, one red) which run lengthways down the diagram represent the simulation entities themselves. We note that an entity's messages are drawn in the corresponding entities colour. Simulation time is indexed at the left of the figure and messages are show as arrows running horizontally across the figure.
Events are classified as one of three types (allowing the diagram to be optionally filtered according to event type):
(1). An entity A event: This type of event is one in which entity A (the leftmost entity in the figure) acts as the message source.
(2). An entity B event: As above except for entity B.
(3). An external event: These event are those generated by entities other than the two selected on the console screen. These events are of interest because either entity A or B acts as the destination for these external events.
The controls offered by the communication diagram window are:
(a). OK: Leave the communication diagram window. |
(b). Print: Make a hard copy of the current diagram. |
(c). Refresh: Force the diagram to be re-drawn. |
(d). Copy: Copy figure to system clipboard (Due to restrictions in the JDK 1.1.6 Solaris copy is not yet implemented.) |
(e). Entity A / B Events: Switch on/off rendering of events for either of the specified entities. |
(f). External Events: Switch on/off the rendering of external event data. |
(g). Communications Figure: The main display area. |