Examples of push()


Examples of org.sat4j.core.VecInt.push()

      /* PB constraints to enforce assignment of exactly one color. */
      for (int i = 0; i < numberOfVertices; i++) {
        IVecInt literals = new VecInt(colors);
        IVec<BigInteger> coefficients = new Vec<BigInteger>(colors);
        for (int j = 1; j <= colors; j++) {
          literals.push(i * colors + j);
          coefficients.push(BigInteger.ONE);
        }
        solver.addPseudoBoolean(literals, coefficients, false,
            BigInteger.ONE);
        solver.addPseudoBoolean(literals, coefficients, true,

Examples of org.sat4j.specs.IVecInt.push()

      /* PB constraints to enforce assignment of exactly one color. */
      for (int i = 0; i < numberOfVertices; i++) {
        IVecInt literals = new VecInt(colors);
        IVec<BigInteger> coefficients = new Vec<BigInteger>(colors);
        for (int j = 1; j <= colors; j++) {
          literals.push(i * colors + j);
          coefficients.push(BigInteger.ONE);
        }
        solver.addPseudoBoolean(literals, coefficients, false,
            BigInteger.ONE);
        solver.addPseudoBoolean(literals, coefficients, true,

Examples of org.springframework.beans.factory.parsing.ParseState.push()

  public void testSimple() throws Exception {
    MockEntry entry = new MockEntry();

    ParseState parseState = new ParseState();
    parseState.push(entry);
    assertEquals("Incorrect peek value.", entry, parseState.peek());
    parseState.pop();
    assertNull("Should get null on peek()", parseState.peek());
  }

Examples of org.teavm.common.IntegerStack.push()

            return;
        }
        InstructionTransitionExtractor transitionExtractor = new InstructionTransitionExtractor();
        boolean[] reachable = new boolean[program.basicBlockCount()];
        IntegerStack stack = new IntegerStack(program.basicBlockCount());
        stack.push(0);
        while (!stack.isEmpty()) {
            int i = stack.pop();
            if (reachable[i]) {
                continue;
            }

Examples of org.teiid.query.optimizer.relational.RuleStack.push()

    public void testPopOneRule() {
        RuleStack stack = new RuleStack();
        int expectedSize = stack.size();
       
        OptimizerRule rule = new RulePushSelectCriteria();
        stack.push(rule);
       
        helpTestPop(stack, rule, expectedSize);
    }

    public void testPopNothing() {

Examples of org.testng.reporters.XMLStringBuffer.push()

    }
    if (null != m_annotations) {
      p.setProperty("annotations", m_annotations.toString());
    }
   
    xsb.push("test", p);
   
   
    if (null != getMethodSelectors() && !getMethodSelectors().isEmpty()) {
      xsb.push("method-selectors");
      for (XmlMethodSelector selector: getMethodSelectors()) {

Examples of org.thechiselgroup.choosel.core.client.util.math.NumberArray.push()

        for (Resource resource : resources) {
            // TODO, what happens if this is null, should that be possible,
            // should it not show those resources
            // TODO also what is used by default and does that make sense
            // TODO but what would happen to number array if slot was missing
            numberArray.push((Double) resource.getValue(property));
        }

        return numberArray;
    }

Examples of org.zeromq.ZMsg.push()

            else
            if (command.equals("REQUEST")) {
                assert (request == null);    //  Strict request-reply cycle
                //  Prefix request with sequence number and empty envelope
                String sequenceText = String.format("%d", ++sequence);
                msg.push(sequenceText);
                //  Take ownership of request message
                request = msg;
                msg = null;
                //  Request expires after global timeout
                expires = System.currentTimeMillis() + GLOBAL_TIMEOUT;

Examples of pt.opensoft.logging.Logger.push()

    String resourceName = getResourceName();
    long resourceTimeout = parameters.getLongValue("resource." + resourceName + ".resourceTimeout");
    resource = resourceManager.get(resourceName, resourceTimeout);

    Logger resourceLogger = actionWrapper.getLogger().getWrapper();
    resourceLogger.push(resourceName + "|" + resource.getId());

    actionWrapper.getLogger().push(resourceName + "|" + resource.getId());
    mustPop = true;

    afectActionWithResource(resource, resourceLogger, actionWrapper);

Examples of ptolemy.kernel.undo.UndoStackAttribute.push()

                // the model is running.
                MoMLUndoEntry newEntry = new MoMLUndoEntry(toplevel,
                        finalUndoMoML);
                UndoStackAttribute undoInfo = UndoStackAttribute
                        .getUndoInfo(toplevel);
                undoInfo.push(newEntry);
            }
        };

        toplevel.requestChange(request);
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.