Example #1
0
        /** Set the L and U parts according to RabinColor c.
         * @param i The pair index
         * @param c the RabinColor
         */
        public void setColor(int i, RabinColor c)
        {
            switch (c)
            {
            case RabinColor.RABIN_RED:
                _U.set(i, true);
                _L.set(i, false);
                break;

            case RabinColor.RABIN_GREEN:
                _U.set(i, false);
                _L.set(i, true);
                break;

            case RabinColor.RABIN_WHITE:
                _U.set(i, false);
                _L.set(i, false);
                break;
            }
        }
Example #2
0
        /** Set the L and U parts according to RabinColor c.
         * @param i The pair index
         * @param c the RabinColor
         */
        public void setColor(int i, RabinColor c)
        {
            switch (c)
            {
            case RabinColor.RABIN_RED:
                _U.set(i, true);
                _L.set(i, false);
                break;

            case RabinColor.RABIN_GREEN:
                _U.set(i,  false);
                _L.set(i,  true);
                break;

            case RabinColor.RABIN_WHITE:
                _U.set(i, false);
                _L.set(i, false);
                break;
            }
        }