addEvent(interface,eventType,newEvent)
adds the user-defined event newEvent of type
eventType to the custom interface interface in
the MATLAB®
System object™ that models the behavior of an actor in RoadRunner Scenario.
MATLAB
System object interface, specified as a matlab.system.interface.*
object. The custom interface allows you to accept and process user-defined events
defined in RoadRunner Scenario.
Example: interface = ActorInterface();
Event type that the custom interface accepts for further processing, specified as
UserDefinedEvent.
User-defined event, specified as a
matlab.system.interface.UserDefinedEvent object. To define the input
types, use the command newEvent =
matlab.system.interface.UserDefinedEvent(eventName, eventElements).
eventName — Defines the name of the user-defined event. This
value is specified as a character array.
eventElements — Defines the elements of a user-defined event.
This value is specified as a structure that is initialized in the form s =
struct(field1,value1,...,fieldN,valueN), where fieldN
is the name of the Nth field, and valueN is
its corresponding value.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.