主要内容

Discrete-Event System Objects

Implement a discrete-event System object™ usingMATLAB Discrete-Event Systemblock

You can extend the existing functionality of SimEvents®通过创作新的块来模拟内置解决方案的Simevents的模型行为。要在Simevents模型中创建自定义功能,可以使用MATLAB Discrete-Event System块允许您实现在MATLAB中编写的离散事件系统对象®语言。

To implement a custom discrete-event System object, inheritmatlab.DiscreteEventSystemclass. 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

方法

expand all

EventAcquireresource. 创建资源获取事件
eventDestroy Create entity destroy event
eventForward Create entity forward event
eventGenerate Create entity generate event
eventIterate 创建实体迭代活动
eventReleaseResource Create an event to release previously acquired resources
eventReleaseAllResources Create an event to release all resources acquired by an entity
eventTestEntry 创建一个事件表明,接受订单licy for the storage has changed and the storage retests arriving entities
eventTimer Create entity timer event
initEventArray 初始化事件阵列
initresourcearray. 初始化资源规范数组
被封锁了 Event action when entity forward fails
destroy Event action upon entity destruction
入口 实体输入存储元素时的事件操作
exit Event action before entity exit from storage
generate 创建实体的事件行动
iterate Event action when entity iterates
修改的 Event action upon entity modification by the Entity Find block
resourceAcquired 成功资源收购后的事件行动
resourceReleased 成功资源发布后的事件操作
testEntry 活动行动接受或拒绝实体
计时器 Event action when timer completes
cancelAcquireResource 取消以前计划的资源获取事件
Canceldestroy 取消以前预定的实体毁灭事件
cancelForward 取消以前计划的前向事件
cancelGenerate Cancel previously scheduled entity generation event
CancelInerate. Cancel previously scheduled iterate event
CANCELTIMER. Cancel previously scheduled timer event
entityType 定义实体类型
GetEnterityPortsimpl. Define input ports and output ports of discrete-event system
getEntityStorageImpl Define entity storage elements of discrete-event system
getEntityTypesImpl 定义实体类型s of discrete-event system
getResourceNamesImpl Define resource pools from which to acquire resources
queueFIFO Define first-in first-out (FIFO) queue storage
queuelifo. Define last-in last-out (LIFO) stack storage
queuePriority Define priority queue storage
queuesyspriority. Define system priority queue storage
resourcespecification Create specifications for a resource acquisition or a resource release event
resourcetype. Specify an entity type and the name of the resources to be acquired by the specified entity
setupEvents 初始化实体生成事件

Topics