Discrete-Event System Objects
You can extend the existing functionality of SimEvents®通过创作新的块来模拟内置解决方案的Simevents的模型行为。要在Simevents模型中创建自定义功能,可以使用MATLAB Discrete-Event System块允许您实现在MATLAB中编写的离散事件系统对象®语言。
To implement a custom discrete-event System object, inheritmatlab.DiscreteEventSystem
class. Link the System object to a SimEvents model by using aMATLAB Discrete-Event Systemblock. The linkedMATLAB Discrete-Event System块在模拟期间展示所需的自定义行为。
块
MATLAB Discrete-Event System | MATLAB离散事件系统 |
Classes
matlab.DiscreteEventSystem |
Base class for discrete-event system objects |
方法
Topics
- Simevents共同的设计模式
SimEvents库提供了在建模时可以参考的设计模式。
- 使用MATLAB离散事件系统块创建自定义块
Author discrete-event System object by defining entity types, ports, storage, and events.
- 创建一个离散事件系统对象
Use the
matlab.DiscreteEventSystem
类实现一个离散事件系统对象。 - 为MATLAB离散事件系统块生成代码
配置MATLAB Discrete-Event Systemblock.
- Customize Discrete-Event System Behavior Using Events and Event Actions
Define and work with events in custom discrete-event systems.
- Call Simulink Function from a MATLAB Discrete-Event System Block
Call Simulink®来自A的功能MATLAB Discrete-Event System堵塞。
- 使用MATLAB离散事件系统和数据存储内存块的资源调度
This example shows how to model resource scheduling using data exchange between the MATLAB Discrete-Event System block and the Data Store Memory block.