Examples of Profile


Examples of net.sourceforge.fullsync.Profile

    super.dispose();
  }

  @Override
  public Profile getSelectedProfile() {
    Profile p = null;
    TableItem[] sel = tableProfiles.getSelection();
    if (sel.length > 0) {
      p = (Profile) (sel[0].getData());
    }
    return p;
View Full Code Here

Examples of net.sourceforge.jaad.aac.Profile

    icsL = new ICStream(frameLength);
    icsR = new ICStream(frameLength);
  }

  void decode(BitStream in, DecoderConfig conf) throws AACException {
    final Profile profile = conf.getProfile();
    final SampleFrequency sf = conf.getSampleFrequency();
    if(sf.equals(SampleFrequency.SAMPLE_FREQUENCY_NONE)) throw new AACException("invalid sample frequency");

    readElementInstanceTag(in);

    commonWindow = in.readBool();
    final ICSInfo info = icsL.getInfo();
    if(commonWindow) {
      info.decode(in, conf, commonWindow);
      icsR.getInfo().setData(info);

      msMask = MSMask.forInt(in.readBits(2));
      if(msMask.equals(MSMask.TYPE_USED)) {
        final int maxSFB = info.getMaxSFB();
        final int windowGroupCount = info.getWindowGroupCount();

        for(int idx = 0; idx<windowGroupCount*maxSFB; idx++) {
          msUsed[idx] = in.readBool();
        }
      }
      else if(msMask.equals(MSMask.TYPE_ALL_1)) Arrays.fill(msUsed, true);
      else if(msMask.equals(MSMask.TYPE_ALL_0)) Arrays.fill(msUsed, false);
      else throw new AACException("reserved MS mask type used");
    }
    else {
      msMask = MSMask.TYPE_ALL_0;
      Arrays.fill(msUsed, false);
    }

    if(profile.isErrorResilientProfile()&&(info.isLTPrediction1Present())) {
      if(info.ltpData2Present = in.readBool()) info.getLTPrediction2().decode(in, info, profile);
    }

    icsL.decode(in, commonWindow, conf);
    icsR.decode(in, commonWindow, conf);
View Full Code Here

Examples of net.stinfoservices.pacifiq.server.model.Profile

    @Override
    @Transactional(readOnly = false)
    public Long saveProfile(ProfileDTO dto) throws Exception {
        // not allowed profileDAO.getEntityManager().getTransaction().begin();
        Profile profile = profileDAO.find(dto.getId());
        if (profile == null) {
            profile = new Profile();
            // version 0 or 1 ? do use constant ?
            profile.setVersion(0);
        }
        applyDiffProfile(profile, dto);
        profile = profileDAO.save(profile);
        // not allowed profileDAO.getEntityManager().getTransaction().commit();
        return profile.getId();
    }
View Full Code Here

Examples of nz.govt.natlib.meta.config.Profile

        AdapterFactory.getInstance().addAdapter(adapterImpl);
        ArrayList profiles = Config.getInstance()
            .getAvailableProfiles();
        Iterator itp = profiles.iterator();
        while (itp.hasNext()) {
          Profile p = (Profile) itp.next();
          p.setAdapter(adapterImpl.getClass().getName(), true);
        }
        ArrayList editprofiles = Config.getEditInstance()
            .getAvailableProfiles();
        Iterator itp2 = editprofiles.iterator();
        while (itp2.hasNext()) {
          Profile p = (Profile) itp2.next();
          p.setAdapter(adapterImpl.getClass().getName(), true);
        }
        Config.getEditInstance().setJarForAdapter(adapterImpl,
            jarFile.getName());
        Config.getInstance().setJarForAdapter(adapterImpl,
            jarFile.getName());
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Profile

        // Verify we have a CapabilityMap
        CapabilityMap cm = ((JetspeedRunData) rundata).getCapability();
        assertNotNull("Got Capability", cm);

        // Verify we have a profile
        Profile profile = Profiler.getProfile(rundata);
        assertNotNull("Got profile from Profiler", profile);
        System.out.println("DocumentName = " + profile.getDocument().getName());

        // Get and populate the context
        Context context = TurbineVelocity.getContext(rundata);
        assertNotNull("Got context", context);
        TurbinePull.populateContext(context, rundata);
View Full Code Here

Examples of org.apache.lucene.store.profile.Profile

    return "Index" + index;
  }

  public static IndexSearcher getSearcher(Integer index) throws IOException {

    Profile prof = new Profile("getIndexSearcher").start();

    IndexSearcher result = null;

    synchronized (searchers) {

      if (!searchers.containsKey(index)) {
        Directory directory = getDirectory(index);
        result = createSearcher(directory, index);
        searchers.put(index, result);
      } else {
        result = searchers.get(index);
      }

    }

    prof.end().log();

    return result;

  }
View Full Code Here

Examples of org.apache.maven.continuum.model.system.Profile

    {
        if ( buildDefinition == null )
        {
            return continuum.getInstallationService().getDefaultJdkInformations();
        }
        Profile profile = buildDefinition.getProfile();
        if ( profile == null )
        {
            return continuum.getInstallationService().getDefaultJdkInformations();
        }
        return continuum.getInstallationService().getJdkInformations( profile.getJdk() );
    }
View Full Code Here

Examples of org.apache.maven.continuum.model.system.Profile

    private List<String> getBuilderVersion( BuildDefinition buildDefinition, Project project )
        throws InstallationException
    {
        ExecutorConfigurator executorConfigurator;
        Installation builder = null;
        Profile profile = null;
        if ( buildDefinition != null )
        {
            profile = buildDefinition.getProfile();
            if ( profile != null )
            {
                builder = profile.getBuilder();
            }
        }
        if ( builder != null )
        {
            executorConfigurator = continuum.getInstallationService().getExecutorConfigurator( builder.getType() );
View Full Code Here

Examples of org.apache.maven.continuum.model.system.Profile

        catch ( ContinuumStoreException e )
        {
            throw new ContinuumException( "Failed to retrieve build definition: " + buildDefinitionId, e );
        }
   
        Profile profile = buildDefinition.getProfile();
        if ( profile == null )
        {
            return Collections.EMPTY_MAP;
        }
        Map<String, String> envVars = new HashMap<String, String>();
        String javaHome = getJavaHomeValue( buildDefinition );
        if ( !StringUtils.isEmpty( javaHome ) )
        {
            envVars.put( installationService.getEnvVar( InstallationService.JDK_TYPE ), javaHome );
        }
        Installation builder = profile.getBuilder();
        if ( builder != null )
        {
            envVars.put( installationService.getEnvVar( installationType ), builder.getVarValue() );
        }
        envVars.putAll( getEnvironmentVariables( buildDefinition ) );
View Full Code Here

Examples of org.apache.maven.continuum.model.system.Profile

    }
   

    private String getJavaHomeValue( BuildDefinition buildDefinition )
    {
        Profile profile = buildDefinition.getProfile();
        if ( profile == null )
        {
            return null;
        }
        Installation jdk = profile.getJdk();
        if ( jdk == null )
        {
            return null;
        }
        return jdk.getVarValue();
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.