Package model.sdo

Examples of model.sdo.Laboratory


    /**
     * @param args
     */
    public static void main(String[] args) {
        BiochemicalCircle biochemicalCircl = new BiochemicalCircleImpl();
        Laboratory lab2 = biochemicalCircl.getLaboratory("Lab2"); //This invocation without use SCA works ok.

        SCADomain scaDomain = SCADomain.newInstance("resources/clinicalLaboratory.composite");
        BiochemicalCircle biochemicalCircle =
            scaDomain.getService(BiochemicalCircle.class, "BiochemicalCircleComponent");
        Laboratory lab = EntityFactory.INSTANCE.createLaboratory();
        lab.setName("lab2");
        biochemicalCircle.setLaboratory(lab); // this invocation works ok too

        lab = biochemicalCircle.getLaboratory("Lab2"); // here I have an exception posted below.

        //here I wait a moment before close scaDomain
        System.out.println(lab.getName());

        scaDomain.close();

    }
View Full Code Here


@Service(BiochemicalCircle.class)
public class BiochemicalCircleImpl implements BiochemicalCircle{
   public Laboratory getLaboratory(String name) {

      Laboratory lab = EntityFactory.INSTANCE.createLaboratory();
      lab.setName("Main Laboratory");
      return lab;
   }
View Full Code Here

    /**
     * @param args
     */
    public static void main(String[] args) {
        BiochemicalCircle biochemicalCircl = new BiochemicalCircleImpl();
        Laboratory lab2 = biochemicalCircl.getLaboratory("Lab2"); //This invocation without use SCA works ok.

        NodeFactory factory = NodeFactory.newInstance();
        String contribution = ContributionLocationHelper.getContributionLocation(BioTestCase.class);
        Node node =
            factory.createNode("resources/clinicalLaboratory.composite", new Contribution("clinical", contribution))
                .start();

        BiochemicalCircle biochemicalCircle = node.getService(BiochemicalCircle.class, "BiochemicalCircleComponent");

        Laboratory lab = EntityFactory.INSTANCE.createLaboratory();
        lab.setName("lab2");
        biochemicalCircle.setLaboratory(lab); // this invocation works ok too

        lab = biochemicalCircle.getLaboratory("Lab2"); // here I have an exception posted below.

        //here I wait a moment before close scaDomain
        System.out.println(lab.getName());

        node.stop();

    }
View Full Code Here

@Service(BiochemicalCircle.class)
public class BiochemicalCircleImpl implements BiochemicalCircle{
   public Laboratory getLaboratory(String name) {

      Laboratory lab = EntityFactory.INSTANCE.createLaboratory();
      lab.setName("Main Laboratory");
      return lab;
   }
View Full Code Here

TOP

Related Classes of model.sdo.Laboratory

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.