Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 9 of 9

Thread: JAVA simulator

  1. #1
    Junior Member
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default JAVA simulator

    Hi all,

    I would ask please about, how can I create a simulator using java, is there any tools can help in this area because usually simulators need more works with GUI. Therefore, anyone knows any library or tools can help.

    exactly ,

    I am going to simulate WFQ and PQ , which are router`s algorithms and show how packets arrive and departure from any router

    Thx
    Last edited by YAS218; July 18th, 2009 at 12:13 PM.


  2. #2
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JAVA simulator

    what are you trying to simulate? If it's graphic/computationally intensive, more than likely you won't be able to do it in java with a decent run-time.

  3. The Following User Says Thank You to helloworld922 For This Useful Post:

    YAS218 (July 18th, 2009)

  4. #3
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: JAVA simulator

    I disagree, you can do really great graphics in Java.

    However like helloworld said, what kind of simulator are we talking about?


    // Json

  5. The Following User Says Thank You to Json For This Useful Post:

    YAS218 (July 18th, 2009)

  6. #4
    Junior Member
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: JAVA simulator

    Quote Originally Posted by helloworld922 View Post
    what are you trying to simulate? If it's graphic/computationally intensive, more than likely you won't be able to do it in java with a decent run-time.

    I am going to simulate WFQ and PQ , which are router`s algorithms and show how packets arrive and departure from any router

  7. #5
    Junior Member
    Join Date
    Jul 2009
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: JAVA simulator

    Quote Originally Posted by Json View Post
    I disagree, you can do really great graphics in Java.

    However like helloworld said, what kind of simulator are we talking about?


    // Json
    I am going to simulate WFQ and PQ , which are router`s algorithms and show how packets arrive and departure from any router

    thx

  8. #6
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JAVA simulator

    You can get graphics to look good with java, but for the most part is limited to 2d (not completely). If you look at the nature of high-powered simulators, especially those that provide high fidelity (raytracing, high polygon models, particle systems, etc.), you need to interface with the graphics card, which just isn't possible with java if you want a decent running time and fidelity (as far as i know).

    But enough bickering

    That would be very possible in java (i think). You can definately create the queues as necessary and assign them to implement some interface that allows packets to be sent to them. Then, based on the requirements of the router algorithms, send them back out accordingly.

    As for existing tools, i think you might have to design your own gui, but a google search wouldn't hurt. From what i've heard, netbeans has a fairly good GUI designer.
    Last edited by helloworld922; July 18th, 2009 at 02:17 PM.

  9. #7
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: JAVA simulator

    Indeed, should be possible to do that.

    Java offers bindings for OpenGL btw, I use those in my game making projects. There is definitely power in Java and 3D


    // Json

  10. #8
    Super Moderator helloworld922's Avatar
    Join Date
    Jun 2009
    Posts
    2,896
    Thanks
    23
    Thanked 619 Times in 561 Posts
    Blog Entries
    18

    Default Re: JAVA simulator

    ooh, now that's something i didn't know... time to start digging through the OpenGL API

  11. #9
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: JAVA simulator

    If you are interested have a looksie here

    JavaGaming.org - Index


    // Json