Update iso_tree diagram to the new Stream idea.

This commit is contained in:
Vreixo Formoso 2007-10-14 17:41:19 +02:00
parent 081c936c55
commit a61160c7eb
3 changed files with 246 additions and 398 deletions

View File

@ -191,8 +191,8 @@ the new files, thus it is suitable for a new session
</object> </object>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>1234.6589462905451</double> <double>1212.7956394939486</double>
<double>680.2741699796954</double> <double>697.0920982847697</double>
</void> </void>
</object> </object>
</void> </void>
@ -258,198 +258,12 @@ We don&apos;t show the several functions in Dir to manage the tree.</string>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>290.59037712396525</double> <double>290.59037712396525</double>
<double>9.859316379054512</double> <double>9.859316379054544</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode8" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text">
<string>FileSourceRegistry</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>663.3494218736668</double>
<double>707.2510088513307</double>
</void>
</object>
</void>
<void method="addNode">
<object id="NoteNode2" class="com.horstmann.violet.NoteNode">
<void property="text">
<void property="text">
<string>A source that read its data from an arbitrary file
descritor. size must be know in advance.</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>888.4680374315352</double>
<double>726.8792924010775</double>
</void>
</object>
</void>
<void method="addNode">
<object id="NoteNode3" class="com.horstmann.violet.NoteNode">
<void property="text">
<void property="text">
<string>The idea of the registry is to keep track
of sources for the same file (to implement
cache inodes, for exampe)</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>796.4629867976516</double>
<double>789.9797974644656</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode9" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text">
<string>TransformSource</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>465.9331463967205</double>
<double>595.4414715712101</double>
</void> </void>
</object> </object>
</void> </void>
<void method="addNode"> <void method="addNode">
<object id="InterfaceNode1" class="com.horstmann.violet.InterfaceNode"> <object id="InterfaceNode1" class="com.horstmann.violet.InterfaceNode">
<void property="methods">
<void property="text">
<string>get_size()
read()
open()
close()
is_repeatable()</string>
</void>
</void>
<void property="name">
<void property="text">
<string>«interface»
FileSource</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>685.9331463967205</double>
<double>410.4414715712108</double>
</void>
</object>
</void>
<void method="addNode">
<object id="NoteNode4" class="com.horstmann.violet.NoteNode">
<void property="text">
<void property="text">
<string>A Filter do a tranformation on a stream of data.
The main difference with TransformSources is that
a Filter can be applied to several sources.
NOTES:
- filter() method still to define
- A filter_changes_size() method can be useful
</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>350.5947306335493</double>
<double>803.951562474507</double>
</void>
</object>
</void>
<void method="addNode">
<object id="InterfaceNode2" class="com.horstmann.violet.InterfaceNode">
<void property="methods">
<void property="text">
<string>filter(in, out)</string>
</void>
</void>
<void property="name">
<void property="text">
<string>«interface»
Filter</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>274.0746933916357</double>
<double>694.5765090198104</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode10" class="com.horstmann.violet.ClassNode">
<void property="attributes">
<void property="text">
<string>size : off_t
block : uint32_t</string>
</void>
</void>
<void property="name">
<void property="text">
<string>PreviousImageSource</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>976.3688193543292</double>
<double>599.7669830819689</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode11" class="com.horstmann.violet.ClassNode">
<void property="attributes">
<void property="text">
<string>path : char*</string>
</void>
</void>
<void property="name">
<void property="text">
<string>LocalFileSource</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>674.5900006462128</double>
<double>602.9561901969712</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode12" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text">
<string>FilterSource</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>417.08326112068517</double>
<double>711.364573775316</double>
</void>
</object>
</void>
<void method="addNode">
<object id="InterfaceNode3" class="com.horstmann.violet.InterfaceNode">
<void property="name"> <void property="name">
<void property="text"> <void property="text">
<string>«interface» <string>«interface»
@ -467,68 +281,148 @@ DataSource</string>
<void method="addNode"> <void method="addNode">
<object class="com.horstmann.violet.PackageNode"> <object class="com.horstmann.violet.PackageNode">
<void method="addChild"> <void method="addChild">
<object idref="InterfaceNode2"/> <object id="InterfaceNode2" class="com.horstmann.violet.InterfaceNode">
<void property="name">
<void property="text">
<string>«interface»
Filters</string>
</void>
</void>
</object>
</void> </void>
<void property="name"> <void property="name">
<string>Filters</string> <string>filters</string>
</void> </void>
</object> </object>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>260.0</double> <double>260.0</double>
<double>660.0</double> <double>710.0</double>
</void> </void>
</object> </object>
</void> </void>
<void method="addNode"> <void method="addNode">
<object id="ClassNode13" class="com.horstmann.violet.ClassNode"> <object idref="InterfaceNode2"/>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>265.45434264405947</double>
<double>743.9994422711634</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode8" class="com.horstmann.violet.ClassNode">
<void property="name"> <void property="name">
<void property="text"> <void property="text">
<string>CutOutSource</string> <string>TransformStream</string>
</void> </void>
</void> </void>
</object> </object>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>533.842712474619</double> <double>486.9335577265969</double>
<double>706.7077195258237</double> <double>640.636302316303</double>
</void> </void>
</object> </object>
</void> </void>
<void method="addNode"> <void method="addNode">
<object id="NoteNode5" class="com.horstmann.violet.NoteNode"> <object id="ClassNode9" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text"> <void property="text">
<void property="text"> <string>CutOutStream</string>
<string>Reads the contents of local files, both
regular files, symlinks or block devices</string>
</void> </void>
</void> </void>
</object> </object>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>836.7472580451137</double> <double>555.9916340674516</double>
<double>493.8376618407349</double> <double>750.220757440409</double>
</void> </void>
</object> </object>
</void> </void>
<void method="addNode"> <void method="addNode">
<object id="ClassNode14" class="com.horstmann.violet.ClassNode"> <object id="InterfaceNode3" class="com.horstmann.violet.InterfaceNode">
<void property="attributes"> <void property="methods">
<void property="text"> <void property="text">
<string>fd : int <string>get_size()
size : off_t</string> read()
open()
close()
is_repeatable()</string>
</void> </void>
</void> </void>
<void property="name"> <void property="name">
<void property="text"> <void property="text">
<string>FdSource</string> <string>«interface»
Stream</string>
</void> </void>
</void> </void>
</object> </object>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>846.3431457505072</double> <double>688.5487814157467</double>
<double>599.1219330881966</double> <double>437.25152600545294</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode10" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text">
<string>FdStream</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>680.6673668471356</double>
<double>637.245696021424</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode11" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text">
<string>FileStream</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>828.9404615480411</double>
<double>642.40096597045</double>
</void>
</object>
</void>
<void method="addNode">
<object id="ClassNode12" class="com.horstmann.violet.ClassNode">
<void property="name">
<void property="text">
<string>FilteredStream</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>428.449880813367</double>
<double>747.5389646099015</double>
</void>
</object>
</void>
<void method="addNode">
<object id="InterfaceNode4" class="com.horstmann.violet.InterfaceNode">
<void property="name">
<void property="text">
<string>«interface»
SourceFile</string>
</void>
</void>
</object>
<object class="java.awt.geom.Point2D$Double">
<void method="setLocation">
<double>1000.6667341519202</double>
<double>639.0812755928229</double>
</void> </void>
</object> </object>
</void> </void>
@ -590,164 +484,6 @@ size : off_t</string>
<object idref="ClassNode6"/> <object idref="ClassNode6"/>
<object idref="ClassNode7"/> <object idref="ClassNode7"/>
</void> </void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode9"/>
<object idref="InterfaceNode1"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode11"/>
<object idref="InterfaceNode1"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode10"/>
<object idref="InterfaceNode1"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode10"/>
<object idref="InterfaceNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
<void property="endLabel">
<string>1</string>
</void>
<void property="startArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="BLACK_DIAMOND"/>
</void>
</object>
<object idref="ClassNode9"/>
<object idref="InterfaceNode1"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.NoteEdge"/>
<object idref="ClassNode8"/>
<object idref="NoteNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode11"/>
<object idref="ClassNode8"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode14"/>
<object idref="InterfaceNode1"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.NoteEdge"/>
<object idref="ClassNode14"/>
<object idref="NoteNode2"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.NoteEdge"/>
<object idref="ClassNode11"/>
<object idref="NoteNode5"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode13"/>
<object idref="ClassNode9"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode12"/>
<object idref="ClassNode9"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
</object>
<object idref="ClassNode12"/>
<object idref="InterfaceNode2"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.NoteEdge"/>
<object idref="InterfaceNode2"/>
<object idref="NoteNode4"/>
</void>
<void method="connect"> <void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge"> <object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="endArrowHead"> <void property="endArrowHead">
@ -761,21 +497,6 @@ size : off_t</string>
</void> </void>
</object> </object>
<object idref="ClassNode6"/> <object idref="ClassNode6"/>
<object idref="InterfaceNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
<void property="endLabel">
<string>1 src</string>
</void>
</object>
<object idref="ClassNode1"/>
<object idref="InterfaceNode1"/> <object idref="InterfaceNode1"/>
</void> </void>
<void method="connect"> <void method="connect">
@ -874,5 +595,131 @@ size : off_t</string>
<object idref="ClassNode2"/> <object idref="ClassNode2"/>
<object idref="ClassNode3"/> <object idref="ClassNode3"/>
</void> </void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode8"/>
<object idref="InterfaceNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode11"/>
<object idref="InterfaceNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
<void property="endLabel">
<string>1</string>
</void>
<void property="startArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="BLACK_DIAMOND"/>
</void>
</object>
<object idref="ClassNode8"/>
<object idref="InterfaceNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
<void property="lineStyle">
<object class="com.horstmann.violet.LineStyle" field="DOTTED"/>
</void>
</object>
<object idref="ClassNode10"/>
<object idref="InterfaceNode3"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode9"/>
<object idref="ClassNode8"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="VHV"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="TRIANGLE"/>
</void>
</object>
<object idref="ClassNode12"/>
<object idref="ClassNode8"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
</object>
<object idref="ClassNode12"/>
<object idref="InterfaceNode2"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
</object>
<object idref="ClassNode11"/>
<object idref="InterfaceNode4"/>
</void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
<void property="endLabel">
<string>1 src</string>
</void>
</object>
<object idref="ClassNode1"/>
<object idref="InterfaceNode3"/>
</void>
</object> </object>
</java> </java>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -292,17 +292,18 @@ to the contents of another stream.</string>
</object> </object>
</void> </void>
<void method="addNode"> <void method="addNode">
<object id="ClassNode8" class="com.horstmann.violet.ClassNode"> <object id="InterfaceNode2" class="com.horstmann.violet.InterfaceNode">
<void property="name"> <void property="name">
<void property="text"> <void property="text">
<string>SourceFile</string> <string>«interface»
SourceFile</string>
</void> </void>
</void> </void>
</object> </object>
<object class="java.awt.geom.Point2D$Double"> <object class="java.awt.geom.Point2D$Double">
<void method="setLocation"> <void method="setLocation">
<double>886.7119036079306</double> <double>920.6530291048848</double>
<double>251.73001410241085</double> <double>248.90158697766475</double>
</void> </void>
</object> </object>
</void> </void>
@ -465,18 +466,6 @@ to the contents of another stream.</string>
<object idref="ClassNode6"/> <object idref="ClassNode6"/>
<object idref="InterfaceNode1"/> <object idref="InterfaceNode1"/>
</void> </void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
</object>
<object idref="ClassNode1"/>
<object idref="ClassNode8"/>
</void>
<void method="connect"> <void method="connect">
<object class="com.horstmann.violet.NoteEdge"/> <object class="com.horstmann.violet.NoteEdge"/>
<object idref="InterfaceNode1"/> <object idref="InterfaceNode1"/>
@ -487,5 +476,17 @@ to the contents of another stream.</string>
<object idref="ClassNode1"/> <object idref="ClassNode1"/>
<object idref="NoteNode0"/> <object idref="NoteNode0"/>
</void> </void>
<void method="connect">
<object class="com.horstmann.violet.ClassRelationshipEdge">
<void property="bentStyle">
<object class="com.horstmann.violet.BentStyle" field="HVH"/>
</void>
<void property="endArrowHead">
<object class="com.horstmann.violet.ArrowHead" field="V"/>
</void>
</object>
<object idref="ClassNode1"/>
<object idref="InterfaceNode2"/>
</void>
</object> </object>
</java> </java>