Examples of Record


Examples of com.tririga.pub.workflow.Record

        /*
         * For demonstration purposes print out the record ID values of the
         * target list for the task step.
         */
        for (int i = 0; i < records.length; i++) {
            Record record = records[i];
            System.out.println(record.toString());
        }
       
        Set parametersEntries = parameters.entrySet();
        for (Iterator itr = parametersEntries.iterator(); itr.hasNext(); ) {
            Map.Entry entry = (Map.Entry)itr.next();
            WFVariable variable = (WFVariable)entry.getValue();
            String name = variable.getName();
            if (WFVariable.Type.WFSTEPINSTANCEVARIABLE.equals(variable.getType())) {
                WFStepInfo stepInfo = (WFStepInfo)variable.getValue();
                System.out.println("Parameter: '" + name + "' Value:" + stepInfo);
            }
            else {
                System.out.println("Parameter: '" + name + "' was not a WFStepInfo.  Variable: " + variable);
            }
        }
       
        /*
         * Using the set of target records create a WFVariable that contains
         * every other record.  This is to illustrate the process of creating
         * a return parameter that can then be assigned to a workflow variable
         * within the workflow (configured as part of the Custom Task step
         * definition).
         *
         * We will only return a single return parameter but it is possible
         * to return multiple parameters.
         */
       
        // We need a Collection that we can put the selected record IDs into.
        Collection resultRecordIds = new ArrayList();
        // Add every other record to the collection.
        for (int i = 0; i < records.length; i++) {
            if (i % 2 == 0) {
                Record record = records[i];
                resultRecordIds.add(record.getId());
            }
        }
       
        /*
         * A return parameter is a WFVariable. 
View Full Code Here

Examples of com.webdeninteractive.xbotts.Mapping.compiler.Record

   
   
   
    JFrame testFrm = new JFrame();
   
    Record node = new Record("test1");
    Record childNode = new Record("child11");
    Record childNode3 = new Record("child12");
    node.add(childNode);
    childNode.add(childNode3);
    //childNode.setParent(node);

   
    Record node2 = new Record("test2");
    Record childNode2 = new Record("child2");
    node2.add(childNode2);

    SchemaTreeModel model = new SchemaTreeModel(node);
    SchemaTreeModel model2 = new SchemaTreeModel(node2);
   
View Full Code Here

Examples of com.workingdogs.village.Record

        List results = new ArrayList();

        // Populate the object(s).
        for (int i = 0; i < rows.size(); i++)
        {
            Record row = (Record) rows.get(i);
            // Add User to the return Vector.
            if (current == null)
            {
                results.add(row2Object(row, 1, null));
            }
View Full Code Here

Examples of com.xensource.xenapi.PIF.Record

        Connection conn = getConnection();
        try {
            XsLocalNetwork nw = getNetworkByName(conn, label);
            s_logger.debug("Network object:" + nw.getNetwork().getUuid(conn));
            PIF pif = nw.getPif(conn);
            Record pifRec = pif.getRecord(conn);
            s_logger.debug("PIF object:" + pifRec.uuid + "(" + pifRec.device + ")");
            return new OvsFetchInterfaceAnswer(cmd, true, "Interface " + pifRec.device + " retrieved successfully",
                    pifRec.IP, pifRec.netmask, pifRec.MAC);
        } catch (BadServerResponse e) {
            s_logger.error("An error occurred while fetching the interface for " +
View Full Code Here

Examples of com.xensource.xenapi.VGPUType.Record

            // Get remaining capacity of all the enabled VGPU in a PGPU
            if(enabledVGPUTypes != null) {
                Iterator<VGPUType> it = enabledVGPUTypes.iterator();
                while (it.hasNext()) {
                    VGPUType type = it.next();
                    Record record = type.getRecord(conn);
                    Long remainingCapacity = pgpu.getRemainingCapacity(conn, type);
                    Long maxCapacity = pgpu.getSupportedVGPUMaxCapacities(conn).get(type);
                    VgpuTypesInfo entry;
                    if ((entry = gpuCapacity.get(record.modelName)) != null) {
                        remainingCapacity += entry.getRemainingCapacity();
View Full Code Here

Examples of de.fzi.herakles.commons.log.Record

  private void setTimeRecorder(){
    timeRecorder = new Recorder(timeLogFile);
    if(logger.isDebugEnabled()){
      logger.debug("time recorder is created!");
    }
    taskRecord = new Record();
    t1Record = new Record();
    t2Record = new Record();
    t7Record = new Record();
    t8Record = new Record();
    firstReasonerRecord = new Record();
    resultRecord = new Record();
    resultObjectRecord = new Record();
    timeRecorder.addRecord("Task", taskRecord);
    timeRecorder.addRecord("T1", t1Record);
    timeRecorder.addRecord("T2", t2Record);
    timeRecorder.addRecord("T7", t7Record);
    timeRecorder.addRecord("T8", t8Record);
View Full Code Here

Examples of edu.stanford.nlp.util.logging.Redwood.Record

    for (int i = 0; i < channels.length; i++) {
      Object channel = channels[i];
      if (oldChannelName.equals(channel)) {
        // make a new version of the Record with a different channel name
        channels[i] = newChannelName;
        Record reroutedRecord = new Record(record.content, channels, record.depth, record.timesstamp);
        results.add(reroutedRecord);
        return results;
      }
    }
   
View Full Code Here

Examples of edu.wpi.first.smartdashboard.state.Record

                break;

            case PacketReader.UPDATE:
                Object rawValue = data.get(UpdateReader.DATA_INDEX);
                Integer field_id = (Integer) data.get(UpdateReader.ID_INDEX);
                Record record = m_state.getRecord(field_id);
                Types.Type field_type_id = record.getType();

                try {
                Object parsedValue = Types.parse((byte[]) rawValue, field_type_id);
                record.setValue(parsedValue);
                } catch (Exception e) {
                  System.out.println("Error: "+record.getName()+", "+e.getMessage());
                  e.printStackTrace();
                }
                break;
        }
    }
View Full Code Here

Examples of eu.stratosphere.types.Record

  @Test
  public void testNextKeyOnly() throws Exception
  {
    try {
      Assert.assertTrue("KeyGroupedIterator must have another key.", this.psi.nextKey());
      Assert.assertTrue("KeyGroupedIterator returned a wrong key.", this.psi.getComparatorWithCurrentReference().equalToReference(new Record(new IntValue(1))));
      Assert.assertEquals("KeyGroupedIterator returned a wrong key.", 1, this.psi.getCurrent().getField(0, IntValue.class).getValue());
     
      Assert.assertTrue("KeyGroupedIterator must have another key.", this.psi.nextKey());
      Assert.assertTrue("KeyGroupedIterator returned a wrong key.", this.psi.getComparatorWithCurrentReference().equalToReference(new Record(new IntValue(2))));
      Assert.assertEquals("KeyGroupedIterator returned a wrong key.", 2, this.psi.getCurrent().getField(0, IntValue.class).getValue());
     
      Assert.assertTrue("KeyGroupedIterator must have another key.", this.psi.nextKey());
      Assert.assertTrue("KeyGroupedIterator returned a wrong key.", this.psi.getComparatorWithCurrentReference().equalToReference(new Record(new IntValue(3))));
      Assert.assertEquals("KeyGroupedIterator returned a wrong key.", 3, this.psi.getCurrent().getField(0, IntValue.class).getValue());
     
      Assert.assertTrue("KeyGroupedIterator must have another key.", this.psi.nextKey());
      Assert.assertTrue("KeyGroupedIterator returned a wrong key.", this.psi.getComparatorWithCurrentReference().equalToReference(new Record(new IntValue(4))));
      Assert.assertEquals("KeyGroupedIterator returned a wrong key.", 4, this.psi.getCurrent().getField(0, IntValue.class).getValue());
     
      Assert.assertTrue("KeyGroupedIterator must have another key.", this.psi.nextKey());
      Assert.assertTrue("KeyGroupedIterator returned a wrong key.", this.psi.getComparatorWithCurrentReference().equalToReference(new Record(new IntValue(5))));
      Assert.assertEquals("KeyGroupedIterator returned a wrong key.", 5, this.psi.getCurrent().getField(0, IntValue.class).getValue());
     
      Assert.assertFalse("KeyGroupedIterator must not have another key.", this.psi.nextKey());
      Assert.assertNull("KeyGroupedIterator must not have another value.", this.psi.getValues());
     
View Full Code Here

Examples of fr.dyade.aaa.jndi2.impl.Record

            contexts[i].getNamingContext().setOwnerId(getId());
          }

          Enumeration enumRecord = contexts[i].getNamingContext().getEnumRecord();
          while (enumRecord.hasMoreElements()) {         
            Record record =(RecordenumRecord.nextElement();
            Record r = nc.getRecord(record.getName());
            if (r == null
              nc.addRecord(record);
            if(record instanceof ContextRecord){
              CompositeName parentPath = contexts[i].getCompositeName();
              record_compositeName.put(record,parentPath);
            }
          }
          composite_context.put(contexts[i].getCompositeName(),nc);
        }
      }
      if(looseCoupling){
        Enumeration enumKeyRecord = record_compositeName.keys();
        while(enumKeyRecord.hasMoreElements()) {
          Record recor =(Record)enumKeyRecord.nextElement();
          CompositeName cn =(CompositeName)((CompositeName)(record_compositeName.get(recor))).clone();
          cn.add(recor.getName());
          if(composite_context.containsKey(cn)){
            NamingContext nc  =(NamingContext)composite_context.get(cn);
            ((ContextRecord)recor).setId(nc.getId());
          }       
        }
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.