Examples of removeValue()


Examples of org.jfree.data.category.DefaultCategoryDataset.removeValue()

        d.removeValue("R1", "C1");
        assertEquals(new Double(2.0), d.getValue(0, 0));

        boolean pass = false;
        try {
            d.removeValue(null, "C1");
        }
        catch (IllegalArgumentException e) {
            pass = true;
        }
        assertTrue(pass);
View Full Code Here

Examples of org.openqa.selenium.WebElement.removeValue()

            @Override
            public void onRequest() {
                final PListBox listBox2 = get("listBox2");
                listBox2.removeItem("Item 2");
                listBox2.removeItem(2);
                listBox2.removeValue(new Long(6));
            }
        });

        options2 = listBox2.findElements(By.tagName("option"));
View Full Code Here

Examples of org.rioproject.watch.Statistics.removeValue()

        Statistics stat = new Statistics(v);

        while (stat.count() > 0) {
            int i = (int) (Math.random() * stat.count());
            stat.removeValue(i);
            v.remove(i);
            Assert.assertEquals(v, stat.getValues());
        }
        assertClean(stat);

View Full Code Here

Examples of org.springframework.extensions.webscripts.WebScriptSession.removeValue()

  @SuppressWarnings("unchecked")
  public <T> T getFlashVariable(final String name) {
    final WebScriptSession session = request.getRuntime().getSession();
    final T value = (T) session.getValue(name);
    session.removeValue(name);
    return value;
  }
}
View Full Code Here

Examples of solver.variables.IntVar.removeValue()

                j = map.get(k);
                if (nodeSCC[i] != nodeSCC[j]) {
                    if (matching[i] == j) {
                        v.instantiateTo(k, aCause);
                    } else {
                        v.removeValue(k, aCause);
                        digraph.removeArc(i, j);
                    }
                }
            }
        }
View Full Code Here

Examples of solver.variables.IntVar.removeValue()

            if (!v.hasEnumeratedDomain()) {
                ub = v.getUB();
                for (int k = v.getLB(); k <= ub; k++) {
                    j = map.get(k);
                    if (!(digraph.arcExists(i, j) || digraph.arcExists(j, i))) {
                        v.removeValue(k, aCause);
                    }
                }
                int lb = v.getLB();
                for (int k = v.getUB(); k >= lb; k--) {
                    j = map.get(k);
View Full Code Here

Examples of solver.variables.IntVar.removeValue()

                }
                int lb = v.getLB();
                for (int k = v.getUB(); k >= lb; k--) {
                    j = map.get(k);
                    if (!(digraph.arcExists(i, j) || digraph.arcExists(j, i))) {
                        v.removeValue(k, aCause);
                    }
                }
            }
        }
    }
View Full Code Here

Examples of solver.variables.IntVar.removeValue()

    private void removeOnlyValues() throws ContradictionException {
        for (int i = both.nextSetBit(0); i >= 0; i = both.nextSetBit(i + 1)) {
            IntVar v = vars[i];
            if (v.hasEnumeratedDomain()) {
                for (int value : values) {
                    if (v.removeValue(value, aCause)) {
                        occs[i].add(-1);
                    }
                }
            } else {
                int lb = v.getLB();
View Full Code Here

Examples of solver.variables.IntVar.removeValue()

                // so first, find the first value inside dom(v)
                while (k1 < k2 && values[k1] < lb) {
                    k1++;
                }
                // and bottom-up shaving
                while (k1 <= k2 && v.removeValue(values[k1], aCause)) {
                    occs[i].add(-1);
                    k1++;
                }
                // then find the last value inside dom(v)
                while (k2 > k1 && values[k2] > ub) {
View Full Code Here

Examples of solver.variables.IntVar.removeValue()

                // then find the last value inside dom(v)
                while (k2 > k1 && values[k2] > ub) {
                    k2--;
                }
                // and top bottom shaving
                while (k2 >= k1 && v.removeValue(values[k2], aCause)) {
                    occs[i].add(-1);
                    k2--;
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.