Community

Hello, I am very new to AnyLogic and have hit a snag in a model I was working on. I could fix this problem, however I cannot edit the Main.java file (which is a Active Object). I can bring up the Java editor, however it seems to be read only, although I can edit regular classes. I am using an evaluation version of AnyLogic 6, if it makes any difference. Does anyone know a way of removing this read-only access? Thanks a lot, Andrew
Hi Andrew, AnyLogic architecture is suited for modeling not for programming. You'd better to define the model with graphical diagram using graphical elements of AnyLogic modeling language. Java code is usually used for the implementation of some complex actions, decision logic etc. So Java code is a way to enhance your model with additional features, and not the instrument for general modeling purposes. Main.java is read only because it is auto-generated each time you push run-button. It does not means that the code view is useless, because sometimes observing sources it is the easiest way to find possible mistake... BR, Sergey
Oh ok. I think I understand how it works. Thanks for your help. -Andrew