Simulation with AnyLogic/Discrete Event Simulation/Ophthalmology Department Model/Step 3. Animating patients and resources

< Simulation with AnyLogic‎ | Discrete Event Simulation‎ | Ophthalmology Department Model

Step 3. Animating Patients and ResourcesEdit

Now we will draw animations to depict patients, doctors and scopes in our model.

Draw a shape depicting a patient

  1. Zoom the diagram in, say to 400% scale.
  2. Drag the diagram a little bit down and to the right with the right mouse button pressed.
  3. Draw patient shape like shown in the following figure:
  4. You can draw it using any AnyLogic presentation shape, or with an image. We will draw it using a curve. To draw a curve, drag the Curve element from the Presentation page of the Palette view onto the diagram. Then double-click the drawn curve to switch to editing curve points mode. In this mode you can add new points by double-clicking on the curve and move points by dragging them.
  5. Name the shape shapePatient. The name is important since we will refer to patient animations by shape name.

Now we will draw shapes to depict doctors and ophthalmoscopes in the same way as we did for patients.

Draw shapes to depict doctors and ophthalmoscopes

  1. Draw a shape depicting a doctor using the Polyline drawing tool. Name it shapeDoctor.
  2. Draw a shape depicting an opthalmoscope using the Polyline drawing tool. Name it shapeScope.
  3. When finished, zoom the diagram out to the default scale by pressing the Zoom to 100% toolbar button.

We have finished drawing the model presentation. Now we will configure the model network and define the process itself using a flowchart.