main content

discrete-凯发k8网页登录

implement a discrete-event system object™ using matlab discrete-event system block

you can extend the existing functionality of simevents® by authoring new blocks to model behaviors that are not provided with a simevents built-in solution. to create custom functionality in simevents models, you can use the matlab discrete-event system block that allows you to implement a discrete-event system object written in matlab® language.

to implement a custom discrete-event system object, inherit class. link the system object to a simevents model by using a block. the linked matlab discrete-event system block exhibits the desired custom behavior during simulation.

blocks

matlab discrete-event system

classes

base class for discrete-event system objects

methods

create a resource acquisition event
create entity destroy event
create entity forward event
create entity generate event
create entity iterate event
create an event to release previously acquired resources
create an event to release all resources acquired by an entity
create an event to indicate that the acceptance policy for the storage has changed and the storage retests arriving entities
create entity timer event
initialize event array
initialize a resource specification array
event action when entity forward fails
event action upon entity destruction
event action when entity enters storage element
event action before entity exit from storage
event action upon entity creation
event action when entity iterates
event action upon entity modification by the entity find block
event action upon successful resource acquisition
event action upon successful resource release
event action to accept or refuse entity
event action when timer completes
cancel previously scheduled resource acquisition event
cancel previously scheduled entity destroy event
cancel previously scheduled forward events
cancel previously scheduled entity generation event
cancel previously scheduled iterate event
cancel previously scheduled timer event
define entity type
define input ports and output ports of discrete-event system
define entity storage elements of discrete-event system
define entity types of discrete-event system
define resource pools from which to acquire resources
define first-in first-out (fifo) queue storage
define last-in last-out (lifo) stack storage
define priority queue storage
define system priority queue storage
create specifications for a resource acquisition or a resource release event
specify an entity type and the name of the resources to be acquired by the specified entity
initialize entity generation events

topics


  • the simevents library provides design patterns that you can refer to while modeling.


  • author discrete-event system object by defining entity types, ports, storage, and events.


  • use the matlab.discreteeventsystem class to implement a discrete-event system object.


  • configure matlab discrete-event system block.


  • define and work with events in custom discrete-event systems.


  • call simulink® function from a matlab discrete-event system block.


  • this example shows how to model resource scheduling using data exchange between the matlab discrete-event system block and the data store memory block.

网站地图