Package org.geppetto.core.model.runtime

Examples of org.geppetto.core.model.runtime.AspectSubTreeNode.addChild()


    AspectNode electrical = new AspectNode("electrical");
    AspectNode electrical2 = new AspectNode("electrical");

    AspectSubTreeNode visualization = electrical.getSubTree(AspectTreeType.VISUALIZATION_TREE);
    SphereNode sphere = new SphereNode("purkinje");
    visualization.addChild(sphere);

    runtime.addChild(hhcell);
    runtime.addChild(purkinje);
    hhcell.getAspects().add(electrical);
    purkinje.getAspects().add(electrical2);
View Full Code Here


    synapse.setParameter(quantity2);
   
    group.getVisualGroupElements().add(soma);
    group.getVisualGroupElements().add(synapse);
   
    visualization.addChild(group);
   
    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    runtime.apply(visitor);
    String serialized = visitor.getSerializedTree();
    System.out.println(serialized);
View Full Code Here

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);

    SphereNode sphere = new SphereNode("purkinje");
    visualization.addChild(sphere);

    runtime.addChild(hhcell);
    runtime.addChild(purkinje);
    hhcell.getAspects().add(electrical);
    purkinje.getAspects().add(electrical2);
View Full Code Here

    visualization.setModified(false);
    parentAspect = ((AspectNode) visualization.getParent());
    parentAspect.setModified(false);

    aspectA.addChild(simulation);
    simulation.addChild(hhpop);
    simulation.setModified(false);
    parentAspect = ((AspectNode) simulation.getParent());
    parentAspect.setModified(false);
    hhpop.addChild(v);
    hhpop.addChild(a1);
View Full Code Here

    visualization.addChild(vg);
    visualization.addChild(vg2);
    entity5.updateParentEntitiesFlags(true);

    aspectA.addChild(simulation);
    simulation.addChild(hhpop);
    hhpop.addChild(v);
    hhpop.addChild(a1);

    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    runtimeTree.apply(visitor);
View Full Code Here

    aspectB.setModified(true);
    entity2.updateParentEntitiesFlags(true);
    entity5.updateParentEntitiesFlags(true);

    aspectA.addChild(simulation);
    simulation.addChild(hhpop);
    hhpop.addChild(v);
    hhpop.addChild(a1);

    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    runtimeTree.apply(visitor);
View Full Code Here

    runtime.addChild(entity_A);
    entity_A.getAspects().add(aspect_A);
    aspect_A.setParent(entity_A);
    aspect_A.addChild(simulation);
    simulation.addChild(dummyNode);
    simulation.addChild(anotherDummyNode);

    simulation.setModified(true);
    aspect_A.setModified(true);
    entity_A.setModified(true);
View Full Code Here

    runtime.addChild(entity_A);
    entity_A.getAspects().add(aspect_A);
    aspect_A.setParent(entity_A);
    aspect_A.addChild(simulation);
    simulation.addChild(dummyNode);
    simulation.addChild(anotherDummyNode);

    simulation.setModified(true);
    aspect_A.setModified(true);
    entity_A.setModified(true);
View Full Code Here

    runtime.addChild(entity_A);
    entity_A.getAspects().add(aspect_A);
    aspect_A.setParent(entity_A);
    aspect_A.addChild(simulation);
    simulation.addChild(dummyNode);
    simulation.addChild(anotherDummyNode);

    simulation.setModified(true);
    aspect_A.setModified(true);
    entity_A.setModified(true);
View Full Code Here

    runtime.addChild(entity_A);
    entity_A.getAspects().add(aspect_A);
    aspect_A.setParent(entity_A);
    aspect_A.addChild(simulation);
    simulation.addChild(dummyNode);
    simulation.addChild(anotherDummyNode);

    simulation.setModified(true);
    aspect_A.setModified(true);
    entity_A.setModified(true);
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.