• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Network Simulator For Beginners  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys,

I'm a Java beginners, I need your help in a simple network simulator project.
It's a pure java project where in graphical user interface
--I make one server and three clients,
-- the clients are connected to a server in star topology
--client send data to server which contain a queue (abstract class) to save data
--the server send them to the destination according to destination IP listed in the packet.
--there is a timer to calculate time for data packet to be sent from node to another

which you can help me
Thank you in advance,
 
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, and welcome to the ranch.

It generally works best around here if you ask specific, focused questions. As your post currently stand, it is WAY to broad to get any help, or really expect anyone to help you.

Where are you stuck? What have you tried? What do you know how to do, and what don't you know?
 
Tima Mk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really I don't understand the project very well.
so if you can give me a steps to start with.

Thank you,
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So this is a task you've been given to work on, maybe homework of some kind? If so, shouldn't the teacher be available for clarifications? If you're not sure what you're being asked to do, I see little hope in getting it done.
 
fred rosenberger
lowercase baba
Bartender
Posts: 12565
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tima Mk wrote:Really I don't understand the project very well.
so if you can give me a steps to start with.

Sure.

1) work to understand the project.

I am not trying to be flip. I am actually 100% serious. It is simply impossible to write a program if you don't understand what is needed, and understand it down to the most microscopic level.

There are ways to make it easier...

Break the problem down into discrete parts. Only work on one part at a time. Get it to work, and work REALLY well, before you consider doing anything else. Test a lot. Compile a lot. Only write a few lines before you re-compile and test.

Before you do any of that, get some paper, some pencils, and a large eraser. Write out what you think should happen in various scenarios. Don't worry about a GUI until you have it working on a command line.

Write a bunch of code you will eventually throw away - dummy procedures that don't REALLY do what you want, but simulate it. For example, if I were writing a calculator, I might write a method called "squareRoot". At first, I don't really care if it returns the correct value, I just want to be able to call it and have it return a number, so I may at first simply hard-code it to always return 1.2345 - that way I know it gets called, I know it ran, and i can test the other parts of my code that need it, without worrying about it computing the right value. That can always be put in later.

Having said ALL that...there are still a lot of things you may need help with. Do you have a JDK installed? Do you know how to compile a program? Do you know how to write a "Hello World" program? Do you know anything about OOP?

we have no idea where you are in your journey, so we cannot even being to give you specific advice yet.
 
Tima Mk
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you are right, I'm studying computer communication engineering, I took an OOP course before I'm working on netbeans software.
Our Teacher gave us this project about network simulator to do in two weeks.
I will take your advice into consideration and I will try to do it step by step.

Thank you for your help
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!