Package org.geppetto.core.model.runtime

Examples of org.geppetto.core.model.runtime.SphereNode


    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);
View Full Code Here


    AspectNode electrical2 = new AspectNode("electrical");

    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);
    electrical.setParent(hhcell);
    electrical2.setParent(purkinje);

    ConnectionNode con1 = new ConnectionNode("Connection_1");
    con1.setEntityInstancePath(hhcell.getInstancePath());
    con1.setType(ConnectionType.TO);
    con1.setParent(hhcell);
    con1.setName("Connection1");
    hhcell.getConnections().add(con1);
    VisualObjectReferenceNode visObj = new VisualObjectReferenceNode("Vis");
    visObj.setAspectInstancePath(electrical.getInstancePath());
    visObj.setVisualObjectId(sphere.getId());
    TextMetadataNode text = new TextMetadataNode("Text");
    text.setValue(new DoubleValue(2));
   
    URLMetadataNode url = new URLMetadataNode("URL");
    url.setValue(new DoubleValue(2));
View Full Code Here

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
View Full Code Here

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
View Full Code Here

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);
    visualization.setModified(true);

    SphereNode sphere = new SphereNode("sphere");
    Point p = new Point();
    p.setX(new Double(3.3));
    p.setY(new Double(4));
    p.setZ(new Double(-1.444));
    sphere.setPosition(p);
    sphere.setRadius(new Double(33));

    CylinderNode cylinder = new CylinderNode("cylinder");
    Point p2 = new Point();
    p2.setX(new Double(6.3));
    p2.setY(new Double(8));
View Full Code Here

    AspectNode electrical = new AspectNode("electrical");

    AspectSubTreeNode visualization = new AspectSubTreeNode(
        AspectTreeType.VISUALIZATION_TREE);

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

    AspectSubTreeNode simulation = new AspectSubTreeNode(
        AspectTreeType.WATCH_TREE);
View Full Code Here

TOP

Related Classes of org.geppetto.core.model.runtime.SphereNode

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.