Przeglądaj źródła

ograniczenie wezlow z mozliwoscia dowiazaywania do poprzednich

a.binder 9 lat temu
rodzic
commit
44a96a0370
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      SE/dev/php-cli/edge_paths_with_PE_controll.xsl

+ 7 - 0
SE/dev/php-cli/edge_paths_with_PE_controll.xsl

@@ -501,6 +501,10 @@
                                                         <xsl:message>#534 there are PathsCrossed - allow to decrease -1</xsl:message>
                                                         <xsl:value-of select="0"/>
                                                     </xsl:when>
+                                                    <xsl:when test="$poprzednie_odpalam_liczenie_or_nie/poprzednie_odpalam_liczenie_or_nie"><!-- jak jest kolejny nr grupy to tez moze nie byc potrzebny wezel! -->
+                                                        <xsl:message>#505 Zakladamy, ze moze nie byc potrzebny wezel w tej grupie, bo jest poprzednia grupa w danych w tej petli!</xsl:message>
+                                                        <xsl:value-of select="0"/>
+                                                    </xsl:when>
                                                     <xsl:otherwise><xsl:value-of select="1"/></xsl:otherwise>
                                                 </xsl:choose>
                                             </xsl:variable>
@@ -623,6 +627,9 @@
             <xsl:choose>
                 <xsl:when test=" string-length($digits) &gt; number($max_bit)">
                     <xsl:choose>
+                        <xsl:when test="$variant = 0">
+                            <xsl:value-of select="$variant"/><!-- dla sprawdzenia wzajemnych relacji CrossWays -->
+                        </xsl:when>
                         <xsl:when test="$bit = $max_possible_bit">
                             <xsl:value-of select="$variant"/><!-- osiagnieto max -->
                             <xsl:message>#627 Osiagnieto MAX $bit<xsl:value-of select="$bit"/>; = $max_possible_bit=<xsl:value-of select="$max_possible_bit"/>;</xsl:message>