Examples of Instance


Examples of ariba.util.core.PerformanceStateTimedCounter.Instance

              PerformanceStateCore.LOG_TIME);
    }

    protected PerformanceStateCPUTimedCounter.Instance newInstance (String name)
    {
        return new Instance(name);
    }
View Full Code Here

Examples of bm.vm.Instance

    }

    private Instance sendRow( final Row row, final Instance table )
            throws VirtualMachineException
    {
        final Instance r = getVirtualMachine().newInstance( "Row" );
        r.setAttachment( "row", row );
        r.setAttachment( "table", table );
        return r;
    }
View Full Code Here

Examples of ca.uwo.csd.ai.nlp.libsvm.ex.Instance

            vectors.add(vector);
        }               
       
        Instance[] instances = new Instance[labels.size()];
        for (int i = 0; i < instances.length; i++) {
            instances[i] = new Instance(labels.get(i), vectors.get(i));
        }
       
        return instances;
    }
View Full Code Here

Examples of cc.mallet.types.Instance

      resetExpectations();

      /* Fill in expectations for each instance */
      for (int i = 0; i < numInstances; i++)
      {
        Instance instance = trainData.get(i);

        /* Compute marginals for each clique */
        long unrollStart = System.currentTimeMillis ();
        ACRF.UnrolledGraph unrolled = new ACRF.UnrolledGraph (instance, templates, fixedTmpls);
        long unrollEnd = System.currentTimeMillis ();
        unrollTime += (unrollEnd - unrollStart);

        if (unrolled.numVariables () == 0) continue;   // Happens if all nodes are pruned.

        /* Save the expected value of each feature for when we
           compute the gradient. */
        Assignment observations = unrolled.getAssignment ();
        double value = collectExpectationsAndValue (unrolled, observations);

        if (Double.isInfinite(value))
        {
          if (initializingInfiniteValues) {
            logger.warning ("Instance " + instance.getName() +
                            " has infinite value; skipping.");
            infiniteValues.set (i);
            continue;
          } else if (!infiniteValues.get(i)) {
            logger.warning ("Infinite value on instance "+instance.getName()+
                            "returning -infinity");
            return Double.NEGATIVE_INFINITY;
/*
            printDebugInfo (unrolled);
            throw new IllegalStateException
              ("Instance " + instance.getName()+ " used to have non-infinite"
               + " value, but now it has infinite value.");
*/
          }
        } else if (Double.isNaN (value)) {
          System.out.println("NaN on instance "+i+" : "+instance.getName ());
          printDebugInfo (unrolled);
/*          throw new IllegalStateException
            ("Value is NaN in ACRF.getValue() Instance "+i);
*/
          logger.warning ("Value is NaN in ACRF.getValue() Instance "+i+" : "+
View Full Code Here

Examples of com.alu.e3.data.model.Instance

        logger.error("Unable to create log-collection directory: {}", COLLECTION_PATH);
        return 0L;
      }

      // Iterate through all instances in the current topology     
      Instance logCollectorInstance = Utilities.getManagerByIP(CommonTools.getLocalHostname(), CommonTools.getLocalAddress(),  topology.getInstancesByType(E3Constant.E3MANAGER), logger);
      List<Instance> instances = getInstanceList(this.topology);
      if(logger.isDebugEnabled()) {
        logger.debug("There are {} instances in the current topology", instances.size());
      }
      for (Instance logSource : instances) {
View Full Code Here

Examples of com.amazonaws.services.autoscaling.model.Instance

    private DescribeAutoScalingGroupsResult mkAsgResult(String asgName, String instanceId) {
        DescribeAutoScalingGroupsResult result = new DescribeAutoScalingGroupsResult();
        AutoScalingGroup asg = new AutoScalingGroup();
        asg.setAutoScalingGroupName(asgName);
        Instance inst = new Instance();
        inst.setInstanceId(instanceId);
        asg.setInstances(Arrays.asList(inst));
        result.setAutoScalingGroups(Arrays.asList(asg));
        return result;
    }
View Full Code Here

Examples of com.amazonaws.services.ec2.model.Instance

    }
  }

  private boolean anyInstancesStateEqual(List<Instance> instances, InstanceStateName name) {
    for (Iterator<Instance> iterator = instances.iterator(); iterator.hasNext();) {
      Instance instance = (Instance) iterator.next();

      // if one of instance is not running, return false
      if (InstanceStateName.fromValue(instance.getState().getName()) == name) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

Examples of com.anotherbigidea.flash.movie.Instance

        Frame frame;
        Shape line_shape;
        AlphaColor alpha_color;
        int draw_points = speed + 1;
        Point[] point = new Point[draw_points];
        Instance instance;
       
        if ( points_.size() > 0 )
        {
            alpha_color = new AlphaColor( pen_color_.getRed(), pen_color_.getGreen(), pen_color_.getBlue(), pen_color_.getAlpha() );
            point[0] = (Point) points_.get(0);
View Full Code Here

Examples of com.atlauncher.data.Instance

                                        instance.setPlayable();
                                    }
                                } else if (isServer) {

                                } else {
                                    Instance newInstance = new Instance(instanceNameField.getText(), pack.getName(),
                                            pack, installForMe.isSelected(), version.getVersion(),
                                            version.getMinecraftVersion().getVersion(), this.getMemory(),
                                            this.getPermGen(), this.getModsInstalled(), this.getJarOrder(),
                                            this.getLibrariesNeeded(), this.getExtraArguments(),
                                            this.getMinecraftArguments(), this.getMainClass(),
                                            version.getMinecraftVersion().getMojangVersion().getAssets(),
                                            version.isDev(), !version.getMinecraftVersion().isLegacy());

                                    if (version.isDev() && (version.getHash() != null)) {
                                        newInstance.setHash(version.getHash());
                                    }

                                    App.settings.getInstances().add(newInstance);

                                }
View Full Code Here

Examples of com.cburch.logisim.instance.Instance

    } else if (name.equals("circ-port")) {
      Location loc = getLocation(elt);
      String[] pinStr = elt.getAttribute("pin").split(",");
      Location pinLoc = Location.create(Integer.parseInt(pinStr[0].trim()),
          Integer.parseInt(pinStr[1].trim()));
      Instance pin = pins.get(pinLoc);
      if (pin == null) {
        return null;
      } else {
        return new AppearancePort(loc, pin);
      }
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.