|
-
April 10th, 2003, 12:51 AM
#1
I am stuck up in this problem.........I am stuck up in the project....Plz help...
Define the classes to be able to construct a 'solid box' with 6 'planes'. No geometry at this point.
----SO I CREATED A CLASS TO STORE 6 VALUES. EACH CORRESPONDING TO 1 PLANE.
Define a class structure to implement a channel connection between the solid box and its planes. A ‘channel’ is a logical ‘connection’ between two objects. Simplest implementation of a channel is that each object stores a pointer to the other object in its instance data. This storage of mutual pointers should be viewed as a ‘connection’. If this implementation were to be abstracted then one could call it a logical ‘channel’ using which the two objects communicate with each other. The channel protocol should be externalized so that any object should be able to use it by embedding an object of the channel class in its own instance data.
The implementation should be such that the planes are not directly accessed after construction. They should be accessed only through the solid object via the channel.
-----NOW HERE I NEED TO CREATE A LINKED LIST BUT I AM NOT GETTING HOW TO CREATE CHANNEL CLASS THAT WHEN EMBEDDED CREATES THE LIST. AND ALSO THE PLANES ARE TO BE ACCESSED VIA CHANNEL CONNECTION. HOW CAN THIS BE DONE ?
-
April 10th, 2003, 01:01 AM
#2
Re: I am stuck up in this problem.........I am stuck up in the project....Plz help...
Originally posted by nikhil_mech
NOW HERE I NEED TO CREATE A LINKED LIST
Curious. What would be the purpose of the linked list in this scenario?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|