Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Become an AnyLogic Expert Step by Step<br />How to create an embedded active object<br />
About me<br />khoi.tran@simbean.com<br />2<br />My name is Khoi Tran and I’m living in beautiful Stuttgart, Germany.<br />...
Learning subjects<br />khoi.tran@simbean.com<br />3<br />In this example you can learn, <br /><ul><li>how to create embedd...
Create a new model<br />khoi.tran@simbean.com<br />4<br />Write the name of the model e.g. „DemoEmbeddedObject“<br />Choos...
Create an active object<br />khoi.tran@simbean.com<br />5<br /><ul><li> Right mouse click on the project
 Choose this menu item</li></ul>Write „SpeedControl“ instead of „MyClass“<br />Create an active object called “EmbeddedObj...
Insert object from palette to an active object<br />khoi.tran@simbean.com<br />6<br />Drag & drop all the objects onto the...
Set properties for parameter „speed“<br />khoi.tran@simbean.com<br />7<br /><ul><li>Rectangle and polyline are in “present...
 There is no property change</li></ul>Parameter “speed” in “general” palette<br />Set default value to 10<br />“speed” is ...
Set properties for object „queue“<br />khoi.tran@simbean.com<br />8<br /><ul><li> „rectangle“, the name of the rectangle s...
Set properties for object „conveyor“<br />khoi.tran@simbean.com<br />9<br />Change value for “space between entities”<br /...
Set properties for image<br />khoi.tran@simbean.com<br />11<br />Drag & drop the image here<br />Set this image as an icon...
Create shape and shape group<br />khoi.tran@simbean.com<br />Draw the car picture with many polyline and ovals<br />12<br ...
 Right mouse click on all selected element
Select “Create a group”</li></ul>Rename the picture group to “groupCar”<br />
Embed an active object to onther active object<br />khoi.tran@simbean.com<br />13<br />Drag & drop the active object ”Embe...
Create and connect embedded active objects<br />khoi.tran@simbean.com<br />After drag & drop three “EmbeddedObjects”, you ...
Change the value for the parameter<br />khoi.tran@simbean.com<br />15<br />Set value for parameter in each embedded active...
Upcoming SlideShare
Loading in …5
×

AnyLogic - Free AnyLogic basic lessions - Learning AnyLogic by examples - Demo embeddedobject

4,693 views

Published on

Free AnyLogic basic lessions - Learning AnyLogic by examples is made by Khoi Tran.

In this example you can learn, how to create an embedded active object.

Published in: Technology, Art & Photos
  • Be the first to comment

AnyLogic - Free AnyLogic basic lessions - Learning AnyLogic by examples - Demo embeddedobject

  1. 1. Become an AnyLogic Expert Step by Step<br />How to create an embedded active object<br />
  2. 2. About me<br />khoi.tran@simbean.com<br />2<br />My name is Khoi Tran and I’m living in beautiful Stuttgart, Germany.<br />As a 12-years expert in the software industry and 6-years expert in simulation with AnyLogic, I would like to share my experiences with you on a simple and fast path.<br />
  3. 3. Learning subjects<br />khoi.tran@simbean.com<br />3<br />In this example you can learn, <br /><ul><li>how to create embedded active object.</li></ul>You can see the demo in action first<br />http://simbean.com/en/knowhow/become-an-anylogic-expert.html<br />If you like to know, how we built this model, this slide may help you.<br />
  4. 4. Create a new model<br />khoi.tran@simbean.com<br />4<br />Write the name of the model e.g. „DemoEmbeddedObject“<br />Choose menu item „Model“<br />Right mouse click on the Project view<br />Create a new model<br />
  5. 5. Create an active object<br />khoi.tran@simbean.com<br />5<br /><ul><li> Right mouse click on the project
  6. 6. Choose this menu item</li></ul>Write „SpeedControl“ instead of „MyClass“<br />Create an active object called “EmbeddedObject” in the model project<br />
  7. 7. Insert object from palette to an active object<br />khoi.tran@simbean.com<br />6<br />Drag & drop all the objects onto the graghical editor <br />
  8. 8. Set properties for parameter „speed“<br />khoi.tran@simbean.com<br />7<br /><ul><li>Rectangle and polyline are in “presentation” palette
  9. 9. There is no property change</li></ul>Parameter “speed” in “general” palette<br />Set default value to 10<br />“speed” is from data type “double”<br />You need to click on each object to see its properties.<br />
  10. 10. Set properties for object „queue“<br />khoi.tran@simbean.com<br />8<br /><ul><li> „rectangle“, the name of the rectangle shape, is set for the animation guide shape </li></ul>Animation type is “Arrange”<br />
  11. 11. Set properties for object „conveyor“<br />khoi.tran@simbean.com<br />9<br />Change value for “space between entities”<br />Set speed parameter for “Speed”<br /><ul><li> „poyline“, the name of the polyline shape, is set for the animation guide shape </li></li></ul><li>Create ports<br />khoi.tran@simbean.com<br />10<br />Drag & drop the ports “in” and “out” onto the graphical editor<br />Change the name to “in”<br />Each object from the Enterprise Library has at least one port<br />The port has a direction, whether it is “in” port or “out” port <br />An “in” port is allowed only to connect to the “out” port<br />
  12. 12. Set properties for image<br />khoi.tran@simbean.com<br />11<br />Drag & drop the image here<br />Set this image as an icon<br />choose the icon image here<br />
  13. 13. Create shape and shape group<br />khoi.tran@simbean.com<br />Draw the car picture with many polyline and ovals<br />12<br /><ul><li> Select all shape elements by range select
  14. 14. Right mouse click on all selected element
  15. 15. Select “Create a group”</li></ul>Rename the picture group to “groupCar”<br />
  16. 16. Embed an active object to onther active object<br />khoi.tran@simbean.com<br />13<br />Drag & drop the active object ”EmbeddedObject” onto the graphical editor<br />Animation part<br />Logic part<br />Each time you drag & drop an active object to another, you can get the animation part and the logic part of the embedded active object<br />
  17. 17. Create and connect embedded active objects<br />khoi.tran@simbean.com<br />After drag & drop three “EmbeddedObjects”, you can make connections and arrange the animations like this<br />14<br />
  18. 18. Change the value for the parameter<br />khoi.tran@simbean.com<br />15<br />Set value for parameter in each embedded active object<br />You can remember we created one parameter in the embedded active object. Now you can set the value for each embedded active object. <br />
  19. 19. Set properties for „source“<br />khoi.tran@simbean.com<br />16<br />Write “groupCar” for the entity animation shape<br />Set the unique shape for each entity <br />
  20. 20. Run the model<br />khoi.tran@simbean.com<br />Click on the run button and choose the simulation<br />17<br />You can run the model and see the result<br />Try to change or set properties to see some small effects e.g.<br />Where the property is put on “false”, you can turn it on with “true”<br />Set and unset the checkboxes<br />Change the capacity of the queue<br />Change the animation type of the queue to “bag”<br />Change sizes of the rectangle and the polyline<br />Change the properties of conveyor, like “animation direction”, “accumlating”, “speed” etc.<br />You need to restart the model to see the effects<br />
  21. 21. Thank You<br />khoi.tran@simbean.com<br />18<br />IF YOU HAVE ANY QUESTION, IDEA, FEEDBACK or FIND ANY MISTAKE, PLEASE SEND ME an EMAIL <br />khoi.tran@simbean.com<br />BECAUSE I WOULD LIKE to IMPROVE this SLIDE CONTINUOUSLY.<br />I APPRECIATE a lot YOUR TIME.<br />

×