Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
MATLAB_R2013a_SimEvents_маг.doc
Скачиваний:
0
Добавлен:
01.05.2025
Размер:
5.48 Mб
Скачать

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.

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]