File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Help with modifying code. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help with modifying code." Watch "Help with modifying code." New topic
Author

Help with modifying code.

john mater
Greenhorn

Joined: May 08, 2009
Posts: 23
Modify the code to add a second Physical Layer object to represent a return path for messages. Write the code for a new class called Echo which loops indefinitely, receiving and then transmitting messages between the two Physical Layers.




















I know this is a lot of code. am not looking for the answer just want a push in the right direction with this, how do I go about the task?

Thanks
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18896
    
  40

john mater wrote:Modify the code to add a second Physical Layer object to represent a return path for messages. Write the code for a new class called Echo which loops indefinitely, receiving and then transmitting messages between the two Physical Layers.


Sometimes in working with a project (or domain), you get into project specific (or domain specific) terminology. It is generally a good idea to not allow this terminology to leak out -- because quite frankly, most people not working on the project (or in your domain) will have no idea what you are actually talking about.

I read the topic three times, and don't have any idea what you are asking. Tossing in a wad of code doesn't help either.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
john mater
Greenhorn

Joined: May 08, 2009
Posts: 23
Ok Henry thanks,

I'm really confused but i'll try and explain it as I see it without any terminology.

PhysicalLayer class has a delayedQueue that sends using a thread the elements(DPDU) of this queue to the consumer via the class datalink layer , What I need to do is to create a class echo that loops the elements of the queue so that the elements of the queue are sent to a new class PhysicalLayer2

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help with modifying code.