Examples of scan()


Examples of org.switchyard.component.camel.model.RouteScanner.scan()

    public void setUp() throws IOException {
        RouteScanner scanner = new RouteScanner();
        List<URL> urls = new ArrayList<URL>();
        urls.add(new File("./target/test-classes").toURI().toURL());
        ScannerInput<SwitchYardModel> input = new ScannerInput<SwitchYardModel>().setURLs(urls);
        _scannedModel = scanner.scan(input).getModel();
    }

    @Test
    public void testRouteAnnnotationServiceNaming() {
        List<ComponentModel> components = _scannedModel.getComposite().getComponents();
View Full Code Here

Examples of org.terasology.logic.behavior.asset.NodesClassLibrary.scan()

        CoreRegistry.put(OneOfProviderFactory.class, new OneOfProviderFactory());

        // Behaviour Trees Node Library
        NodesClassLibrary nodesClassLibrary = new NodesClassLibrary(reflectFactory, copyStrategyLibrary);
        CoreRegistry.put(NodesClassLibrary.class, nodesClassLibrary);
        nodesClassLibrary.scan(environment);

        registerComponents(library.getComponentLibrary(), environment);
        registerEvents(entityManager.getEventSystem(), environment);
        return entityManager;
    }
View Full Code Here

Examples of org.terasology.module.ModulePathScanner.scan()

        registry = new TableModuleRegistry();
        registry.add(engineModule);
        ModulePathScanner scanner = new ModulePathScanner(new ModuleLoader(metadataReader));
        scanner.getModuleLoader().setModuleInfoPath(TerasologyConstants.MODULE_INFO_FILENAME);
        scanner.scan(registry, PathManager.getInstance().getModulePaths());

        setupSandbox();
        loadEnvironment(Sets.newHashSet(engineModule), true);
    }
View Full Code Here

Examples of org.terasology.module.sandbox.APIScanner.scan()

        moduleSecurityManager.getBasePermissionSet().addAPIClass(Logger.class);

        APIScanner apiScanner = new APIScanner(moduleSecurityManager);
        for (Module module : registry) {
            if (module.isOnClasspath()) {
                apiScanner.scan(module);
            }
        }

        moduleSecurityManager.getBasePermissionSet().grantPermission("com.google.gson", ReflectPermission.class);
        moduleSecurityManager.getBasePermissionSet().grantPermission("com.google.gson.internal", ReflectPermission.class);
View Full Code Here

Examples of se.fishtank.css.selectors.scanner.Scanner.scan()

  public List<Node> findAll(final String selector) {
    Assert.notNull(selector, "selectors is null!");
    List<List<Selector>> groups;
    try {
      Scanner scanner = new Scanner(selector);
      groups = scanner.scan();
    } catch (ScannerException e) {
      throw new RuntimeException(e);
    }

    Collection<Node> results = new LinkedHashSet<Node>();
View Full Code Here

Examples of se.sics.mspsim.extutil.highlight.CScanner.scan()

    /* Scan code */
    CScanner cScanner = new CScanner();
    cScanner.change(0, 0, code.length());
    int nrTokens;
    nrTokens = cScanner.scan(code.toCharArray(), 0, code.length());

    /* Extract tokens */
    Vector<Token> codeTokensVector = new Vector<Token>();
    for (int i=0; i < nrTokens; i++) {
      Token token = cScanner.getToken(i);
View Full Code Here

Examples of stallone.api.datasequence.IDataSequenceLoader.scan()

        List<String> names = new ArrayList();
        names.add("/Users/noe/data/open_projects/adaptive_sampling_local/data/TrypsinBenzamidine/new_model_test/model/tics/long1.dat");
        names.add("/Users/noe/data/open_projects/adaptive_sampling_local/data/TrypsinBenzamidine/new_model_test/model/tics/long2.dat");
        names.add("/Users/noe/data/open_projects/adaptive_sampling_local/data/TrypsinBenzamidine/new_model_test/model/tics/long3.dat");
        IDataSequenceLoader loader = dataNew.multiSequenceLoader(names);
        loader.scan();
       
        IClustering clustering = clusterNew.regspace(loader, 0.5);
        clustering.perform();
       
        /*
 
View Full Code Here

Examples of stallone.datasequence.DataSequenceLoader_SingleReaderImpl.scan()

     */
    public IDataSequenceLoader multiSequenceLoader(List<String> files, IDataReader reader)
            throws IOException
    {
        DataSequenceLoader_SingleReaderImpl loader = new DataSequenceLoader_SingleReaderImpl(files, reader);
        loader.scan();
        return (loader);
    }

    /**
     * Creates a multi sequence loader, the universal file accessor to load
View Full Code Here

Examples of stallone.io.BlockFileReader.scan()

    public static IDoubleArray readDoubleMatrix(String file)
            throws FileNotFoundException, IOException
    {
        BlockFileReader reader = new BlockFileReader(file);
        reader.scan();

        // find out whether the matrix is saved in sparse or dense format.
        boolean sparse = isSparseFormat(reader);

        double[][] block = reader.getLargestDoubleBlock();
View Full Code Here

Examples of stallone.io.CachedAsciiFileReader.scan()

    }

    public String[] readLines(String fileName) throws IOException
    {
        CachedAsciiFileReader reader = ioNew.asciiReader(fileName);
        reader.scan();

        int nlines = reader.getNumberOfLines();
        String[] res = new String[nlines];
        for (int i=0; i<res.length; i++)
            res[i] = reader.getLine(i);
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.