Andreas L. Delmelle wrote:

public void addUnresolvedArea(String id, Resolvable res) {
  // add to the page viewport so it can serialize
  curPV.addUnresolvedIDRef(id, res);
  // add unresolved to tree
  areaTreeHandler.addUnresolvedIDRef(id, curPV);
}

I am wondering if it is actually necessary for us to store the idref's
in the PV for this serialization purpose--



I'm not sure either...
From this code-snippet, it looks like the actual Resolvable instance is
stored with the viewport, while the ATH indeed only seems to store the
'link' between the id and the current VP (the latter again as a Resolvable)

A closer look at ATH and PV shows that the two above steps are:
- add the unresolved area to the viewport
  stored in the VP as a Map id->List
  where the List contains references to the source
  areas (the link's hotspot, the page-number-citation...)
- add the unresolved area to the ATH
  stored here as a Map id->List
  where the List contains references to the pageVPs
  that have an unresolved area with a given id




OK, the comment in PSLM -- that the saving of the unresolvedIDRef in the PV is *purely* for serialization purposes--was misleading and incorrect. That is what caused my confusion. I updated the comment to clarify this.


Thanks,
Glen



Reply via email to