Examples of Universe


Examples of etherstrategy.simulation.Universe

     * @throws Exception
     */
    @Test
    public void compareBlankUniverses() throws Exception
    {
        Universe testUniverse2 = new Universe();

        assertTrue(
                "Two universes created with a default constructor should be identical, but are not",
                testUniverse.similar( testUniverse2 ) );
    }
View Full Code Here

Examples of etherstrategy.simulation.Universe

     * methods are functioning properly.
     */
    @Test
    public void addTestElementsToUniverse() throws Exception
    {
        Universe testUniverse2 = new Universe();
        TestUElement testElement = new TestUElement();

        testUniverse.add( testElement );

        assertFalse(
View Full Code Here

Examples of jsynoptic.plugins.java3d.Universe

    @Override
    public void select(Collection<Node> nodes) {
        clearSelection();
        for(Node n : nodes){
            ArrayList<SceneGraphObject> sgos=new ArrayList<SceneGraphObject>();
            Universe u = Universe.getGraphPath(n, null,
                    sgos);
            TreePath tp=expand(sgos, u);
            addSelectionPath(tp);
        }
       
View Full Code Here

Examples of jsynoptic.plugins.java3d.Universe

        @Override
        public void actionPerformed(ActionEvent e) {
            ArrayList<SceneGraphObject> sgos = new ArrayList<SceneGraphObject>();
            GraphObjectReference gn = (GraphObjectReference) getNode()
                    .getGraphObject();
            Universe u = Universe.getGraphPath(gn.getNode(), gn.getObject(),
                    sgos);
            if(u!=null){
                getNode().getTree().expand(sgos, u);
            }
            else{
View Full Code Here

Examples of jsynoptic.plugins.java3d.Universe

    }

    // required for dynamic node creation
    public UniverseNode(Tree tree, Object graphObject, boolean getChildren) {
        super(tree, graphObject, getChildren);
        Universe pu = (Universe) getGraphObject();
        pu.addListner(this);
    }
View Full Code Here

Examples of jsynoptic.plugins.java3d.Universe

        return ((Universe)getGraphObject()).getName();
    }
   
    @Override
    protected void getSceneGraphChildren(ArrayList<Object> list) {
        Universe pu = (Universe) getGraphObject();
        list.addAll(pu.getCanvas());
        list.addAll(pu.getSceneGraphs());
    }
View Full Code Here

Examples of kodkod.instance.Universe

        if (bitwidth < 1)   throw new ErrorSyntax("Cannot specify a bitwidth less than 1");
        if (bitwidth > 30throw new ErrorSyntax("Cannot specify a bitwidth greater than 30");
        if (maxseq < 0)     throw new ErrorSyntax("The maximum sequence length cannot be negative.");
        if (maxseq > max()) throw new ErrorSyntax("With integer bitwidth of "+bitwidth+", you cannot have sequence length longer than "+max());
        kAtoms = ConstList.make(atoms);
        bounds = new Bounds(new Universe(kAtoms));
        factory = bounds.universe().factory();
        TupleSet sigintBounds = factory.noneOf(1);
        TupleSet seqidxBounds = factory.noneOf(1);
        TupleSet stringBounds = factory.noneOf(1);
        final TupleSet next = factory.noneOf(2);
View Full Code Here

Examples of kodkod.instance.Universe

        this.sc = sc;
        this.factory = sol.getFactory();
        this.rep = rep;
        this.sol = sol;
        // Figure out the sig bounds
        final Universe universe = factory.universe();
        final int atomN = universe.size();
        final List<Tuple> atoms = new ArrayList<Tuple>(atomN);
        for(int i=atomN-1; i>=0; i--) atoms.add(factory.tuple(universe.atom(i)));
        for(Sig s:sigs) if (!s.builtin && s.isTopLevel()) computeLowerBound(atoms, (PrimSig)s);
        for(Sig s:sigs) if (!s.builtin && s.isTopLevel()) computeUpperBound((PrimSig)s);
        // Bound the sigs
        for(Sig s:sigs) if (!s.builtin && s.isTopLevel()) allocatePrimSig((PrimSig)s);
        for(Sig s:sigs) if (s instanceof SubsetSig) allocateSubsetSig((SubsetSig)s);
View Full Code Here

Examples of org.encog.ca.universe.Universe

  }

  public static void load(File f, CARunner runner) {
    try {
      Universe universe = (Universe)EncogDirectoryPersistence.loadObject(
          new File(FileUtil.forceExtension(f.toString(), "eg")));
      CAProgram physics = (CAProgram)SerializeObject.load(
          new File(FileUtil.forceExtension(f.toString(), "bin")));
      physics.setSourceUniverse(universe);
      runner.init(universe,physics);
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.