Examples of startBlock()


Examples of avrora.util.Printer.startblock()

        ControlFlowGraph cfg = p.getCFG();
        Iterator i = cfg.getSortedBlockIterator();
        while (i.hasNext()) {
            ControlFlowGraph.Block b = (ControlFlowGraph.Block)i.next();
            printer.startblock("block starting at: " + StringUtil.addrToString(b.getAddress()));
            DBBC.CodeBlock code = dbbc.getCodeBlock(b.getAddress());
            if (code != null) {
                printer.println("// worst case execution time = " + code.wcet + " cycles");
                pp.visitStmtList(code.stmts);
            } else {
View Full Code Here

Examples of avrora.util.Printer.startblock()

        if ("".equals(fname = FILE.get()))
            p = Printer.STDOUT;
        else
            p = new Printer(new PrintStream(new FileOutputStream(fname)));

        p.startblock("digraph G");

        if (COLOR_PROCEDURES.get() ||
                GROUP_PROCEDURES.get() ||
                COLLAPSE_PROCEDURES.get())
            pmap = cfg.getProcedureMap();
View Full Code Here

Examples of com.clarkparsia.owlapi.explanation.io.manchester.TextBlockWriter.startBlock()

      for( OWLAxiom axiom : nonEntailments ) {
        writer.print(index++);
        writer.print(")");
        writer.printSpace();

        writer.startBlock();
        axiom.accept( renderer );
        writer.endBlock();
        writer.println();
            }
      writer.flush();
View Full Code Here

Examples of com.overzealous.remark.util.BlockWriter.startBlock()

    // keep track of where we are in the list.
    int listCounter = 1;

    // we need to store this, because we're going to replace it for each li below (for padding).
    BlockWriter parentWriter = converter.output;
    parentWriter.startBlock();
    for(final Element child : node.children()) {
      // handle linebreaks between li's
      if(first) {
        first = false;
      } else {
View Full Code Here

Examples of com.overzealous.remark.util.BlockWriter.startBlock()

     * To do this, we wrap the whole thing in a start/end block. Then,
     * every time we come across a dt, we end a block and start a new one.
     * The only exception to this rule is if the first node we come to is
     * a dt - then we don't do anything.
     */
    parentWriter.startBlock();
    for(final Element child : node.children()) {

      if(child.tagName().equals("dt")) {
        // print term
        if(first) {
View Full Code Here

Examples of com.overzealous.remark.util.BlockWriter.startBlock()

          // the first node is a term, so we already started a block.
          first = false;
        } else {
          // add block separation between defs and next term.
          parentWriter.endBlock();
          parentWriter.startBlock();
        }
        converter.walkNodes(this, child, converter.inlineNodes);
        parentWriter.println();
        lastNodeWasDD = false;
View Full Code Here

Examples of com.overzealous.remark.util.BlockWriter.startBlock()

   * @param converter Parent converter for this object.
   */
  public void handleNode(NodeHandler parent, Element node, DocumentConverter converter) {
    int depth = Integer.parseInt(node.tagName().substring(1, 2));
    BlockWriter out = converter.output;
    out.startBlock();
    StringUtils.multiply(out, '#', depth);
    out.print(' ');
    out.print(converter.getInlineContent(this, node).replace("\n", " "));
    out.print(' ');
    StringUtils.multiply(out, '#', depth);
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.test.steps.BlockSemaphoreStep.startBlock()

        assertTrue(String.valueOf(n), n instanceof FlowStartNode);
        n = l.next();
        assertTrue(n instanceof BlockStartNode);
        n = l.next();
        assertTrue(n instanceof BlockStartNode);
        block.startBlock();
        step.success(null);
        n = l.next();
        assertTrue(n instanceof AtomNode);
        assertEquals(null, block.waitForBlock());
        block.finishSuccess(null);
View Full Code Here

Examples of org.jenkinsci.plugins.workflow.test.steps.BlockSemaphoreStep.startBlock()

        SemaphoreStep step = new SemaphoreStep();
        BlockSemaphoreStep block = new BlockSemaphoreStep();
        final AtomicReference<FlowExecution> exec = new AtomicReference<FlowExecution>();
        exec.set(new STMFlowDefinition(Arrays.<State>asList(new BlockState("block", STMExecution.END, block, "step"), new StepState("step", STMExecution.END, step))).create(new OwnerImpl(exec, tmp), Collections.<Action>emptyList()));
        exec.get().start();
        block.startBlock(new Thing(17));
        Thing t = step.getContext().get(Thing.class);
        assertNotNull(t);
        assertEquals(17, t.number);
        exec.set(reserialize(exec.get()));
        step = reserialize(step);
View Full Code Here

Examples of parquet.hadoop.ParquetFileWriter.startBlock()

    ParquetFileWriter w = new ParquetFileWriter(configuration, schema, path);
    w.start();
    HashMap<String, Integer> columnValuesWritten = new HashMap();
    int valsWritten;
    for (int k = 0; k < numberRowGroups; k++) {
      w.startBlock(1);
      currentBooleanByte = 0;
      booleanBitCounter.reset();

      for (FieldInfo fieldInfo : fields.values()) {
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.