In a discrete-event simulation, an event is an observation of an instantaneous incident that may change a state variable, an output, and/or the occurrence of other events. Events can correspond to changes in the state of an entity.
Specify event actions based on entity status. A typical event sequence in a SimEvents® model is:
The generation of an entity.
The advancement of an entity from an Entity Generator block to an Entity Server block.
The completion of service on an entity in a server.
The exit of an entity from one Entity Server block to an Entity Terminator block.
The destruction of an entity.
Events do not have a graphical representation. However, you
can associate actions with events as described in Actions for Events. The SimEvents software maintains
an event calendar with which you can interact using
You can create a custom event observer using this class and its methods.
For more information, see Interface for Custom Visualization.
SimEvents lets you create custom actions to happen when an event occurs for an entity. Every event can have a corresponding action. You can write actions for many events using MATLAB® code or Simulink Functions.