• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help with modifying code.

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
john mater
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic