Package hu.sztaki.ilab.longneck.process.block

Examples of hu.sztaki.ilab.longneck.process.block.Block.apply()


                                new ExecutionFrame((CompoundBlock) currentBlock, currentFrame);
                        kernelState.addLastExecutionFrame(childFrame);
                        currentFrame = childFrame;

                        // Apply block changes
                        currentBlock.apply(record, currentFrame.getVariables());
                       
                        // Startup changing record
                        if (currentFrame.isRecordchangehandler()) {
                            try {
                                record = ((RecordChangeHandler) currentFrame.getControl()).changeRecord(record);
View Full Code Here


                            clone.setKernelState(cloneState);

                            localCloneQueue.add(clone);
                        } else {
                            // Apply block changes
                            currentBlock.apply(record, currentFrame.getVariables());
                        }

                        // Success handler for atomic blocks
                        if (currentFrame.isSuccessHandler() && currentBlock instanceof Atomic) {
                            try {
View Full Code Here

    Record r = new RecordImpl();
    List<Block> blocks = process.getBlocks();
    Block setBlock = blocks.get(0);

    Assert.assertTrue("First block is not of type " + Set.class.getName(), setBlock instanceof Set);
    setBlock.apply(r, new VariableSpace());

    Block timestampBlock = blocks.get(1);
    Assert.assertTrue("Second block is not of type " +
      ExtractUnixtimestamp.class.getName(), timestampBlock instanceof ExtractUnixtimestamp);
   
View Full Code Here

    Block timestampBlock = blocks.get(1);
    Assert.assertTrue("Second block is not of type " +
      ExtractUnixtimestamp.class.getName(), timestampBlock instanceof ExtractUnixtimestamp);
   
        VariableSpace variables = new VariableSpace();
    timestampBlock.apply(r, variables);

    checkFields(variables, "year", "1963");
    checkFields(variables, "month", "12");
    checkFields(variables, "day", "4");
    checkFields(variables, "hour", "15");
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.