Cascading updates [message #667245] |
Wed, 27 April 2011 15:24 |
Daniele Messages: 45 Registered: August 2010 |
Member |
|
|
Hi Graphiti,
I was wondering whether it is possible to have cascading updates for PE and BO or not.
Let me explain.
Suppose that I have a graph with nodes and links, where nodes have numbers and links convey simple operations + - * /
Suppose also that the PE for each node shows on the diagram the associated BO's number, and that it can be modified in the property panel (i.e., by modifying the BO).
Now, suppose that I have the simple graph:
A1 = 3
A2 = 5
A1 --(+)-> A
A2 --(-)-> A
A = -2
Which means that I have a graph with three nodes, in which the node A is calculated by using the node values A1, A2 and by considering the two operation links + and -.
Now what I want is that : When I change the values of A1 or A2 in the property panel, other than updating the PE of A1 or A2, the BO's number value of A is automatically updated as well as its PE.
Is there a way to notify and trigger a general algorithm (a class) which can propagated such a cascading update on all PE and BO elements belonging to the graph.
Thank you so much for you help!
Daniele
[Updated on: Wed, 27 April 2011 17:26] Report message to a moderator
|
|
|
Re: Cascading updates [message #667332 is a reply to message #667245] |
Thu, 28 April 2011 07:45 |
Michael Wenz Messages: 1931 Registered: July 2009 Location: Walldorf, Germany |
Senior Member |
|
|
Daniele,
that can be achieved by linking the PE for A with all relevant influencing
BOs (in the example A1 and A2). By doing that the update fetaure for A will
be triggered as soon as a A1 or A2 change. The update feature can then
calculate the display value anew. This is a kind of depends-on scenario,
where you would link a PE to all BOs that potentially influence it.
Another way would be to enhance the update features for A1 and A2 to follow
the outgoing dependencies and trigger updates for all linked PEs (or do the
update themselfes).
HTH,
Michael
"Daniele" wrote in message news:ip9c0f$pg6$1@news.eclipse.org...
Hi Graphiti,
I was wondering whether it is possible to have cascading updates for PE and
BO or not.
Let me explain.
Suppose that I have a graph with nodes and links, where nodes have numbers
and links have simple operations + - * /
Suppose also that the PE for each node shows the associated BO number on the
diagram and that can me modified in the property panel (i.e., by modifying
the BO).
Now, suppose that I have the simple graph:
A1 = 3
A2 = 5
A1 --(+)-> A
A2 --(-)-> A
A = -2
Which means that I have a graph with three nodes, where the node A is
calculated by using the node values A1, A2 and by considering the two
operation links + and -.
Now what I want is that : When I change the values of A1 or A2 in the
property panel, other than updates the PE of A1 or A2, the BO value of A is
automatically updated as well as its PE.
Is there a way for notify and trigger a general algorithm which can
propagated such a cascading updated on all the PE and BO elements in the
graph.
Thank you so much for you help!
Daniele
|
|
|
|
Powered by
FUDForum. Page generated in 0.03780 seconds