Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Help with modifying code.

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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: 23879
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Let nothing stop you! Not even this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic