Examples of Model


Examples of edu.wpi.cs.wpisuitetng.modules.Model

   */
  public synchronized String create(String[] args, String content,Cookie[] cook) throws WPISuiteException
  {
    Session s = getSessionFromCookies(cook);

    Model m;
    m = (Model) map.get(args[0]+args[1]).makeEntity(s,content);
       
        return m.toJSON();
  }
View Full Code Here

Examples of ee.quest.ui.model.Model

    return form.getContent();
  }
 
  public void handleDo() throws Exception {
    if(form.validate()) {
      Model model = form.readBean(false);
     
      MessageBox message = new MessageBox(this);
      message.setMessage(model.toString());
      message.setText("Text");
     
      message.open();
     
      form.writeBean(new Model());
      data.add(model);
      tabContext.changeTab("table");
      table.loadTable();
    }
  }
View Full Code Here

Examples of etc.aloe.data.Model

            //Get the fruits of our labors
            System.out.println("== Saving Output ==");

            FeatureSpecification spec = trainingController.getFeatureSpecification();
            Model model = trainingController.getModel();
            List<String> topFeatures = trainingController.getTopFeatures();
            List<Map.Entry<String, Double>> featureWeights = trainingController.getFeatureWeights();

            saveFeatureSpecification(spec, options.outputFeatureSpecFile);
            saveModel(model, options.outputModelFile);
View Full Code Here

Examples of example.generics.models.Model

    @Test
    public void findById(){

        Model<ID> model = testModels.get(0);
        Model result = getModelDao().findById(model.getId());
        assertEquals(model, result);

    }
View Full Code Here

Examples of flex2.compiler.mxml.rep.Model

      return;
    }

        Type type = typeTable.getType(node.getNamespace(), node.getLocalPart());

    component = new Model(document, type, node.beginLine);
        registerModel(node, component, true);

    processAttributes(node, type);

        //  create <Object/> VO for RemoteObject.operations
        ops = new Model(document, typeTable.objectType, component, component.getXmlLineNumber());
        ops.setParentIndex(OPERATIONS);
        component.setProperty(OPERATIONS, ops);

    processChildren(node, type);
  }
View Full Code Here

