Package org.geppetto.core.model.runtime

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


    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);

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

    AspectSubTreeNode simulation = new AspectSubTreeNode(
        AspectTreeType.WATCH_TREE);

    CompositeNode hhpop = new CompositeNode("hhpop[0]");
View Full Code Here


    v.addPhysicalQuantity(quantity2);

    spiking.addPhysicalQuantity(quantity);
    q.addPhysicalQuantity(quantity);

    simulation.addChild(hhpop);
    hhpop.addChild(v);
    hhpop.addChild(spiking);
    hhpop.addChild(bio);
    bio.addChild(membrane);
    membrane.addChild(naChans);
View Full Code Here

    ParticleNode p0 = new ParticleNode("p[0]");
    ParticleNode p1 = new ParticleNode("p[1]");
    ParticleNode p2 = new ParticleNode("p[2]");

    visualization.addChild(elastic);
    visualization.addChild(liquid);
    visualization.addChild(boundary);

    fluid.addChild(visualization);
    visualization.setModified(true);
View Full Code Here

    ParticleNode p0 = new ParticleNode("p[0]");
    ParticleNode p1 = new ParticleNode("p[1]");
    ParticleNode p2 = new ParticleNode("p[2]");

    visualization.addChild(elastic);
    visualization.addChild(liquid);
    visualization.addChild(boundary);

    fluid.addChild(visualization);
    visualization.setModified(true);
View Full Code Here

    ParticleNode p1 = new ParticleNode("p[1]");
    ParticleNode p2 = new ParticleNode("p[2]");

    visualization.addChild(elastic);
    visualization.addChild(liquid);
    visualization.addChild(boundary);

    fluid.addChild(visualization);
    visualization.setModified(true);

    liquid.addChild(p0);
View Full Code Here

    quantity4.setValue(ValuesFactory.getDoubleValue(65d));

    anotherDummyNode1.addPhysicalQuantity(quantity3);
    anotherDummyNode1.addPhysicalQuantity(quantity4);

    simulation.addChild(particle);
    particle.addChild(position);
    position.addChild(anotherDummyNode1);

    runtime.addChild(small);
    small.getAspects().add(fluid);
View Full Code Here

    functionNode.setExpression("y=x^2");
    List<String> arguments = new ArrayList<String>();
    arguments.add("1");
    functionNode.setArgument(arguments);

    model.addChild(parameter);
    model.addChild(dynamics);
    model.addChild(functionNode);

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

    List<String> arguments = new ArrayList<String>();
    arguments.add("1");
    functionNode.setArgument(arguments);

    model.addChild(parameter);
    model.addChild(dynamics);
    model.addChild(functionNode);

    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    model.apply(visitor);
    String serialized = "{" + visitor.getSerializedTree() + "}";
View Full Code Here

    arguments.add("1");
    functionNode.setArgument(arguments);

    model.addChild(parameter);
    model.addChild(dynamics);
    model.addChild(functionNode);

    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    model.apply(visitor);
    String serialized = "{" + visitor.getSerializedTree() + "}";
    System.out.println(serialized);
View Full Code Here

    first.addChild(dynamics);
    first.addChild(functionNode);
   
    second.addChild(parameter2);

    model.addChild(first);
    model.addChild(second);
   
    SerializeTreeVisitor visitor = new SerializeTreeVisitor();
    model.apply(visitor);
    String serialized = "{" + visitor.getSerializedTree() + "}";
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.