[Fwd: Re: Integrating Tree into FO tree handling]

2002-02-18 Thread Peter B. West

Bertrand Delacretaz wrote:

On Sunday 17 February 2002 06:07, Peter B. West wrote:

. . .
FOTree maintains the property stacks with the initial value, current
value and history of the properties being defined on elements of the
FO Tree.  It also implements Runnable, and its run() method is the
source of the FoTreeBuilder thread.  On construction, it is given a
SyncedCircularBuffer by means of which it receives event notification
from the parser.
. . .


Would this SyncedCircularBuffer help in propagating the events 
downstream from FoTreeBuilder to StructureRenderers? Or is is already 
implemented so in some experimental branch of the code?


Bertrand,

That's the idea.  The code is a general synchronised buffer.  It exists 
only in my own experimental code, available under 
.  The 
SyncedCircularBuffer is in datastructs, which also contains Tree.java. 
 To see it in operation, see apps/Driver.java and fo/FOTree.java.

Peter




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Integrating Tree into FO tree handling

2002-02-17 Thread Peter B. West

For those of you who were here when my Tree class was discussed, here is 
the latest on the integration of that datastructure into the expression 
of the FO Tree.

The initial structure is a Tree class with a member class Node.  (Node 
itself has a number of Iterator member classes.)  Class FOTree extends 
Tree, and so inherits an inner Node class.  That implicit inner Node 
class, i.e. FOTree.Node, is extended by FONode, which thereby inherits 
the implicit containing class FOTree.  Individual elements of the Fo 
Tree, starting with FoRoot, extend FONode, thereby also becoming member 
classes of FOTree.  At least, that's the way I understand this 
inheritance to work.

[  Tree[ .Node  ] ]
 |
 v
[ FOTree  ([ .Node  ])]
   |
   v
[(FOTree.) [ FONode ] ]
   |
   v
[(FOTree.) [ FoRoot ] ]
  etc


FOTree maintains the property stacks with the initial value, current 
value and history of the properties being defined on elements of the FO 
Tree.  It also implements Runnable, and its run() method is the source 
of the FoTreeBuilder thread.  On construction, it is given a 
SyncedCircularBuffer by means of which it receives event notification 
from the parser.

I'm in the process of building the layout-master-set, which will let me 
test the property parsing and the behaviour of the property stacks.

So far, so good.

Peter




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: Integrating Tree into FO tree handling

2002-02-17 Thread Bertrand Delacretaz

On Sunday 17 February 2002 06:07, Peter B. West wrote:
. . .
 FOTree maintains the property stacks with the initial value, current
 value and history of the properties being defined on elements of the
 FO Tree.  It also implements Runnable, and its run() method is the
 source of the FoTreeBuilder thread.  On construction, it is given a
 SyncedCircularBuffer by means of which it receives event notification
 from the parser.
. . .

Would this SyncedCircularBuffer help in propagating the events 
downstream from FoTreeBuilder to StructureRenderers? Or is is already 
implemented so in some experimental branch of the code?

-Bertrand

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]