Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

looking for a graphical representation

 
Kevin Tysen
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • 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?
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Kevin Tysen
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic