MantisBT - JANA
View Issue Details
0000417JANAFeature Requestpublic2014-09-29 07:302015-06-01 15:54
davidl 
davidl 
normalminorN/A
resolvedfixed 
0000417: Add GetRecursive method to JObject
It would be useful to be able to ask JANA to not only search associated objects, by the associated objects of each associated object when looking for a specific type. e.g. asking a DBCALHit for the Df250PulseIntegral it is associated with.

Care would need to be taken not to run into an infinite loop. An optional parameter would probably also be needed to allow the caller to specify a maximum depth.
No tags attached.
Issue History
2014-09-29 07:30davidlNew Issue
2014-12-03 06:22davidlStatusnew => assigned
2014-12-03 06:22davidlAssigned To => davidl
2015-06-01 15:54davidlNote Added: 0000632
2015-06-01 15:54davidlStatusassigned => resolved
2015-06-01 15:54davidlResolutionopen => fixed

Notes
(0000632)
davidl   
2015-06-01 15:54   
This was added in revision 2322 and will appear in JANA 0.7.3. This was actually added to the already existing Get() method and an optional parameter added to that call to specify the maximum depth of associations to check. This is set to a very large number by default so that for practical purposes, all levels are checked. To get the original behavior of only checking direct descendants,, users must specify max_depth=1.