411 REFERENCE · Wikibooks
Simulation with AnyLogic/Discrete Event Simulation/Ophthalmology Department Model/Step 3. Animating patients and resources
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Step 3. Animating Patients and Resources
Now we will draw animations to depict patients, doctors and scopes in our model.
File:Step_1._Creating_a_new_model1.gif Draw a shape depicting a patient
Zoom the diagram in, say to 400% scale.File:Step_10._Adding_agent_animations1.png
Drag the diagram a little bit down and to the right with the right mouse button pressed.
Draw patient shape like shown in the following figure:File:Step 3. Animating patients and resources 1.png
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 File: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.
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.
File:Step_1._Creating_a_new_model1.gif Draw shapes to depict doctors and ophthalmoscopes
Draw a shape depicting a doctor using the Polyline File:Step_3._Creating_a_model_animation_3.gif drawing tool. Name it shapeDoctor.File:Step 3. Animating patients and resources 2.png
Draw a shape depicting an opthalmoscope using the Polyline File:Step_3._Creating_a_model_animation_3.gif drawing tool. Name it shapeScope.File:Step 3. Animating patients and resources 3.png
When finished, zoom the diagram out to the default scale by pressing the Zoom to 100% File: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.