| Contents | Index |
Event information in discrete-event simulation
ev_struct = evinfo(evid)
ev_struct = evinfo(evid) returns a structure that stores information about the event with identifier evid. To obtain a list of events on the event calendar and their identifiers, use sedb.evcal.
evid |
String that represents an event identifier. |
View event information:
Begin a debugger session for a particular model. At the MATLAB command prompt, enter:
sedebug('sedemo_count_attributes')Proceed in the simulation. At the sedebug>> prompt, enter:
step
The output shows the identifier, ev1, in the display:
%==============================================================================%
Initializing Time-Based Entity Generators
%..........................................................................%
Scheduling EntityGeneration Event (ev1)
: EventTime = 0.000000000000000 (Now)
: Priority = 1
: Entity = <none>
: Block = Time-Based Entity GeneratorView information about the event that the application is about to schedule:
evid = gcev evdetails = evinfo(evid)
The output shows the same identifier, ev1, in the workspace variable, evid, and the ID field of the structure, evdetails:
evid =
ev1
evdetails =
ID: 'ev1'
EventType: 'EntityGeneration'
EventTime: 0
Priority: '1'
Entity: ''
Block: 'sedemo_count_attributes/Time-Based Entity Generator'
End the debugger session. At the sedebug>> prompt, enter:
sedb.quit

Learn how you can use SimEvents discrete-event simulation capabilities through these technical resources.
Get free kit| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |