[Simple-support] how to have a link to the parent
Brought to you by:
niallg
|
From: Benoît P. <ben...@un...> - 2008-03-12 15:19:43
|
Hi there! first of all thanks ... it's so simple! so simple that when I hit something, I can't help myself from thinking I've misread the doc. But after having read it twice, I still have this problem : I'm working on a simulation toolkit, companion of a multi-agent communication system. the toolkit involves configuring complex scenarios with xml. the structure of those config XML files looks like : simulation . platform . . agent . . . argument . . agent . . agent . population . . actor . . . profile . . . agent . . . . type . . . . classname . . . agent . scenario . . phase . . . agent . . . action . . phase ...you get the picture I successfully can deserialize this structure into a structure of corresponding objects, and the id-ref mechanism works like a charm. But I surely would need that AN OBJECT MAY ACCESS ITS PARENT in this object hierarchy. I naively though there'd be a @Parent annotation one may apply to a field (of type Object) to automatize linking to parent, but this don't exist. I could I generalize this linking to the parent object at deserialization time ? thanks, b. |