Community

hi all, my name's Federico Rinaldi and i'm a student of Politecnico di Milano (Italy). I have to do a project involving simulation of networks (with sources, hosts -which are practically delayed queues-, routers and sinks). I have to configure these parts retrieving informations from a txt file, but this isn't the problem. I have to instanziate dinamically the number of sources and of the other components basing on the file's infos. Is it possible to create a program with anylogic that creates dinamically the parts of the model? thanks a lot for your help! Federico Rinaldi
AnyLogic is well suited for modeling networks and is successfully used by our customers for this purpose. Among others features AnyLogic allows you to create and destroy objects and connections between objects dynamically. You are to add your sources to the model and set replications to "0". Then add a number of sources with "add_source()" function. Please refer to the help chapter named "Dynamic Adding/Removing Objects to/from a Replicated Object" for more information. The last thing you should do is to connect dynamically created objects with rest part of the model. Please find the information about this in correspondent Help Chapter: "Enterprise Library ports and connections".