
- •Matlab r2013a
- •Технология SimEvents-моделирования
- •Основные характеристики субпакета SimEvents даны в подразделе Product Description раздела Getting Started with SimEvents:
- •Key Features(особенности)
- •Build a Discrete-Event Model(дискретно - событийная)
- •Overview
- •Open a Model and Libraries
- •Open a New Model Window
- •Open SimEvents Libraries
- •This window contains an icon for each SimEvents library. To open a library and view the blocks it contains, double-click the icon that represents that library. Open Simulink Libraries
- •Move Blocks into the Model Window
- •Responding(отвечая) to Blockage(блок) at the Entity Output Port(на выходе порта)
- •Dialog Box Entity Generation Tab
- •Initial seed
- •Blocking Tab
- •Entity Type Tab
- •Statistics Tab
- •Examples
- •Example: Responding to Blockage
- •Immediate Restart
- •Dialog Box fifo Queue Tab
- •Timeout Tab
- •Statistics Tab
- •Examples
- •Dialog Box Single Server Tab
- •Preemption Tab
- •Timeout Tab
- •Statistics Tab
- •Examples
- •See Also
- •Selecting Data for the Horizontal Axis
- •Dialog Box
- •Plotting Tab
- •X value from
- •Axes Tab
- •Figure Tab
- •X label
- •Data History Tab
- •Input port available for entity arrivals
- •Change Parameter Values
- •Connect Blocks
- •Run the Simulation
- •Resolve Solver Warnings
- •Results of the Simulation
- •Insert Blocks
- •Build a Model Using Model Construction Commands
- •Explore Simulations Using the Debugger and Plots
- •Explore the d/d/1 System Using the SimEvents Debugger
- •Start the Debugger
- •Run the Simulation
- •Query the Server Block
- •End the Simulation
- •For Further Information
- •Explore the d/d/1 System Using Plots
- •Enable the Queue-Length Signal
- •Plot the Queue-Length Signal
- •Simulate with Different Intergeneration Times
- •View Waiting Times and Utilization
- •Observations from Plots
- •Information About Race Conditions and Random Times
Responding(отвечая) to Blockage(блок) at the Entity Output Port(на выходе порта)
You can choose how this block responds(отвечает) when it generates an entity that the subsequent(последующей) entity input port is not available to accept:
If you set Response when blocked to Error, the simulation halts(остановиться) with an error message.
If you set Response when blocked to Pause generation, this block holds(держит) the entity, which becomes a pending(ожидающей) entity. The block does not schedule(спланирует) another entity generation event yet. The Response when unblocked parameter determines what the block does next:
If you set Response when unblocked to Immediate(немедленная) restart, after this block learns that the subsequent port is available, the pending(ожидающая) entity departs(отбывает0. After the pending entity departs, this block schedules the generation of the next entity.
If you set Response when unblocked to Delayed(с задержкой) restart, upon(на) learning that the subsequent(последующий) port is available, this block schedules an event of type DelayedRestart. The event time is the current time plus the same intergeneration time the block used when generating the pending entity. When the block executes(выполняет) the event, the pending entity attempts(пытается) to depart.
Use the Delayed restart option if you want to:
Keep the arrival process memoryless, when Distribution is Exponential.(держать процесс поступления без запоминания, когда распространение экспоненциальное)
Prevent(предотвратить) correlation among multiple instances(элементов) of this block if they become unblocked simultaneously(разблок. одновременно).
For an example, see Example: Responding to Blockage (директория R2013a>SimEvents>Modeling>Entity Generation>Scheduled Generation>Time-Based Entity Generator).
Ports
Signal Input Ports
Label |
Description |
t |
Time interval between generation events of the current entity and the next entity. The block reads the value after the current entity departs and the block updats its output signals, if any. If you do not select Generate entity at simulation start, then the block also reads the value of this signal at the start of the simulation. This signal must be an event-based signal. You see this port only if you set Generate entities upon to Intergeneration time from port t. |
Entity Output Ports
Label |
Description |
OUT |
Port through which generated entities depart.(через который отправляются) |
Signal Output Ports
Label |
Description |
Time of Update When Statistic Is On |
Order of Update |
#d |
Number of entities that have departed from this block since the start of the simulation.(уже прошли) |
After entity departure |
3 |
pe |
A value of 1 indicates that the block stores an entity that has tried and failed to depart. In that case, the entity is a pending entity.(пыталась отправиться и не отправилась, стала ожидающей. Блок содержит такую сущность) A value of 0 indicates that the block does not store any pending entities.(ни одной ожидающей) |
Sample time hit(убивать) of 1 occurs(попавшуюся) after the block stores an entity that has tried and failed to depart. Sample time hit of 0 occurs after the departure of the pending entity. |
1 |
w |
Average interdeparture time, in seconds, for all pairs of successive entities that have departed from this block. The signal value is 0 before the second entity departure. |
After entity departure |
2 |
The initial(исходное) output value, which is in effect(действует) from the start of the simulation until the first update by the block, is 0 for all signals.