{
  "schemaVersion": "beta1",
  "id": "n1yip",
  "name": "Validação · Filas com capacidade finita",
  "dateDisplay": {
    "format": "yearMonthDayTime"
  },
  "model": {
    "baseSeed": "95101",
    "timeUnit": "second",
    "processes": [
      {
        "id": "5cqg6",
        "name": "Cliente",
        "startMode": "delayed",
        "delay": {
          "mode": "expression",
          "seed": {
            "type": "shared",
            "modifier": 0,
            "sharedSequence": "arrivals"
          },
          "expression": [
            {
              "nodeType": "function",
              "functionType": "exponential",
              "parameterization": "exponentialRate",
              "arguments": [
                [
                  {
                    "nodeType": "data",
                    "dataReference": {
                      "kind": "variable",
                      "variableId": "3emkb"
                    }
                  }
                ]
              ]
            }
          ]
        },
        "repetitionMode": "fixed",
        "repetitionInterval": {
          "mode": "expression",
          "seed": {
            "type": "shared",
            "modifier": 0,
            "sharedSequence": "arrivals"
          },
          "expression": [
            {
              "nodeType": "function",
              "functionType": "exponential",
              "parameterization": "exponentialRate",
              "arguments": [
                [
                  {
                    "nodeType": "data",
                    "dataReference": {
                      "kind": "variable",
                      "variableId": "3emkb"
                    }
                  }
                ]
              ]
            }
          ]
        },
        "repetitionStopCondition": {
          "mode": "fixedValue",
          "fixedBooleanValue": false
        },
        "useRepetitionStopCondition": false,
        "steps": [
          {
            "id": "fw01t",
            "stepType": "decision",
            "name": "Há espaço disponível?",
            "conditions": [
              {
                "mode": "expression",
                "seed": {
                  "type": "perAttribute",
                  "modifier": 1155742760
                },
                "expression": [
                  {
                    "nodeType": "data",
                    "dataReference": {
                      "kind": "variable",
                      "variableId": "wf5rk"
                    }
                  },
                  {
                    "nodeType": "less"
                  },
                  {
                    "nodeType": "data",
                    "dataReference": {
                      "kind": "variable",
                      "variableId": "hpivi"
                    }
                  }
                ],
                "steps": [
                  {
                    "id": "q0wgh",
                    "stepType": "changeValue",
                    "name": "Increment Clientes presentes",
                    "action": "increment",
                    "target": {
                      "kind": "variable",
                      "variableId": "wf5rk"
                    },
                    "value": {
                      "mode": "expression",
                      "seed": {
                        "type": "perAttribute",
                        "modifier": 3534446880
                      },
                      "expression": [
                        {
                          "nodeType": "number",
                          "value": "1"
                        }
                      ],
                      "dataType": {
                        "type": "number"
                      }
                    }
                  },
                  {
                    "id": "xsmd3",
                    "stepType": "reserveCapacity",
                    "name": "Reserve Atendentes",
                    "capacityId": "5j1lk"
                  },
                  {
                    "id": "2qttx",
                    "stepType": "wait",
                    "name": "Atender cliente",
                    "duration": {
                      "mode": "expression",
                      "seed": {
                        "type": "shared",
                        "modifier": 0,
                        "sharedSequence": "services"
                      },
                      "expression": [
                        {
                          "nodeType": "function",
                          "functionType": "exponential",
                          "parameterization": "exponentialRate",
                          "arguments": [
                            [
                              {
                                "nodeType": "number",
                                "value": "1"
                              }
                            ]
                          ]
                        }
                      ]
                    }
                  },
                  {
                    "id": "1ycfc",
                    "stepType": "releaseCapacity",
                    "name": "Release Atendentes",
                    "capacityId": "5j1lk"
                  },
                  {
                    "id": "9i9lf",
                    "stepType": "changeValue",
                    "name": "Decrement Clientes presentes",
                    "action": "decrement",
                    "target": {
                      "kind": "variable",
                      "variableId": "wf5rk"
                    },
                    "value": {
                      "mode": "expression",
                      "seed": {
                        "type": "perAttribute",
                        "modifier": 1330076957
                      },
                      "expression": [
                        {
                          "nodeType": "number",
                          "value": "1"
                        }
                      ],
                      "dataType": {
                        "type": "number"
                      }
                    }
                  }
                ]
              }
            ],
            "fallback": {
              "steps": [
                {
                  "id": "758uq",
                  "stepType": "recordEvent",
                  "eventId": "g6ul5"
                }
              ]
            }
          }
        ]
      }
    ],
    "capacities": [
      {
        "id": "5j1lk",
        "name": "Atendentes",
        "maximumCapacity": "1",
        "groupingMode": "disabled"
      }
    ],
    "events": [
      {
        "id": "g6ul5",
        "kind": "instant",
        "name": "Cliente recusado",
        "collectStatistics": true
      }
    ],
    "variables": [
      {
        "name": "Taxa de chegada",
        "dataType": {
          "type": "number"
        },
        "initialNumberValue": "1.5",
        "id": "3emkb"
      },
      {
        "name": "Limite total de clientes",
        "dataType": {
          "type": "number"
        },
        "initialNumberValue": "1",
        "id": "hpivi"
      },
      {
        "name": "Clientes presentes",
        "dataType": {
          "type": "number"
        },
        "initialNumberValue": "0",
        "id": "wf5rk"
      }
    ]
  },
  "scenarios": [
    {
      "id": "rpp7f",
      "name": "M/M/1/1",
      "values": [
        {
          "field": "numberInitialValue",
          "itemId": "3emkb",
          "value": 1.5
        },
        {
          "field": "capacityLimit",
          "itemId": "5j1lk",
          "value": 1
        },
        {
          "field": "numberInitialValue",
          "itemId": "hpivi",
          "value": 1
        }
      ]
    },
    {
      "id": "yupgp",
      "name": "M/M/3/3",
      "values": [
        {
          "field": "numberInitialValue",
          "itemId": "3emkb",
          "value": 3.6
        },
        {
          "field": "capacityLimit",
          "itemId": "5j1lk",
          "value": 3
        },
        {
          "field": "numberInitialValue",
          "itemId": "hpivi",
          "value": 3
        }
      ]
    },
    {
      "id": "qt0tu",
      "name": "M/M/1/4",
      "values": [
        {
          "field": "numberInitialValue",
          "itemId": "3emkb",
          "value": 1.0
        },
        {
          "field": "capacityLimit",
          "itemId": "5j1lk",
          "value": 1
        },
        {
          "field": "numberInitialValue",
          "itemId": "hpivi",
          "value": 4
        }
      ]
    },
    {
      "id": "hmzt9",
      "name": "M/M/3/6",
      "values": [
        {
          "field": "numberInitialValue",
          "itemId": "3emkb",
          "value": 3.6
        },
        {
          "field": "capacityLimit",
          "itemId": "5j1lk",
          "value": 3
        },
        {
          "field": "numberInitialValue",
          "itemId": "hpivi",
          "value": 6
        }
      ]
    }
  ],
  "experiments": [
    {
      "id": "psorv",
      "name": "M/M/1/1",
      "description": "Validação de filas · mm1-1. Tempos em segundos.",
      "scenarios": [
        "rpp7f"
      ],
      "replications": "20",
      "replicationsEnabled": true,
      "seed": "95101",
      "baseSeedType": "customSeed",
      "warmup": "2000.0",
      "warmupType": "elapsedTime",
      "until": "27000.0",
      "indicators": [
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "queueAndPendingWaits",
          "indicator": "summary.averageQueueLengthPerReplication",
          "label": "Clientes na fila",
          "measure": "mean"
        },
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "capacityAndUtilization",
          "indicator": "summary.averageInUsePerReplication",
          "label": "Clientes em atendimento",
          "measure": "mean"
        },
        {
          "subject": "events",
          "itemId": "g6ul5",
          "table": "volumeAndCompletion",
          "indicator": "instantCountPerReplication",
          "label": "Recusas por réplica",
          "measure": "mean"
        }
      ]
    },
    {
      "id": "z8tfm",
      "name": "M/M/3/3",
      "description": "Validação de filas · mm3-3. Tempos em segundos.",
      "scenarios": [
        "yupgp"
      ],
      "replications": "20",
      "replicationsEnabled": true,
      "seed": "95303",
      "baseSeedType": "customSeed",
      "warmup": "2000.0",
      "warmupType": "elapsedTime",
      "until": "27000.0",
      "indicators": [
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "queueAndPendingWaits",
          "indicator": "summary.averageQueueLengthPerReplication",
          "label": "Clientes na fila",
          "measure": "mean"
        },
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "capacityAndUtilization",
          "indicator": "summary.averageInUsePerReplication",
          "label": "Clientes em atendimento",
          "measure": "mean"
        },
        {
          "subject": "events",
          "itemId": "g6ul5",
          "table": "volumeAndCompletion",
          "indicator": "instantCountPerReplication",
          "label": "Recusas por réplica",
          "measure": "mean"
        }
      ]
    },
    {
      "id": "u3764",
      "name": "M/M/1/4",
      "description": "Validação de filas · mm1-4. Tempos em segundos.",
      "scenarios": [
        "qt0tu"
      ],
      "replications": "20",
      "replicationsEnabled": true,
      "seed": "95104",
      "baseSeedType": "customSeed",
      "warmup": "2000.0",
      "warmupType": "elapsedTime",
      "until": "27000.0",
      "indicators": [
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "queueAndPendingWaits",
          "indicator": "summary.averageQueueLengthPerReplication",
          "label": "Clientes na fila",
          "measure": "mean"
        },
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "capacityAndUtilization",
          "indicator": "summary.averageInUsePerReplication",
          "label": "Clientes em atendimento",
          "measure": "mean"
        },
        {
          "subject": "events",
          "itemId": "g6ul5",
          "table": "volumeAndCompletion",
          "indicator": "instantCountPerReplication",
          "label": "Recusas por réplica",
          "measure": "mean"
        }
      ]
    },
    {
      "id": "ls3tj",
      "name": "M/M/3/6",
      "description": "Validação de filas · mm3-6. Tempos em segundos.",
      "scenarios": [
        "hmzt9"
      ],
      "replications": "20",
      "replicationsEnabled": true,
      "seed": "95306",
      "baseSeedType": "customSeed",
      "warmup": "2000.0",
      "warmupType": "elapsedTime",
      "until": "27000.0",
      "indicators": [
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "queueAndPendingWaits",
          "indicator": "summary.averageQueueLengthPerReplication",
          "label": "Clientes na fila",
          "measure": "mean"
        },
        {
          "subject": "capacities",
          "itemId": "5j1lk",
          "table": "capacityAndUtilization",
          "indicator": "summary.averageInUsePerReplication",
          "label": "Clientes em atendimento",
          "measure": "mean"
        },
        {
          "subject": "events",
          "itemId": "g6ul5",
          "table": "volumeAndCompletion",
          "indicator": "instantCountPerReplication",
          "label": "Recusas por réplica",
          "measure": "mean"
        }
      ]
    }
  ]
}