Examples of fr.tm.elibel.smartqvt.stdlibs.QvtLib.Model

    final TreeViewer viewer = getTreeViewer();
    if (viewer != null){
      runInSWTThread(viewer, new Runnable() {
        public void run() {
          try {
            Model model = fConcreteModel.getModel();
            viewer.setInput(model);
            viewer.expandAll();
          } catch (Exception e) {
            UiPlugin.getDefault().getLogger().log(
                java.util.logging.Level.WARNING,
View Full Code Here

Examples of gov.nasa.worldwind.Model

            new BMNGWMSLayer(),
            new LandsatI3WMSLayer(),
         };

         // Create two models and pass them the shared layers.
         Model modelForWindowA = new BasicModel();
         modelForWindowA.setGlobe(earth);
         modelForWindowA.setLayers(new LayerList(layers));

         // Create two frames and give each their own model.
         GfrCanvasFrame frameA = new GfrCanvasFrame(null, modelForWindowA, "Frame A");
        
         Model modelForWindowB = new BasicModel();
         modelForWindowB.setGlobe(earth);
         modelForWindowB.setLayers(new LayerList(layers));
        
         // When creating the second frame, specify resource sharing with the first one.
         GfrCanvasFrame frameB = new GfrCanvasFrame(frameA.getWwd(), modelForWindowB, "Frame B");
        
         // Create two models and pass them the shared layers.
         Model modelForWindowC = new BasicModel();
         modelForWindowC.setGlobe(earth);
         modelForWindowC.setLayers(new LayerList(layers));

         // Create two frames and give each their own model.
         GfrCanvasFrame frameC = new GfrCanvasFrame(null, modelForWindowC, "Frame C");

         frameA.addSecondaryViewer(frameB);
View Full Code Here

Examples of graphics.model.Model

    camera.setFieldOfView(40);
    camera.setPosition(-2f, 1, 2f);
    camera.lookAt(0, 0.7f, 0);
   
    train = new Model[3];
    train[0] = new Model();
    train[0].setMesh(MeshHandler.get("res/mesh/penydarren/penydarren.obj"));
    train[0].setPosition(0,0,-0.2f);
    //train[0].setRotation(0, 180, 0);
    train[1] = new Model();
    train[1].setMesh(MeshHandler.get("res/mesh/coach1.obj"));
    train[1].setPosition(0,0,-1.5f);
    train[2] = new Model();
    train[2].setMesh(MeshHandler.get("res/mesh/coach1.obj"));
    train[2].setPosition(0,0,-2.5f);
   
    smokeEmitter = new Emitter(3, 4000);
    smokeEmitter.setVelocity(new Vector3f(0, 1.6f, 0));
    smokeEmitter.setSizes(5, 500);
    smokeEmitter.setSizesRandomness(1, 100);
    smokeEmitter.setAcceleration(new Vector3f(3f, -0.05f, -0.3f));
    smokeEmitter.setTranslation(new Vector3f(0, 0.08f, 0.30f));
    smokeEmitter.setPosition(0, 0.6f, -0.5f);
   
    Mesh track = MeshHandler.get("res/mesh/track.obj");
    Mesh track90 = MeshHandler.get("res/mesh/track_90_corner.obj");
    Mesh stationMesh = MeshHandler.get("res/mesh/station2.obj");
    Mesh stationBin = MeshHandler.get("res/mesh/station2_bin.obj");
    Mesh stationMap = MeshHandler.get("res/mesh/station2_map.obj");
   
    station = new Model[6];
    for(int i=0;i<6;i++){
      station[i] = new Model();
      station[i].setMesh(stationMesh);
      station[i].setRotation(0, 180, 0);
    }
    station[1].setPosition(0, 0, -1);
    station[2].setPosition(0, 0, -2);
    station[3].setMesh(stationBin);
    station[3].setPosition(1.25f, 0, 0);
    station[3].setRotation(0, 0, 0);
    station[4].setMesh(stationMap);
    station[4].setPosition(0, -0.05f, 0);
    station[5].setMesh(MeshHandler.get("res/mesh/station2_bench.obj"));
    station[5].setPosition(-0.1f,0,-0.2f);
 
   
    rail = new Model[20];
    for(int i=0;i<20;i++){
      rail[i] = new Model();
      rail[i].setMesh(track);
      rail[i].setPosition(0,-5,0);
    }
    rail[0].setPosition(0,0,0);
    rail[1].setPosition(0,0,-1);
    rail[2].setPosition(0,0,-2);
    rail[3].setPosition(0,0,-3);
    rail[4].setPosition(0,0,-4);
    rail[5].setPosition(0,0,-5);
    rail[5].setRotation(0,-90f,0);
    rail[5].setMesh(track90);
    rail[6].setPosition(-1,0,-5);
    rail[6].setRotation(0,-90f,0);
    rail[7].setPosition(0,0,1);
    rail[8].setPosition(0,0,2);
    rail[9].setPosition(0,0,3);
   
    cactus = new Model[4];
    for(int i=0;i<4;i++){
      cactus[i] = new Model();
      cactus[i].setPosition(8, 0, -2);
      cactus[i].setRotation(0, 5f, 0);
    }
    cactus[0].setMesh(MeshHandler.get("res/mesh/cactus_trunk.obj"));
    cactus[1].setMesh(MeshHandler.get("res/mesh/cactus_branch1.obj"));
View Full Code Here

Examples of graphjx.structure.Model

        }
        if (!model.isValidated()) {
            throw new ValidationException("Cannot validate model");
        }

        Model m = doProcess(model);

        return m;
    }
View Full Code Here

Examples of httl.test.model.Model

    context.put("intmap", intmap);
    context.put("begin", 3);
    context.put("end", 7);
    context.put("logined", true);

    Model model = new Model();
    model.setChinese("中文");
    model.setImpvar("abcxyz");
    model.setDefvar("mnnm");
    model.setHtml("<a href=\"foo.html\">foo</a>");
    model.user = user; // public field test
    model.setBooks(books);
    model.setBooklist(Arrays.asList(books));
    model.setBookmap(bookmap);
    model.setMapbookmap(mapbookmap);
    model.setMapbooklist(mapbooklist);
    model.setEmptybooks(new Book[0]);
    model.setBooks2(books2);
    model.setBooklist2(Arrays.asList(books2));
    model.setBookmap2(bookmap2);
    model.setIntmap(intmap);
    model.setBegin(3);
    model.setEnd(7);
    model.setLogined(true);

      final List<Object[]> retTestData = new ArrayList<Object[]>();
    String[] configs = new String[] { "httl.properties", "httl-comment.properties", "httl-comment-text.properties", "httl-comment-javassist.properties", "httl-comment-compile.properties", "httl-comment-interpret.properties", "httl-attribute.properties", "httl-velocity.properties" };
    for (String config : configs) {
     
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.