Bug 291522 - Derived root action
Summary: Derived root action
Status: RESOLVED FIXED
Alias: None
Product: AMP (ARCHIVED)
Classification: Modeling
Component: AMF (show other bugs)
Version: 0.8.0   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: M2   Edit
Assignee: Miles Parker CLA
QA Contact: Miles Parker CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 291254
  Show dependency tree
 
Reported: 2009-10-06 14:20 EDT by Miles Parker CLA
Modified: 2010-06-16 20:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Parker CLA 2009-10-06 14:20:42 EDT
I'd like to add a new type of Root Action to the mix. This would be a "Derived" action. The idea here is that the value would be calculated IFF it was needed for some other usage. These would be defined like any other rule, with setters at the leaves for the derived value attributes. But all such attributes would be marked as "derived", meaning that they could *not* have their values set from any other rule. The idea here is that these attributes would typically be implemented as getter methods and the values would not need to be stored as state. OTOH, codegen implementations would be free to implement caching and other (say inference based) performance schemes to handle situations where values might be frequently calculate or accessed. This would make a lot of common constructs much simpler to maintain and most importantly would provide an elegant way to support derived output statistics and the like that might not be relevant to the actual model execution. (Of course, there would be cases where they would be.) Since these could be inferred by usage, they could then be optimized entirely out of runtime code for high-performance cases.
Comment 1 Miles Parker CLA 2010-06-16 20:34:27 EDT
Completed, including editing support.
Comment 2 Miles Parker CLA 2010-06-16 20:35:14 EDT
...