Meaningless Drivel is fun!*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 18108
    
  39

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
 
jQuery in Action, 2nd edition
 
subject: Help with modifying code.
 
Similar Threads
producer consumer thread with implementation of concurrent linked queue
Performance of ScheduledExecutor?
threading access
Producer-Consumer
Serialization problem: IOException in writeObject()