Last modified on 4 August 2009, at 18:35

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

Step 3. Animating Patients and ResourcesEdit

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

Step 1. Creating a new model1.gif Draw a shape depicting a patient

  1. Zoom the diagram in, say to 400% scale.
    Step 10. Adding agent animations1.png
  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:
    Step 3. Animating patients and resources 1.png
  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 Step 10. Adding agent animations3.gif 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.

Step 1. Creating a new model1.gif Draw shapes to depict doctors and ophthalmoscopes

  1. Draw a shape depicting a doctor using the Polyline Step 3. Creating a model animation 3.gif drawing tool. Name it shapeDoctor.
    Step 3. Animating patients and resources 2.png
  2. Draw a shape depicting an opthalmoscope using the Polyline Step 3. Creating a model animation 3.gif drawing tool. Name it shapeScope.
    Step 3. Animating patients and resources 3.png
  3. When finished, zoom the diagram out to the default scale by pressing the Zoom to 100% Step 3. Animating patients and resources 4.gif toolbar button.

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