Infinite Server - Delay any number of entities for period of time

Library

Servers

Description

This block serves any number of entities for a period of time, called the service time, and then attempts to output them through the OUT port. If the OUT port is blocked, then the block holds the entities until the port becomes unblocked. If an entity in this block is scheduled to time out, then it might depart prematurely via the optional TO port; see Forcing Departures Using Timeouts for details about timeouts.

An infinite server is like an infinite set of single servers connected in parallel, followed by a path combiner; the path combiner notifies entities of an unblocked path in the sequence in which the entities completed their service time, until one entity departs.

You specify the service time, which is the duration of service, via a parameter, attribute, or signal, depending on the Service time from parameter value. The block determines the service time for an entity upon its arrival. Service times are assumed to be specified in seconds.

The IN port of an infinite server is always available. You can interpret an infinite server as a mechanism for delaying entities. Some discussions of this block suggest this interpretation by using the word delay instead of serve.

Ports

Entity Input Ports

LabelDescription
INPort for arriving entities, which will be served.

Signal Input Ports

LabelDescription
tService time, in seconds, for a newly arrived entity. This port appears only if you set Service time from to Signal port t.

Entity Output Ports

LabelDescription
OUTPort for departing entities that have completed their service time and have not timed out while in this block.
TOPort for entities that time out while in this block. This port appears only if you select Enable TO port for timed-out entities. This port must not be blocked when an entity attempts to depart here.

Signal Output Ports

LabelDescriptionTime of Update When Statistic Is OnOrder of Update When Entity Departs
#dNumber of entities that have departed from this block via the OUT port since the start of the simulation.After entity departure via the OUT port5
#nNumber of entities in the block.After entity arrival and after entity departure4
peThe value is 1 if the block is holding any pending entities, that is, entities that have completed their service but cannot depart because the OUT port is blocked. The value of this signal is 0 if the block has no pending entities or if an entity departure is imminent.After service completion and when entity departure is imminent1
#peThe number of entities that have completed their service but cannot depart because the OUT port is blocked. After service completion (increase in value) and after entity departure (decrease in value)3
wSample mean of the waiting times in this block for all entities that have departed via any port. An entity's waiting time might exceed its service time if the OUT port is blocked when the entity completes service.After entity departure2
#toNumber of entities that have timed out from this block since the start of the simulation.After entity departure via the TO port5

Output signals having the same number in the Order of Update column in the table above are updated in an arbitrary sequence relative to each other; you should not rely on a specific sequence for your simulation results.

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.

Dialog Box

Infinite Server Tab

Service time from

Determines whether the service time is computed from a parameter in this dialog box, a signal input port, or an attribute of the entity being served.

Service time

The service time, in seconds, for all entities. This field appears only if you set Service time from to Dialog.

Attribute name

The name of the attribute whose value the block uses as the service time for an entity. This field appears only if you set Service time from to Attribute.

Service completion event priority

The priority of the service completion event, relative to other simultaneous events in the simulation.

Timeout Tab

Enable TO port for timed-out entities

This option becomes relevant if an entity times out while in this block. Selecting this option provides a TO entity output port through which the timed-out entity departs. If you clear this option in a model that uses timeouts, see the If entity has no destination when timeout occurs parameter of the Schedule Timeout block.

Statistics Tab

These parameters determine whether certain ports produce data throughout the simulation, produce data only when you stop or pause the simulation, or are omitted from the block. For descriptions of the affected ports, see the "Signal Output Ports" table above.

Number of entities departed

Controls the presence and behavior of the signal output port labeled #d.

Number of entities in block

Controls the presence and behavior of the signal output port labeled #n.

Status of pending entity departure

Controls the presence of the signal output port labeled pe.

Number of pending entities

Controls the presence and behavior of the signal output port labeled #pe.

Average wait

Controls the presence and behavior of the signal output port labeled w.

Number of entities timed out

Controls the presence and behavior of the signal output port labeled #to.

Examples

See Also

Single Server, N-Server

Basic Queues and Servers

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS