# looking for a graphical representation

Kevin Tysen

Ranch Hand

Posts: 255

posted 6 years ago

- 0

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?

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?