Package org.integratedmodelling.riskwiz.tests

Source Code of org.integratedmodelling.riskwiz.tests.GenieIOTest

package org.integratedmodelling.riskwiz.tests;


import java.io.FileInputStream;

import org.integratedmodelling.riskwiz.bn.BeliefNetwork;
import org.integratedmodelling.riskwiz.io.genie.GenieReader;
import org.integratedmodelling.riskwiz.io.genie.GenieWriter;


public class GenieIOTest {
 
    /*
     aestheticService_AestheticProximityUse.xdsl
     aestheticService_AestheticViewshedUse.xdsl
     aestheticService_ProximityToBeauty.xdsl
     aestheticService_SensoryEnjoyment.xdsl
     carbonService_AllPeopleEverywhere.xdsl
     carbonService_ClimateStability.xdsl
     */

    /**
     * @param args
     */
    public static void main(String[] args) {
        GenieReader r = new GenieReader();
        GenieWriter w = new  GenieWriter();

        try {
            BeliefNetwork bn = r.load(
                    new FileInputStream("examples/CarbonSourceValue.xdsl"));
            
            System.out.println("----------------------------------")
            w.save(System.out, bn);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
TOP

Related Classes of org.integratedmodelling.riskwiz.tests.GenieIOTest

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.