discovery-api/Overview.src.html
changeset 375 f290bbd84426
parent 374 07e931de937f
child 376 631133236bc9
     1.1 --- a/discovery-api/Overview.src.html	Mon Feb 04 15:24:33 2013 +0100
     1.2 +++ b/discovery-api/Overview.src.html	Mon Feb 04 15:52:32 2013 +0100
     1.3 @@ -483,6 +483,8 @@
     1.4              <li>Let <var>services manager</var> be a new <a href="#networkservices"><code>NetworkServices</code></a>
     1.5              object.
     1.6              </li>
     1.7 +            <li>Store <var>requested control types</var> against <var>services manager</var> as an internal variable.
     1.8 +            </li>
     1.9              <li>Set <var>services manager</var>'s <a href=
    1.10              "#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> attribute to the number of
    1.11              items currently found in the <a>list of available service records</a> whose <code>type</code> property
    1.12 @@ -1032,16 +1034,8 @@
    1.13          </li>
    1.14          <li>For each <var>service manager</var> in the <a>list of active service managers</a> run the following steps:
    1.15            <ol class="rule">
    1.16 -            <li>Let <var>'service type in current service manager' flag</var> be <code>false</code>.
    1.17 -            </li>
    1.18              <li>For each <var>active service</var> in <var>service manager</var> run the following steps:
    1.19                <ol class="rule">
    1.20 -                <li>If <var>network service record</var>'s <code>type</code> property does not equal <var>active
    1.21 -                service</var>'s <code>type</code> attribute then abort any remaining sub-steps for this <var>active
    1.22 -                service</var> and continue at the next available <var>active service</var>.
    1.23 -                </li>
    1.24 -                <li>Set the <var>'service type in current service manager' flag</var> to <code>true</code>.
    1.25 -                </li>
    1.26                  <li>If the <var>network service record</var>'s <code>id</code> property equals the <var>active
    1.27                  service</var>'s <code>id</code> attribute then set <var>active service</var>'s <a href=
    1.28                  "#dom-networkservice-online"><code>online</code></a> attribute to <code>true</code> and then <a href=
    1.29 @@ -1054,6 +1048,20 @@
    1.30                  </li>
    1.31                </ol>
    1.32              </li>
    1.33 +            <li>Let <var>'service type in current service manager' flag</var> be <code>false</code>.
    1.34 +            </li>
    1.35 +            <li>For each <var>requested control type</var> of the <var>requested control types</var> in <var>service
    1.36 +            manager</var> run the following steps:
    1.37 +              <ol class="rule">
    1.38 +                <li>If <var>network service record</var>'s <code>type</code> property does not equal <var>requested
    1.39 +                control type</var> then abort any remaining sub-steps and continue at the next available <var>requested
    1.40 +                control type</var>.
    1.41 +                </li>
    1.42 +                <li>Set the <var>'service type in current service manager' flag</var> to <code>true</code>, abort any
    1.43 +                remaining sub-steps and continue.
    1.44 +                </li>
    1.45 +              </ol>
    1.46 +            </li>
    1.47              <li>If the <var>'service type in current service manager' flag</var> is set to <code>true</code> then
    1.48              increment <var>service manager</var>'s <a href=
    1.49              "#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> attribute by <code>1</code> and
    1.50 @@ -1093,12 +1101,6 @@
    1.51                  </li>
    1.52                  <li>For each <var>active service</var> in <var>service manager</var> run the following steps:
    1.53                    <ol class="rule">
    1.54 -                    <li>If <var>existing service record</var>'s <code>type</code> property does not equal the
    1.55 -                    <var>active service</var>'s <code>type</code> attribute then abort any remaining sub-steps for this
    1.56 -                    <var>active service</var> and continue at the next available <var>active service</var>.
    1.57 -                    </li>
    1.58 -                    <li>Set the <var>'service type in current service manager' flag</var> to <code>true</code>.
    1.59 -                    </li>
    1.60                      <li>If <var>existing service record</var>'s <code>id</code> property equals the <var>active
    1.61                      service</var>'s <code>id</code> attribute and <var>active service</var>'s <a href=
    1.62                      "#dom-networkservice-online"><code>online</code></a> attribute is currently set to
    1.63 @@ -1113,6 +1115,18 @@
    1.64                      </li>
    1.65                    </ol>
    1.66                  </li>
    1.67 +                <li>For each <var>requested control type</var> of the <var>requested control types</var> in
    1.68 +                <var>service manager</var> run the following steps:
    1.69 +                  <ol class="rule">
    1.70 +                    <li>If <var>existing service record</var>'s <code>type</code> property does not equal
    1.71 +                    <var>requested control type</var> then abort any remaining sub-steps and continue at the next
    1.72 +                    available <var>requested control type</var>.
    1.73 +                    </li>
    1.74 +                    <li>Set the <var>'service type in current service manager' flag</var> to <code>true</code>, abort
    1.75 +                    any remaining sub-steps and continue.
    1.76 +                    </li>
    1.77 +                  </ol>
    1.78 +                </li>
    1.79                  <li>If the <var>'service type in current service manager' flag</var> is set to <code>true</code> then
    1.80                  decrement <var>service manager</var>'s <a href=
    1.81                  "#dom-networkservices-servicesavailable"><code>servicesAvailable</code></a> attribute by <code>1</code>