• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

looking for a graphical representation

 
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to think of a good way to represent graphically a logical framework.
Specifically, it's something like this:

Suppose you have some Strings A, B, C, D, E, F, and another String K which you want to evaluate.
You want to evaluate K like this:
K score is initially 0.
If K contains A or B, add 4 to the score.
If K contains C, add 10 to the score.
If K contains D, E, or F, add 5 to the score.

The program user wants to see a graphic representation of this logic.
I thought of two possible ways to represent this logic graphically.

One way is to put A through F on a table.
In the first row is the number 4, then A and B. In the second row is 10 and C, and in the third row is 5, D, E, and F.

Another way to represent this graphically is to put them in a JTree. The JTree has three nodes named '4', '10', and '5'.
The 4 node contains A and B, the 10 node contains C, and the 5 node contains D, E, and F.

Well, these are the two ways I thought of to represent the logic graphically. Any other ideas?
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
 
Kevin Tysen
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Wow, that is a nice program! Thank you. I'll take a close look at it and use some of the main ideas in the program.
 
Space pants. Tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic