Examples of FrontEnd


Examples of edu.cmu.sphinx.frontend.FrontEnd

    }

    static private void processFile(String inputFile, String outputFile,
            ConfigurationManager cm) throws MalformedURLException, IOException {

        FrontEnd frontend = (FrontEnd) cm.lookup("endpointer");

        AudioFileDataSource dataSource = (AudioFileDataSource) cm
                .lookup("audioFileDataSource");
        System.out.println(inputFile);
        dataSource.setAudioFile(new File(inputFile), null);
        WavWriter wavWriter = (WavWriter) cm.lookup("wavWriter");
        wavWriter.setOutFilePattern(outputFile);

        frontend.initialize();

        Data data = null;
        do {
            data = frontend.getData();
        } while (data != null);
    }
View Full Code Here

Examples of edu.cmu.sphinx.frontend.FrontEnd

     * Main method.
     *
     * @param args argv[0] : The name of an audio file argv[1] : SphinxProperties file
     */
    static public void main(String[] args) {
        FrontEnd frontEnd;
        FrontEnd cepstrumFrontEnd;
        StreamDataSource dataSource;
        StreamDataSource cepstrumDataSource;

        prefs = Preferences.userRoot().node(PREFS_CONTEXT);
        filename = prefs.get(FILENAME_PREFERENCE, "untitled.raw");
View Full Code Here

Examples of giggler.ui.impl.Frontend

    }
   
    public boolean start() {

      frontend = new Frontend();
        frontend.setConfiguration(configuration);
        frontend.setManagement(management);

        return (frontend != null);
    }
View Full Code Here

Examples of io.fabric8.gateway.fabric.haproxy.model.FrontEnd

            while (id.endsWith("_")) {
                id = id.substring(0, id.length() - 1);
            }

            List<BackEndServer> backends = new ArrayList<BackEndServer>();
            FrontEnd frontEnd = new FrontEnd(id, uri, services, backends);
            frontEnds.add(frontEnd);
            Collection<String> serviceUrls = services.getServiceUrls();
            for (String serviceUrl : serviceUrls) {
                URL url = null;
                try {
View Full Code Here

Examples of io.fathom.auto.haproxy.model.Frontend

            Files.write(s, secretFile, Charsets.UTF_8);
            backend.sslKey = secretFile.getAbsolutePath();
        }

        String frontendKey = DEFAULT_FRONTEND_KEY;
        Frontend frontend = getFrontend(frontendKey);
        frontend.backends.add(backend);

        if (backend.sslKey != null) {
            if (frontend.sslKey == null) {
                frontend.sslKey = backend.sslKey;
View Full Code Here

Examples of io.fathom.auto.haproxy.model.Frontend

        }
        return backend;
    }

    private Frontend getFrontend(String frontendKey) {
        Frontend frontend = frontends.get(frontendKey);
        if (frontend == null) {
            frontend = new Frontend();
            frontend.key = frontendKey;
            frontends.put(frontendKey, frontend);
        }
        return frontend;
    }
View Full Code Here

Examples of org.apache.cxf.tools.plugin.FrontEnd

       
        Map<String, FrontEnd> frontends = loader.getFrontEnds();
        assertNotNull(frontends);
        assertEquals(2, frontends.size());

        FrontEnd frontend = getFrontEnd(frontends, 0);
        assertEquals("jaxws", frontend.getName());
        assertEquals("org.apache.cxf.tools.wsdlto.frontend.jaxws", frontend.getPackage());
        assertEquals("JAXWSProfile", frontend.getProfile());
        assertNotNull(frontend.getGenerators());
        assertNotNull(frontend.getGenerators().getGenerator());
       
        assertEquals("AntGenerator", getGenerator(frontend, 0).getName());
       
        assertEquals("JAXWSContainer", frontend.getContainer().getName());
        assertEquals("jaxws-toolspec.xml", frontend.getContainer().getToolspec());
       
        loader.getFrontEndProfile("jaxws");
                 
        Map<String, DataBinding> databindings = loader.getDataBindings();
        assertNotNull(databindings);
View Full Code Here

Examples of org.apache.cxf.tools.plugin.FrontEnd

        Map<String, FrontEnd> frontends = loader.getFrontEnds();
        assertNotNull(frontends);
        assertEquals(2, frontends.size());

        FrontEnd frontend = getFrontEnd(frontends, 0);
        assertEquals("jaxws", frontend.getName());
        assertEquals("org.apache.cxf.tools.wsdlto.frontend.jaxws", frontend.getPackage());
        assertEquals("JAXWSProfile", frontend.getProfile());
        assertNotNull(frontend.getGenerators());
        assertNotNull(frontend.getGenerators().getGenerator());
        assertEquals(2, frontend.getGenerators().getGenerator().size());
        assertEquals("AntGenerator", getGenerator(frontend, 0).getName());
        assertEquals("ImplGenerator", getGenerator(frontend, 1).getName());

        FrontEndProfile profile = loader.getFrontEndProfile("jaxws");
        assertNotNull(profile);
View Full Code Here

Examples of org.apache.cxf.tools.plugin.FrontEnd

    private Plugin getPlugin(InputStream is) throws JAXBException {
        return (Plugin) ((JAXBElement<?>)unmarshaller.unmarshal(is)).getValue();
    }

    public FrontEnd getFrontEnd(String name) {
        FrontEnd frontend = frontends.get(name);

        if (frontend == null) {
            Message msg = new Message("FRONTEND_MISSING", LOG, name);
            throw new ToolException(msg);
        }
View Full Code Here

Examples of org.apache.cxf.tools.plugin.FrontEnd

        return pkgName + "." + frontend.getBuilder().getName();
    }

    public FrontEndProfile getFrontEndProfile(String name) {
        FrontEndProfile profile = null;
        FrontEnd frontend = getFrontEnd(name);

        profile = loadFrontEndProfile(getFrontEndProfileClass(frontend));

        for (FrontEndGenerator generator : getFrontEndGenerators(frontend)) {
            profile.registerGenerator(generator);
        }

        if (frontend.getProcessor() != null) {
            profile.setProcessor(loadProcessor(getProcessorClass(frontend)));
        }
        if (frontend.getContainer() != null) {
            profile.setContainerClass(loadContainerClass(getContainerClass(frontend)));
            profile.setToolspec(getToolspec(frontend));
        }
        if (frontend.getBuilder() != null) {
            profile.setWSDLBuilder(loadBuilder(getBuilderClass(frontend)));
        }
        return profile;
    }
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.