Examples of Unit


Examples of com.heroku.api.response.Unit

    // don't use the app dataprovider because it'll try to delete an already deleted app
    @Test(retryAnalyzer = InternalServerErrorAnalyzer.class)
    public void testDestroyAppCommand() throws IOException {
        AppDestroy cmd = new AppDestroy(new HerokuAPI(connection, apiKey).createApp(new App().on(Cedar)).getName());
        Unit response = connection.execute(cmd, apiKey);
        assertNotNull(response);
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Unit

    @Override
    protected Module createModule(List<String> moduleName, String version) {
        final Module module = new JsonModule();
        module.setName(moduleName);
        module.setVersion(version);
        Unit u = new Unit();
        u.setFilename(Constants.MODULE_DESCRIPTOR);
        u.setFullPath(moduleName+"/"+version);
        module.setUnit(u);
        JsonModule dep = (JsonModule)findLoadedModule(Module.LANGUAGE_MODULE_NAME, null);
        //This can only happen during initCoreModules()
        if (!(module.getNameAsString().equals(Module.DEFAULT_MODULE_NAME) || module.getNameAsString().equals(Module.LANGUAGE_MODULE_NAME)) && dep == null) {
            //Load the language module if we're not inside initCoreModules()
View Full Code Here

Examples of com.sun.speech.freetts.Unit

       unitItem = unitItem.getNext()) {
      FeatureSet featureSet = unitItem.getFeatures();

      String unitName = featureSet.getString("name");
      targetEnd = featureSet.getInt("target_end");
      Unit unit = (Unit) featureSet.getObject("unit");
      int unitSize = unit.getSize();

      uIndex = 0;
      m = (float)unitSize/(float)(targetEnd - targetStart);
      numberFrames = lpcResult.getNumberOfFrames();
     
      // for all the pitchmarks that are required
      for (; (pmI < numberFrames) &&
         (targetTimes[pmI] <= targetEnd); pmI++) {

    Sample sample = unit.getNearestSample(uIndex);
   
    // Get LPC coefficients by copying
    lpcResult.setFrame(pmI, sample.getFrameData());

    // Get residual by copying
View Full Code Here

Examples of de.ailis.jollada.model.Unit

        assertEquals(0, asset.getKeywords().size());
        assertTrue(asset.getModified() >= now);
        assertNull(asset.getRevision());
        assertNull(asset.getSubject());
        assertNull(asset.getTitle());
        assertEquals(new Unit(), asset.getUnit());
        assertEquals(UpAxis.Y_UP, asset.getUpAxis());
    }
View Full Code Here

Examples of edu.cmu.sphinx.linguist.acoustic.Unit

     */
    HMMNode(HMM hmm, float probablilty) {
        super(probablilty);
        this.hmm = hmm;

        Unit base = getBaseUnit();

        int type = SIMPLE_UNIT;
        if (base.isSilence()) {
            type = SILENCE_UNIT;
        } else if (base.isFiller()) {
            type = FILLER_UNIT;
        } else if (hmm.getPosition().isWordBeginning()) {
            type = WORD_BEGINNING_UNIT;
        }
        setType(type);
View Full Code Here

Examples of javax.measure.unit.Unit

    /* This method should return units either in SI, NonSI, or combinations of
     * units acording to the Unit.valueOf format.  */

    private static javax.measure.unit.Unit splitUnits(javax.measure.unit.Unit u){
        Unit retval=Unit.ONE;
        u=u.getStandardUnit();
        /* If it's a ProductUnit, then split it and then call splitUnits */
        if (javax.measure.unit.ProductUnit.class.isInstance(u)){
            ProductUnit pu=(ProductUnit)u;
            for (int i=0;i<pu.getUnitCount();++i){
                /* First check to see if this unit needs split */
                Unit ux =splitUnits(pu.getUnit(i));
                retval=retval.times(ux.pow(pu.getUnitPow(i)));
            }
            /* Now split again */
            Logger.getLogger("com.CompPad").log(Level.FINE,"ProductUnit "
                    + pu.getUnitCount());
        }
View Full Code Here

Examples of jnibwapi.model.Unit

      neutralUnits.clear();
      int[] unitData = getAllUnitsData();

      for (int index = 0; index < unitData.length; index += Unit.numAttributes) {
        int id = unitData[index];
        Unit unit = new Unit(id);
        unit.update(unitData, index);

        units.put(id, unit);
        if (self != null && unit.getPlayerID() == self.getID()) {
          playerUnits.add(unit);
        }
        else if (allyIDs.contains(unit.getPlayerID())) {
          alliedUnits.add(unit);
        }
        else if (enemyIDs.contains(unit.getPlayerID())) {
          enemyUnits.add(unit);
        }
        else {
          neutralUnits.add(unit);
        }
View Full Code Here

Examples of lcmc.common.domain.Unit

    private Application application;
    @Inject
    private StartTests startTests;

    public static Unit getUnitMilliSec() {
        return new Unit("ms", "ms", "Millisecond", "Milliseconds");
    }
View Full Code Here

Examples of loop.ast.script.Unit

  @Test
  public final void emitBasicCall()
      throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
    Parser parser = new LexprParser(new Tokenizer("puts ->\n  'HELLO'.toLowerCase()").tokenize());
    Unit unit = parser.script(file);
    unit.reduceAll();

    Class<?> generated = new AsmCodeEmitter(unit).write(unit);

    // Inspect.
    inspect(generated);
View Full Code Here

Examples of loop.ast.script.Unit

  @Test
  public final void emitBasicCallWithArgs()
      throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
    Parser parser = new LexprParser(new Tokenizer("puts(str) ->\n  str.toLowerCase().toUpperCase().toLowerCase()").tokenize());
    Unit unit = parser.script(file);
    unit.reduceAll();

    Class<?> generated = new AsmCodeEmitter(unit).write(unit);

    // Inspect.
    inspect(generated);
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.