Main Content

preExecute

Class: simevents.SimulationObserver
Namespace: simevents

Specify behavior before execution of an event

Syntax

preExecute(obj,evSrc,evData)

Description

preExecute(obj,evSrc,evData) is used to specify behavior before the execution of an event in the event calendar. The simulation observer uses this method as a callback for pre-execute event notifications and provides a handle to the event calendar.

Input Arguments

expand all

Object of class SimulationObserver

Handle to event calendar. The handle will be populated by the simulation observer.

Event name and handle to event calendar

Examples

expand all

Specify behavior before the execution of an event in the event calendar.

function preExecute(obj,evSrc,evData)
   fprintf('Specify behavior before the execution...
    of an event in the event calendar.');
end

Version History

Introduced in R2016a