Now we will add a slider to vary the number of tellers at run time.Īdd a slider to vary the number of tellers AnyLogic provides a set of controls enabling changing the model parameters. However, we may need to vary it dynamically at the model run time. In the current model the number of tellers is fixed. Set busyTeller as Busy unit animation shape.Set idleTeller as Idle unit animation shape. Specify tellerPlaces as Animation guide shape.To animate tellers, modify the tellers properties:.Set queueBeforeTellers as Animation guide shape (queue). Therefore, modify the service properties: Now we need to animate customers queue.Now we will animate the flowchart by setting up animation properties of the flowchart objects. Name it idleTeller and choose Teller Idle.png as the image displayed by this shape. Create one more image to show relaxing teller.If Original Size option is not selected, the picture is shown to fit the rectangle of the image shape, and otherwise the picture is shown without any distortions. You will see the added image in the preview area. You can find this file in the folder where Billing Department sample model is located (somewhat like \plugins\com.xj.anylogic.examples.\models\Billing Department). Use Add Image button to add Teller Busy.png. Define the image that this shape will display.Go to the Properties of the image shape.Drag Image from the Presentation stencil to the place shown in the figure with a blue crossed rectangle.AnyLogic will automatically switch between these images when the resource unit becomes seized and released. Now we will animate our tellers by defining two images representing tellers being idle and busy. This polyline will indicate where teller animations are placed.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |