Package org.openbel.framework.compiler

Examples of org.openbel.framework.compiler.DefaultPhaseOne


        final CacheableResourceService crs = new DefaultCacheableResourceService();
        final CacheLookupService cls = new DefaultCacheLookupService();
        final NamespaceService nss = new DefaultNamespaceService( crs, cls,
                new NamespaceIndexerServiceImpl());

        final DefaultPhaseOne p1;
        try {
            p1 = new PhaseOneImpl(
                    new XBELValidatorServiceImpl(),
                    new XBELConverterServiceImpl(),
                    new BELValidatorServiceImpl(),
                    new BELConverterServiceImpl(),
                    nss,
                    new SemanticServiceImpl(nss), new ExpansionServiceImpl(),
                    new ProtoNetworkServiceImpl(),
                    new DefaultAnnotationService(),
                    new DefaultAnnotationDefinitionService(crs, cls));
        } catch (Exception e) {
            e.printStackTrace();
            fail("failed to create Phase One due to exception");
            return;
        }

        // read in BEL document and compile to proto network
        final File doc = new File(DOC_PATH);
        assertThat("test BEL document cannot be read", doc.canRead(), is(true));
        Stage1Output p1s1 = p1.stage1BELValidation(doc);
        final ProtoNetworkBuilder bldr = new ProtoNetworkBuilder(p1s1.getDocument());
        pn = bldr.buildProtoNetwork();

        // Create system configuration, BELFRAMEWORK_HOME must be set.
        try {
View Full Code Here

TOP

Related Classes of org.openbel.framework.compiler.DefaultPhaseOne

Copyright © 2018 www.massapicom. 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.