Examples of Model


Examples of uk.ac.soton.itinnovation.pes.data.model.Model

   * @param daoFactory DAOFactory required for caching execution results.
   * @return model wrapper instance.
   */
    private AModel setUpAppModel(String modelXML, DAOFactory daoFactory) throws Exception
    {
        Model m = null;
        AModel appModel = null;

    System.out.println("[TestFramework] Loading model from XML file");
        m = optUtil.loadAppModel(modelXML);
        appModel = classLoader.getApplicationModelInstance(m.getWrapper());

        System.out.println("[TestFramework] Initialising model wrapper");
        appModel.init(m, daoFactory);

        System.out.println();
View Full Code Here

Examples of urban.kappa.Model

  {
    switch (classifierID)
    {
      case KappaPackage.MODEL:
      {
        Model model = (Model)theEObject;
        T result = caseModel(model);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case KappaPackage.LINE:
View Full Code Here

Examples of urban.model.Model

    this.baseDir = base;
  }
 
  @Override
  public String transform(String text) {
    Model m;
    try {
      m = parse(text+"\n").model();
      m = new ResolveImports(baseDir).transform(m);
      m = new ShapeToRuleTransformer().transform(m);
     
      StringWriter out = new StringWriter();
     
      out.write("graph G {\noverlap=false;\nratio=fill;\n");
     
      final ModelInfo modelInfo = new ModelInfo(m.getLines());
      for(Agent a : modelInfo.getAgents()){
        out.write(a.getName() + "[fontsize=24,width=1.6,height=1.6]\n");
        for(Site s : a.getSites()){
          if (s.getState() == null){
            out.write(s.getAgent() + " -- " + s.getQualifiedName() +" []\n");
View Full Code Here

Examples of urban.urban.Model

  {
    switch (classifierID)
    {
      case UrbanPackage.MODEL:
      {
        Model model = (Model)theEObject;
        T result = caseModel(model);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case UrbanPackage.LINE:
View Full Code Here

Examples of utility.Model

    private static void setUpDisplayLists() {
        bunnyDisplayList = glGenLists(1);
        glNewList(bunnyDisplayList, GL_COMPILE);
        {
            Model m = null;
            try {
                m = OBJLoader.loadModel(new File(MODEL_LOCATION));
            } catch (FileNotFoundException e) {
                e.printStackTrace();
                Display.destroy();
                System.exit(1);
            } catch (IOException e) {
                e.printStackTrace();
                Display.destroy();
                System.exit(1);
            }
            glBegin(GL_TRIANGLES);
            for (Model.Face face : m.getFaces()) {
                Vector3f n1 = m.getNormals().get(face.getNormalIndices()[0] - 1);
                glNormal3f(n1.x, n1.y, n1.z);
                Vector3f v1 = m.getVertices().get(face.getVertexIndices()[0] - 1);
                glVertex3f(v1.x, v1.y, v1.z);
                Vector3f n2 = m.getNormals().get(face.getNormalIndices()[1] - 1);
                glNormal3f(n2.x, n2.y, n2.z);
                Vector3f v2 = m.getVertices().get(face.getVertexIndices()[1] - 1);
                glVertex3f(v2.x, v2.y, v2.z);
                Vector3f n3 = m.getNormals().get(face.getNormalIndices()[2] - 1);
                glNormal3f(n3.x, n3.y, n3.z);
                Vector3f v3 = m.getVertices().get(face.getNormalIndices()[2] - 1);
                glVertex3f(v3.x, v3.y, v3.z);
            }
            glEnd();
        }
        glEndList();
View Full Code Here

Examples of water.Model

        }
      }).keys();

    m.models = new Model[modelKeys.length];
    for (int i = 0; i < modelKeys.length; i++) {
      Model model = getFromDKV(modelKeys[i]);
      m.models[i] = model;
    }
    return this.schema(version).fillFromImpl(m);
  }
View Full Code Here

Examples of wicket.model.Model

   * @param andKeywords
   *            <code>true</code> if to AND keywords
   */
  public KeywordSelectionForm(final String wicketId, final String title,
      final String keywords, final Boolean andKeywords) {
    super(wicketId, new Model());
    try {
      add(new Label("title", title));
      keywordsField = new TextField("keywords", new Model(keywords));
      add(keywordsField);
      andKeywordsBox = new CheckBox("and", new Model(andKeywords));
      add(andKeywordsBox);
    } catch (Exception e) {
      log.error("Error in KeywordSelectionForm: " + title + " - "
          + e.getMessage());
    }
View Full Code Here

Examples of yalp.db.Model

                        RootParamNode rootParamNode = ParamNode.convert(resolvedFields);
                        // This is kind of hacky. This basically says that if we have an embedded class we should ignore it.
                        if (Model.class.isAssignableFrom(cType)) {

                            Model model = (Model) Binder.bind(rootParamNode, "object", cType, cType, null);
                            for (Field f : model.getClass().getFields()) {
                                if (f.getType().isAssignableFrom(Map.class)) {
                                    f.set(model, objects.get(key).get(f.getName()));
                                }
                                if (f.getType().equals(byte[].class)) {
                                    f.set(model, objects.get(key).get(f.getName()));
                                }
                            }
                            model._save();

                            Class<?> tType = cType;
                            while (!tType.equals(Object.class)) {
                                idCache.put(tType.getName() + "-" + id, Model.Manager.factoryFor(cType).keyValue((Model) model));
                                tType = tType.getSuperclass();
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.