MATLAB SIMEVENTS RELEASE NOTES Guide de l'utilisateur Page 99

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 114
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 98
Select Arrival Path Using Input Switch
5-9
Select Arrival Path Using Input Switch
In this section...
“Role of the Input Switch” on page 5-9
“Round-Robin Approach to Choosing Inputs” on page 5-9
Role of the Input Switch
The block in the Routing library chooses among a number of entity input ports. This
block selects exactly one entity input port for potential arrivals and makes all other
entity input ports unavailable. The selected entity input port can change during the
simulation. You have several options for criteria that the block uses for selecting an
entity input port.
A typical scenario in which you might use an input switch is when multiple sources
of entities feed into a single queue, where the sequencing follows specific rules. For
example, users of terminals in a time-shared computer submit jobs to a queue that feeds
into the central processing unit, where an algorithm regulates access to the queue so as
to prevent unfair domination by any one user.
Round-Robin Approach to Choosing Inputs
In a round-robin approach, an input switch cycles through the entity input ports in
sequence. After the last entity input port, the next selection is the first entity input
port. The switch selects the next entity input port after each entity departure. When the
switch selects an entity input port, it makes the other entity input ports unavailable,
regardless of how long it takes for an entity to arrive at the selected port.
You can implement a round-robin approach by setting the Switching criterion
parameter in the Input Switch block to Round robin.
Consider the following example, in which three sets of entities attempt to arrive at an
Input Switch block with the round-robin switching criterion.
Vue de la page 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 113 114

Commentaires sur ces manuels

Pas de commentaire