Results 1 to 4 of 4
  1. #1
    hello_hello is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default AnyLogic Java HELP

    Hi,

    I have a student project, and I can't figure how to complete it. Here it is...

    At flowchart you can see that at delay masina (machine) comes seperate entity. First is Deo1(part1) and second Deo2(part2). First and second entity is java class. My mission is to at delay masina first part have delay of 4 seconds, and second part have delay of 16 seconds. I wrote some Java code that's working but I thing wrong. CAN ANYBODY HELP ME WITH THIS???

    My Java knowledge is bad as my English, but I think you can understand me. I also send you 2 pictures, and hole Java code. And thanks if anybody can help me with this...AnyLogic Java HELP-picture1.jpgAnyLogic Java HELP-picture2.png
    Attached Files Attached Files

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: AnyLogic Java HELP

    I wrote some Java code that's working but I thing wrong.
    Please explain why you think its wrong.

    Do you have any specific java problems?
    Please post the code and your questions on the forum.

  3. #3
    hello_hello is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: AnyLogic Java HELP

    Well the program works, I can run it. But doesn't do what I want him to do...

    On second pictures you can see that program just show me delay time but doesn't work by them. It work by triangular method. I have tried to type instead of triangular method to type what is "on enter" in "delay time" (first pictures), but then they show me an error because i change the java code at the way i can't understand. At the end I don't know where to change java code to make them work by my delay time that depends on which entity arrived...

    I hope that I make it more clearly now... :)

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,902
    Rep Power
    25

    Default Re: AnyLogic Java HELP

    I don't know where to change java code to make them work by my delay time that depends on which entity arrived
    I notice your code uses a 3rd party package. Is your problem related to the classes in that package?
    If not could you write a small program that compiles and executes and shows your problem in Java SE?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •