summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaranjeiro2008-05-21 13:32:51 +0000
committerlaranjeiro2008-05-21 13:32:51 +0000
commit1a91fcdfc712ea7ca1a4c0d53982dd52c681e7f0 (patch)
tree12dea1ef63472ba2dd64e16f275cbc799b46e28b
parent6575868dca9153265eb2d01f2bf73caf711bea70 (diff)
cco_action: update.
* Added more comments in the source file. * Added more details in the association process to get a TEI in the specification. * Correct a word in the xmi file. git-svn-id: svn+ssh://pessac/svn/cesar/trunk@2045 017c9cb6-072f-447c-8318-d5b54f68fe89
-rw-r--r--cesar/cp2/cco/action/doc/cco_action.odtbin189267 -> 203194 bytes
-rw-r--r--cesar/cp2/cco/action/doc/cco_action.xmi62
-rw-r--r--cesar/cp2/cco/action/doc/tei.sdl17
-rw-r--r--cesar/cp2/cco/action/src/cco_action.c7
4 files changed, 48 insertions, 38 deletions
diff --git a/cesar/cp2/cco/action/doc/cco_action.odt b/cesar/cp2/cco/action/doc/cco_action.odt
index 12c75dc97c..ed0a3590cb 100644
--- a/cesar/cp2/cco/action/doc/cco_action.odt
+++ b/cesar/cp2/cco/action/doc/cco_action.odt
Binary files differ
diff --git a/cesar/cp2/cco/action/doc/cco_action.xmi b/cesar/cp2/cco/action/doc/cco_action.xmi
index 202c000b98..ad3bbf1ee9 100644
--- a/cesar/cp2/cco/action/doc/cco_action.xmi
+++ b/cesar/cp2/cco/action/doc/cco_action.xmi
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<XMI xmlns:UML="http://schema.omg.org/spec/UML/1.3" verified="false" timestamp="2008-05-15T15:34:33" xmi.version="1.2" >
+<XMI xmlns:UML="http://schema.omg.org/spec/UML/1.3" verified="false" timestamp="2008-05-21T15:43:17" xmi.version="1.2" >
<XMI.header>
<XMI.documentation>
<XMI.exporter>umbrello uml modeller http://uml.sf.net</XMI.exporter>
@@ -47,74 +47,74 @@
</UML:Package>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="BzDeGrof35i3" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="DvdWJL60hboR" aggregation="aggregate" type="AdYl289wjpBd" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ie0O5tFjDfub" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="8" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="PIGRVoQWdLhk" aggregation="aggregate" type="AdYl289wjpBd" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="DjXUjdEzH0Zj" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="8" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="DWwHbcINxulG" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="Hc7ttZI6Stam" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="FekwGYLwAKKF" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="6A9PNiJm0ZBV" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="Nbzzwej7LFb4" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="1" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="UODsawo5TGgC" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="DYwODp0SR7LK" aggregation="aggregate" type="AdYl289wjpBd" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="hbO7Vzrkdber" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="*" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="qn17nZqsjxH6" aggregation="aggregate" type="AdYl289wjpBd" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="faqdA16Vd5SX" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="*" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="c6v3mGeXVqXR" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="8ynII6WVeStr" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="FrJgzcyeENlh" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="hCf3PG5F27Kp" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="e8hN6zSlXIPf" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="T1xzpUO46GR3" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="MdRxC3pK1cbJ" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="g7mKXe9nVSTU" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="IVBvZdSGn7HA" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="MLNOShB4qtRw" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="8xImlyaBNYwN" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="3S6Hpqw9RN6d" aggregation="aggregate" type="AdYl289wjpBd" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="OtwQUXhAeUVB" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="qtfLA41SYAL5" aggregation="aggregate" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="nlJZrbjDw5ZM" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="fVlZqtZMrzdT" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="8ewb5Q48qANd" aggregation="aggregate" type="AdYl289wjpBd" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="yJkPeq12ixQC" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="mkQabpUPhAlr" aggregation="aggregate" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="CmHiuanhL7EC" aggregation="none" type="L2ASUCoHdFZ0" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="2uIgsGr4ejEG" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="U8M6cpFiSCHX" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="aLdQWy1UHlst" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="gwNc1wwlfKME" aggregation="aggregate" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="9qeo0PdB9st3" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="0UqhrhEJ8WDS" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ZtvHqMRISmM4" aggregation="aggregate" type="AdYl289wjpBd" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="bZk3l1YJLBhr" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="ShioovyUrM4s" aggregation="aggregate" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="GydtIx8PomCm" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="Vd6MhjybKlo7" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="7iJMT9F329Iq" aggregation="composite" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="Tk8vWSx52f9l" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="9pxGirHAYzwK" aggregation="composite" type="L2ASUCoHdFZ0" name="" multiplicity="1" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="utmjFqZTmBL4" aggregation="none" type="AdYl289wjpBd" name="" multiplicity="1" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="JD1yKqZUviuE" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="gf51pmqwV8Jw" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="HWzIfG880F3U" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="8TRuDdhKTeY9" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="VpH1oEJh75OK" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Association isSpecification="false" visibility="public" namespace="Logical View" xmi.id="Dv7QUbCmB2YY" name="" >
<UML:Association.connection>
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="fyZhdgTKMWJ9" aggregation="none" type="L2ASUCoHdFZ0" name="" />
- <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="I85lEMiTtflY" aggregation="none" type="AdYl289wjpBd" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="false" xmi.id="tylf76hFX9Ai" aggregation="none" type="L2ASUCoHdFZ0" name="" />
+ <UML:AssociationEnd isSpecification="false" visibility="public" changeability="changeable" isNavigable="true" xmi.id="kr0BTYKxNcyA" aggregation="none" type="AdYl289wjpBd" name="" />
</UML:Association.connection>
</UML:Association>
<UML:Class isSpecification="false" isLeaf="false" visibility="public" namespace="Logical View" xmi.id="L2ASUCoHdFZ0" isRoot="false" isAbstract="false" name="cp_cco_action_t" >
@@ -196,19 +196,19 @@ Lookup in the station a hole of TEIs. It no hole is found and no more STAs are a
<UML:Enumeration stereotype="enum" isSpecification="false" isLeaf="false" visibility="public" namespace="Logical View" xmi.id="iTyn7lva5s2U" isRoot="false" isAbstract="false" name="cc_assoc_cnf_result_t" >
<UML:EnumerationLiteral isSpecification="false" isLeaf="false" visibility="public" namespace="iTyn7lva5s2U" xmi.id="ufuBQKP6mNrt" isRoot="false" isAbstract="false" name="SUCCESS" />
<UML:EnumerationLiteral isSpecification="false" isLeaf="false" visibility="public" namespace="iTyn7lva5s2U" xmi.id="3ZQrpdViHOrh" isRoot="false" isAbstract="false" name="FAILURE_TEMPORARY_RESSOURCE_EXHAUSTION" />
- <UML:EnumerationLiteral isSpecification="false" isLeaf="false" visibility="public" namespace="iTyn7lva5s2U" xmi.id="DYZb2M95wYuj" isRoot="false" isAbstract="false" name="FAILURE_PERMANANT_RESSOURCE_EXHAUSTION" />
+ <UML:EnumerationLiteral isSpecification="false" isLeaf="false" visibility="public" namespace="iTyn7lva5s2U" xmi.id="DYZb2M95wYuj" isRoot="false" isAbstract="false" name="FAILURE_PERMANENT_RESSOURCE_EXHAUSTION" />
<UML:EnumerationLiteral isSpecification="false" isLeaf="false" visibility="public" namespace="iTyn7lva5s2U" xmi.id="HsihwnbZgPL4" isRoot="false" isAbstract="false" name="FAILURE_OTHER_REASON" />
</UML:Enumeration>
</UML:Namespace.ownedElement>
<XMI.extension xmi.extender="umbrello" >
<diagrams>
- <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" linewidth="0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="978" snapy="10" showatts="1" xmi.id="bZ62yFKbgidF" documentation="" type="1" showops="1" showpackage="0" name="diagramme de classes" localid="" showstereotype="0" showscope="1" snapcsgrid="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="853" >
+ <diagram snapgrid="0" showattsig="1" fillcolor="#ffffc0" linewidth="0" zoom="100" showgrid="0" showopsig="1" usefillcolor="1" snapx="10" canvaswidth="973" snapy="10" showatts="1" xmi.id="bZ62yFKbgidF" documentation="" type="1" showops="1" showpackage="0" name="diagramme de classes" localid="" showstereotype="0" showscope="1" snapcsgrid="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" canvasheight="844" >
<widgets>
- <classwidget usesdiagramfillcolor="0" width="395" showattsigs="601" x="73" fillcolor="#ffffc0" y="56" showopsigs="601" linewidth="none" height="224" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="L2ASUCoHdFZ0" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,75,0,0,0,0,0" linecolor="#ff0000" />
+ <classwidget usesdiagramfillcolor="0" width="395" showattsigs="601" x="73" fillcolor="#ffffc0" y="56" showopsigs="601" linewidth="none" height="224" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="L2ASUCoHdFZ0" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
<classwidget usesdiagramfillcolor="0" width="303" showattsigs="601" x="37" fillcolor="#ffffc0" y="586" showopsigs="601" linewidth="none" height="88" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="7z9AcGCqg0oV" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
<enumwidget usesdiagramfillcolor="0" width="203" x="86" fillcolor="#ffffc0" y="464" linewidth="none" height="64" usefillcolor="1" isinstance="0" xmi.id="LYg9EevkY5Yi" showpackage="0" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
<classwidget usesdiagramfillcolor="0" width="209" showattsigs="601" x="417" fillcolor="#ffffc0" y="594" showopsigs="601" linewidth="none" height="104" usefillcolor="1" showpubliconly="0" showattributes="1" isinstance="0" xmi.id="h7zBSqWEqMgp" showoperations="1" showpackage="0" showscope="1" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
- <enumwidget usesdiagramfillcolor="0" width="303" x="369" fillcolor="#ffffc0" y="448" linewidth="none" height="96" usefillcolor="1" isinstance="0" xmi.id="iTyn7lva5s2U" showpackage="0" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="#ff0000" />
+ <enumwidget usesdiagramfillcolor="0" width="303" x="369" fillcolor="#ffffc0" y="448" linewidth="none" height="96" usefillcolor="1" isinstance="0" xmi.id="iTyn7lva5s2U" showpackage="0" usesdiagramusefillcolor="0" font="Sans Serif,9,-1,5,75,1,0,0,0,0" linecolor="#ff0000" />
</widgets>
<messages/>
<associations>
@@ -217,14 +217,14 @@ Lookup in the station a hole of TEIs. It no hole is found and no more STAs are a
<startpoint startx="188" starty="586" />
<endpoint endx="187" endy="528" />
</linepath>
- <floatingtext usesdiagramfillcolor="1" width="100" x="189" fillcolor="none" y="530" linewidth="none" posttext="" role="710" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="4LSNu2n8xv0n" text="request_type" usesdiagramusefillcolor="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
+ <floatingtext usesdiagramfillcolor="1" width="100" x="189" fillcolor="none" y="530" linewidth="none" posttext="" role="710" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="lTFpXPAlnj95" text="request_type" usesdiagramusefillcolor="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
</assocwidget>
<assocwidget totalcounta="2" indexa="1" visibilityB="200" totalcountb="2" indexb="1" linewidth="none" widgetbid="iTyn7lva5s2U" widgetaid="h7zBSqWEqMgp" xmi.id="k6g55qVry99W" type="510" changeabilityA="900" changeabilityB="900" linecolor="none" visibilityA="200" >
<linepath>
<startpoint startx="521" starty="594" />
<endpoint endx="520" endy="544" />
</linepath>
- <floatingtext usesdiagramfillcolor="1" width="54" x="522" fillcolor="none" y="546" linewidth="none" posttext="" role="710" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="WBGxxfoc9IIk" text="result" usesdiagramusefillcolor="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
+ <floatingtext usesdiagramfillcolor="1" width="54" x="522" fillcolor="none" y="546" linewidth="none" posttext="" role="710" height="20" usefillcolor="1" pretext="+" isinstance="0" xmi.id="8lQ5tHhbMgmg" text="result" usesdiagramusefillcolor="1" font="Sans Serif,9,-1,5,50,0,0,0,0,0" linecolor="none" />
</assocwidget>
</associations>
</diagram>
diff --git a/cesar/cp2/cco/action/doc/tei.sdl b/cesar/cp2/cco/action/doc/tei.sdl
index 63b29b87dc..c372d320b0 100644
--- a/cesar/cp2/cco/action/doc/tei.sdl
+++ b/cesar/cp2/cco/action/doc/tei.sdl
@@ -1,9 +1,14 @@
(|TEI Managing|) -> |init counter of word|
-|init counter of word| -> |Get word TEI flag|
-|Get word TEI flag| -> <TEI available>
+|init counter of word| -> |Get first TEI flag word|
+|Get first TEI flag word| -> <TEI Available>
+
+<TEI Available> -yes-> |Set bit in flag TEI word|
+|Set bit in flag TEI word| -> |Return TEI|
+
+<TEI Available> -no-> <counter == max TEI flags Table>
+
+<counter == max TEI flags Table> -yes-> |Return 0|
+<counter == max TEI flags Table> -no-> |get next TEI flag word|
+|get next TEI flag word| -> <TEI Available>
-<TEI available> -yes-> |Set the bit in the flag|
-|Set the bit in the flag| -> |return TEI|
-<TEI available> -no-> |Get word TEI flag|
-<TEI available> -no more-> |return 0|
diff --git a/cesar/cp2/cco/action/src/cco_action.c b/cesar/cp2/cco/action/src/cco_action.c
index d02f92d106..6ff8038f5f 100644
--- a/cesar/cp2/cco/action/src/cco_action.c
+++ b/cesar/cp2/cco/action/src/cco_action.c
@@ -294,7 +294,7 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
cnf.sta_tei = cp_sta_get_tei (sta);
}
- else
+ else if (assoc.request_type == CC_ASSOC_REQ_TYPE_RENEW)
{
/* Renew the TEI. */
sta = cp_net_get_sta (net, assoc_req->mfs->common.tei);
@@ -315,6 +315,8 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
cnf.lease_time = 0;
}
}
+ else
+ dbg_assert (assoc.request_type == CC_ASSOC_REQ_MAX);
/* Finishing to fill the cnf context. */
cnf.nid = cp_net_get_nid (net);
@@ -334,6 +336,7 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
cc_set_tei_map_tx_t tei_map_info;
// Send unicast.
+ // It will send all the TEI MAP to the station just associated.
tei_map_info.type = CC_SET_TEI_MAP_TX_KIND_UNICAST;
tei_map_info.unicast.mode = CC_SET_TEI_MAP_MODE_ADD;
tei_map_info.unicast.tei = tei;
@@ -341,6 +344,8 @@ cp_cco_action_manage_sta_assoc (cp_t *ctx, cp_mme_rx_t * assoc_req)
cp_msg_cc_set_tei_map_ind_send (ctx, &tei_map_info);
// Send broadcast.
+ // Send the TEI and the Mac address of the station just associated to
+ // all the station of the network.
tei_map_info.type = CC_SET_TEI_MAP_TX_KIND_BROADCAST;
tei_map_info.broadcast.mode = CC_SET_TEI_MAP_MODE_ADD;
tei_map_info.broadcast.tei = tei;