Package: matlab
Superclasses: matlab.System
Base class for discrete-event system objects
matlab.DiscreteEventSystem
is the base class for
discrete-event System objects. In your class definition file, you must subclass your
object from this base class (or from another class that derives from this base class).
Subclassing allows you to use the implementation and service methods provided by this
base class to build your object. For more information about implementing matlab.DiscreteEventSystem
class with MATLAB
Discrete-Event System block, see Create Custom Blocks Using MATLAB Discrete-Event System Block.
Type this syntax as the first line of your class definition file to directly inherit
from the matlab.DiscreteEventSystem
base class, where
ObjectName
is the name of your
object:
classdef ObjectName < matlab.DiscreteEventSystem
Define as public these methods:
blocked
destroy
entry
exit
generate
iterate
setupEvents
timer
For other methods, set Access = protected
.
matlab.DiscreteEventSystem
Class MethodsThis list contains the methods to implement and the utility methods inherited from the
matlab.DiscreteEventSystem
base class. For more
information about implementing a discrete-event System
object™, see Create a Discrete-Event System Object. For information about linking the
discrete-event System
object to a SimEvents® model and creating a custom behavior, see Delay Entities with a Custom Entity Storage Block.
blocked | Event action when entity forward fails |
cancelAcquireResource | Cancel previously scheduled resource acquisition event |
cancelDestroy | Cancel previously scheduled entity destroy event |
cancelForward | Cancel previously scheduled forward events |
cancelGenerate | Cancel previously scheduled entity generation event |
cancelIterate | Cancel previously scheduled iterate event |
cancelTimer | Cancel previously scheduled timer event |
destroy | Event action upon entity destruction |
entityType | Define entity type |
entry | Event action when entity enters storage element |
eventAcquireResource | Create a resource acquisition event |
eventDestroy | Create entity destroy event |
eventForward | Create entity forward event |
eventGenerate | Create entity generate event |
eventIterate | Create entity iterate event |
eventReleaseAllResources | Create an event to release all resources acquired by an entity |
eventReleaseResource | Create an event to release previously acquired resources |
eventTestEntry | Create an event to indicate that the acceptance policy for the storage has changed and the storage retests arriving entities |
eventTimer | Create entity timer event |
exit | Event action before entity exit from storage |
generate | Event action upon entity creation |
getEntityPortsImpl | Define input ports and output ports of discrete-event system |
getEntityStorageImpl | Define entity storage elements of discrete-event system |
getEntityTypesImpl | Define entity types of discrete-event system |
getResourceNamesImpl | Define resource pools from which to acquire resources |
initEventArray | Initialize event array |
initResourceArray | Initialize a resource specification array |
iterate | Event action when entity iterates |
modified | Event action upon entity modification by the Entity Find block |
queueFIFO | Define first-in first-out (FIFO) queue storage |
queueLIFO | Define last-in last-out (LIFO) queue storage |
queuePriority | Define priority queue storage |
queueSysPriority | Define system priority queue storage |
resourceAcquired | Event action upon successful resource acquisition |
resourceReleased | Event action upon successful resource release |
resourceSpecification | Create specifications for a resource acquisition or a resource release event |
setupEvents | Initialize entity generation events |
testEntry | Event action to accept or refuse entity |
timer | Event action when timer completes |
entityType
| entry
| eventForward
| eventGenerate
| getEntityStorageImpl
| matlab.System
| queueFIFO