| 1 |
<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 |
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd"> |
| 3 |
<!--Created by yEd 3.18--> |
| 4 |
<key attr.name="Description" attr.type="string" for="graph" id="d0"/> |
| 5 |
<key for="port" id="d1" yfiles.type="portgraphics"/> |
| 6 |
<key for="port" id="d2" yfiles.type="portgeometry"/> |
| 7 |
<key for="port" id="d3" yfiles.type="portuserdata"/> |
| 8 |
<key attr.name="url" attr.type="string" for="node" id="d4"/> |
| 9 |
<key attr.name="description" attr.type="string" for="node" id="d5"/> |
| 10 |
<key for="node" id="d6" yfiles.type="nodegraphics"/> |
| 11 |
<key for="graphml" id="d7" yfiles.type="resources"/> |
| 12 |
<key attr.name="url" attr.type="string" for="edge" id="d8"/> |
| 13 |
<key attr.name="description" attr.type="string" for="edge" id="d9"/> |
| 14 |
<key for="edge" id="d10" yfiles.type="edgegraphics"/> |
| 15 |
<graph edgedefault="directed" id="G"> |
| 16 |
<data key="d0"/> |
| 17 |
<node id="n0" yfiles.foldertype="group"> |
| 18 |
<data key="d6"> |
| 19 |
<y:ProxyAutoBoundsNode> |
| 20 |
<y:Realizers active="0"> |
| 21 |
<y:GenericGroupNode configuration="PanelNode"> |
| 22 |
<y:Geometry height="361.625" width="320.0" x="195.0" y="81.375"/> |
| 23 |
<y:Fill color="#68B0E3" transparent="false"/> |
| 24 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 25 |
<y:NodeLabel alignment="right" autoSizePolicy="node_width" borderDistance="0.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="22.625" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#FFFFFF" verticalTextPosition="bottom" visible="true" width="320.0" x="0.0" y="0.0">Handler</y:NodeLabel> |
| 26 |
<y:StyleProperties> |
| 27 |
<y:Property class="java.awt.Color" name="headerBackground" value="#68b0e3"/> |
| 28 |
</y:StyleProperties> |
| 29 |
<y:State autoResize="true" closed="false" closedHeight="50.0" closedWidth="50.0"/> |
| 30 |
<y:Insets bottom="15" bottomF="15.0" left="15" leftF="15.0" right="15" rightF="15.0" top="15" topF="15.0"/> |
| 31 |
<y:BorderInsets bottom="0" bottomF="0.0" left="0" leftF="0.0" right="0" rightF="0.0" top="0" topF="0.0"/> |
| 32 |
</y:GenericGroupNode> |
| 33 |
<y:GenericGroupNode configuration="PanelNode"> |
| 34 |
<y:Geometry height="50.0" width="50.0" x="204.0" y="87.0"/> |
| 35 |
<y:Fill color="#68B0E3" transparent="false"/> |
| 36 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 37 |
<y:NodeLabel alignment="right" autoSizePolicy="node_width" borderDistance="0.0" fontFamily="Dialog" fontSize="16" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="22.625" horizontalTextPosition="center" iconTextGap="4" modelName="internal" modelPosition="t" textColor="#FFFFFF" verticalTextPosition="bottom" visible="true" width="50.0" x="0.0" y="0.0">4</y:NodeLabel> |
| 38 |
<y:StyleProperties> |
| 39 |
<y:Property class="java.awt.Color" name="headerBackground" value="#68b0e3"/> |
| 40 |
</y:StyleProperties> |
| 41 |
<y:State autoResize="true" closed="true" closedHeight="50.0" closedWidth="50.0"/> |
| 42 |
<y:Insets bottom="15" bottomF="15.0" left="15" leftF="15.0" right="15" rightF="15.0" top="15" topF="15.0"/> |
| 43 |
<y:BorderInsets bottom="0" bottomF="0.0" left="0" leftF="0.0" right="0" rightF="0.0" top="0" topF="0.0"/> |
| 44 |
</y:GenericGroupNode> |
| 45 |
</y:Realizers> |
| 46 |
</y:ProxyAutoBoundsNode> |
| 47 |
</data> |
| 48 |
<graph edgedefault="directed" id="n0:"> |
| 49 |
<node id="n0::n0"> |
| 50 |
<data key="d6"> |
| 51 |
<y:GenericNode configuration="BevelNodeWithShadow"> |
| 52 |
<y:Geometry height="156.0" width="290.0" x="210.0" y="119.0"/> |
| 53 |
<y:Fill color="#FF9900" transparent="false"/> |
| 54 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 55 |
<y:NodeLabel alignment="left" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="115.75" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="239.810546875" x="25.0947265625" y="20.125">V-Table: |
| 56 |
data_in ( msg ) |
| 57 |
data_out ( msg, promise, promise_user_data ) |
| 58 |
update_window ( window_size ) |
| 59 |
shutdown_notify ( error ) |
| 60 |
shutdown_direction ( direction ) |
| 61 |
initial_window_size () |
| 62 |
destroy ( )<y:LabelModel> |
| 63 |
<y:SmartNodeLabelModel distance="4.0"/> |
| 64 |
</y:LabelModel> |
| 65 |
<y:ModelParameter> |
| 66 |
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> |
| 67 |
</y:ModelParameter> |
| 68 |
</y:NodeLabel> |
| 69 |
</y:GenericNode> |
| 70 |
</data> |
| 71 |
</node> |
| 72 |
<node id="n0::n1"> |
| 73 |
<data key="d6"> |
| 74 |
<y:GenericNode configuration="BevelNodeWithShadow"> |
| 75 |
<y:Geometry height="50.0" width="142.0" x="210.0" y="287.0"/> |
| 76 |
<y:Fill color="#FF9900" transparent="false"/> |
| 77 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 78 |
<y:NodeLabel alignment="left" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="31.9375" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="69.607421875" x="36.1962890625" y="9.03125">Data: |
| 79 |
void *state |
| 80 |
<y:LabelModel> |
| 81 |
<y:SmartNodeLabelModel distance="4.0"/> |
| 82 |
</y:LabelModel> |
| 83 |
<y:ModelParameter> |
| 84 |
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> |
| 85 |
</y:ModelParameter> |
| 86 |
</y:NodeLabel> |
| 87 |
</y:GenericNode> |
| 88 |
</data> |
| 89 |
</node> |
| 90 |
<node id="n0::n2"> |
| 91 |
<data key="d6"> |
| 92 |
<y:GenericNode configuration="BevelNode2"> |
| 93 |
<y:Geometry height="79.0" width="234.0" x="210.0" y="349.0"/> |
| 94 |
<y:Fill color="#FF9900" transparent="false"/> |
| 95 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 96 |
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="59.875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="225.19140625" x="4.404296875" y="9.5625">Back Channel APIs (Optional) |
| 97 |
|
| 98 |
These are usually interacting with |
| 99 |
an event loop or an application layer<y:LabelModel> |
| 100 |
<y:SmartNodeLabelModel distance="4.0"/> |
| 101 |
</y:LabelModel> |
| 102 |
<y:ModelParameter> |
| 103 |
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> |
| 104 |
</y:ModelParameter> |
| 105 |
</y:NodeLabel> |
| 106 |
</y:GenericNode> |
| 107 |
</data> |
| 108 |
</node> |
| 109 |
</graph> |
| 110 |
</node> |
| 111 |
<node id="n1"> |
| 112 |
<data key="d6"> |
| 113 |
<y:GenericNode configuration="BevelNode3"> |
| 114 |
<y:Geometry height="96.0" width="327.0" x="567.5" y="119.0"/> |
| 115 |
<y:Fill color="#FF9900" transparent="false"/> |
| 116 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 117 |
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="73.84375" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="198.625" x="64.1875" y="11.078125">send_message () |
| 118 |
|
| 119 |
The slot will manage passing |
| 120 |
the message to the appropriate |
| 121 |
handler<y:LabelModel> |
| 122 |
<y:SmartNodeLabelModel distance="4.0"/> |
| 123 |
</y:LabelModel> |
| 124 |
<y:ModelParameter> |
| 125 |
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> |
| 126 |
</y:ModelParameter> |
| 127 |
</y:NodeLabel> |
| 128 |
</y:GenericNode> |
| 129 |
</data> |
| 130 |
</node> |
| 131 |
<node id="n2"> |
| 132 |
<data key="d6"> |
| 133 |
<y:GenericNode configuration="BevelNode3"> |
| 134 |
<y:Geometry height="99.0" width="458.0" x="567.5" y="238.0"/> |
| 135 |
<y:Fill color="#FF9900" transparent="false"/> |
| 136 |
<y:BorderStyle hasColor="false" type="line" width="1.0"/> |
| 137 |
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="59.875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="413.166015625" x="22.4169921875" y="19.5625">Slot update_window(), shutdown_notify(), shutdown_direction() |
| 138 |
|
| 139 |
These are functions only for the handler, the channel will propogate |
| 140 |
to the appropriate handler<y:LabelModel> |
| 141 |
<y:SmartNodeLabelModel distance="4.0"/> |
| 142 |
</y:LabelModel> |
| 143 |
<y:ModelParameter> |
| 144 |
<y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/> |
| 145 |
</y:ModelParameter> |
| 146 |
</y:NodeLabel> |
| 147 |
</y:GenericNode> |
| 148 |
</data> |
| 149 |
</node> |
| 150 |
<edge id="e0" source="n0::n0" target="n1"> |
| 151 |
<data key="d10"> |
| 152 |
<y:ArcEdge> |
| 153 |
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"> |
| 154 |
<y:Point x="537.4027709960938" y="111.84818267822266"/> |
| 155 |
</y:Path> |
| 156 |
<y:LineStyle color="#000000" type="line" width="1.0"/> |
| 157 |
<y:Arrows source="none" target="standard"/> |
| 158 |
<y:Arc height="70.374755859375" ratio="0.7462959289550781" type="fixedRatio"/> |
| 159 |
</y:ArcEdge> |
| 160 |
</data> |
| 161 |
</edge> |
| 162 |
<edge id="e1" source="n0::n0" target="n2"> |
| 163 |
<data key="d10"> |
| 164 |
<y:ArcEdge> |
| 165 |
<y:Path sx="0.0" sy="0.0" tx="0.0" ty="0.0"> |
| 166 |
<y:Point x="578.6253662109375" y="228.22267150878906"/> |
| 167 |
</y:Path> |
| 168 |
<y:LineStyle color="#000000" type="line" width="1.0"/> |
| 169 |
<y:Arrows source="none" target="standard"/> |
| 170 |
<y:Arc height="14.318999290466309" ratio="0.12708793580532074" type="fixedRatio"/> |
| 171 |
</y:ArcEdge> |
| 172 |
</data> |
| 173 |
</edge> |
| 174 |
</graph> |
| 175 |
<data key="d7"> |
| 176 |
<y:Resources/> |
| 177 |
</data> |
| 178 |
</graphml> |