Please join us at the new JavaWorld Q&A Forums. Your existing login will work there. The discussions here are now read-only.


JavaWorld Talkback >> 958104

Pages: 1
Anonymous
Unregistered




Re: Ask the right questions in your sur
      #143 - 07/02/03 01:57 PM

I'm not sure why the author had to go with a 'hybrid' solution -- mixing hierarchical data structure with the relational. Wouldn't it be easier to simply implement the solution as a full blown hierarchical data structure? Something like the following:

<act:ActionList version='1.0' xmlns:act='http://www.good_thang.net/xmlns/ActionList'>
<act:Action type='Question'>
<act:Content value ='What type of vehicle did you purchase?'/>
<act:Explanation value='Pick your choice'/>
<act:AnswerList>
<act:Answer value='Car'/>
<act:Action type='Question'>
<act:Content value ='What type of car?'/>
<act:AnswerList>
<act:Answer value='Sport Coupe'/>
<act:Answer value='Sedan'/>
</act:AnswerList>
</act:Action>
<act:Answer value='Truck'/>
<act:Action type='Question'>
<act:Content value ='What type of truck?'/>
<act:AnswerList>
<act:Answer value='Pickup'/>
<act:Answer value='4x4'/>
</act:AnswerList>
</act:Action>
<act:Answer value='SUV'/>
<act:Action type='Question'>
<act:Content value ='What type of SUV?'/>
<act:AnswerList>
<act:Answer value='Ford Runner'/>
<act:Answer value='Passport'/>
<act:Answer value='Path Finder'/>
</act:AnswerList>
</act:Action>
</act:AnswerList>
</act:Action>
</act:ActionList>


Post Extras: Print Post   Remind Me!   Notify Moderator  
freytag
Unregistered




Re: Ask the right questions in your sur [Re: Anonymous]
      #214 - 07/09/03 03:39 PM

Using a heirarchical approach it would not be possible to skip over unneeded sections and then continue with the main thread of questioning. Consider for instance, filling out a tax return, where there are whole sections that are not needed for most tax-filers, but everyone needs to fill out a basic set of questions.

Although it is more complicated to form questions using the relational view, it is also more flexible.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Anonymous
Unregistered




Re: Ask the right questions in your sur [Re: freytag]
      #236 - 07/10/03 08:28 PM

Quote:

Using a heirarchical approach it would not be possible to skip over unneeded sections and then continue with the main thread of questioning. Consider for instance, filling out a tax return, where there are whole sections that are not needed for most tax-filers, but everyone needs to fill out a basic set of questions.

Although it is more complicated to form questions using the relational view, it is also more flexible.




You should use hierarchical approach to branch out to the portions that contain relevant information. That way, there is no need to skip anything. For example, if you ask the users to specify whether they are married or not, that decision is going to take them to the different section of the hierarchical document. Same holds for any other point where the questionaire branches out.

There should be no need to skip any portions, providing that the hierarchical structure is designed properly in the first place.


Post Extras: Print Post   Remind Me!   Notify Moderator  
psychobl
stranger


Reged: 09/16/03
Posts: 4
Re: Ask the right questions in your sur [Re: Anonymous]
      #2274 - 09/25/03 04:40 PM

Quote:

Quote:

Using a heirarchical approach it would not be possible to skip over unneeded sections and then continue with the main thread of questioning. Consider for instance, filling out a tax return, where there are whole sections that are not needed for most tax-filers, but everyone needs to fill out a basic set of questions.

Although it is more complicated to form questions using the relational view, it is also more flexible.




You should use hierarchical approach to branch out to the portions that contain relevant information. That way, there is no need to skip anything. For example, if you ask the users to specify whether they are married or not, that decision is going to take them to the different section of the hierarchical document. Same holds for any other point where the questionaire branches out.

There should be no need to skip any portions, providing that the hierarchical structure is designed properly in the first place.





A hierarchial structure will eventually become redundant and difficult to maintain. Consider the follow:
Type of vehichle
Car
Truck
Suv

Manufacturer of Truck:
Toyota
Dodge
Ford

Manufacturer of Car
Toyota
Dodge
Ford

Size of Dodge Truck
Dakota
Ram

Engine of Dodge Truck
4.7
5.9


The two trucks have the same availability for engines. No sense in reproducing an new set of questions for it. The Durango which is an SUV uses these engines as well. Think how far up the page you would have to go looking in an XML file to add the 4.7dual turbo charged engine with widgets attached. Theres many repetitions in questions and answers. Get too big and your going to have to reproduce the same questions over and over and over. I built a product selection application that is a basic questionaire. Heres the features you want and results in a product. Mine was quite a bit more abstracted than this of course. The questions and answers were all normalized. Add the questions. Add the answers. Drag and drop them together and you have a new question.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 1 anonymous users are browsing this forum.

Moderator:   

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 16151

Rate this topic

Jump to

Contact us JavaWorld

Powered by UBB.threads™ 6.5.5