Examples of Model


Examples of org.switchyard.config.model.Model

    // This method looks for the MAX_POOL_SIZE property within switchyard.xml to
    // configure the default transformer pool size
    int getTransformPoolSize(XsltTransformModel model) {
        int poolSize = DEFAULT_MAX_POOL_SIZE;
        // attempt to navigate to parent
        Model root = model.getModelRoot();
        if (root instanceof SwitchYardModel) {
            SwitchYardModel syModel = (SwitchYardModel)root;
            if (syModel.getDomain() != null && syModel.getDomain().getProperties() != null) {
                String poolProp = syModel.getDomain().getProperties().getPropertyValue(MAX_POOL_SIZE);
                if (poolProp != null) {
View Full Code Here

Examples of org.teiid.adminapi.Model

    assertEquals(VDB.Status.INACTIVE, vdb.getStatus());

    // test model
    List<Model> models = vdb.getModels();
    assertEquals(4, models.size());
    Model model = null;
    for (Model m:models) {
      if (m.getName().equals("pm1")) {
        model = m;
        break;
      }
    }
    assertNotNull(model);
    assertEquals(Model.Type.PHYSICAL, model.getModelType());
    assertEquals("sample-value", model.getPropertyValue("sample"));
    List<String> sourceNames = model.getSourceNames();
    assertEquals(1, sourceNames.size());
    assertEquals("mysql", model.getSourceTranslatorName(sourceNames.get(0)));
    assertEquals("java:mysql-connector-binding", model.getSourceConnectionJndiName(sourceNames.get(0)));
    assertTrue(model.isSource());
    //assertTrue(model.isSupportsMultiSourceBindings());
    assertTrue(model.isVisible());
   
    // test data policies
    List<DataPolicy> policies = vdb.getDataPolicies();
    assertEquals(1, policies.size());
    assertEquals("policy1", policies.get(0).getName());
View Full Code Here

Examples of org.terrier.matching.Model

  try{
            Request rq = (Request)srq;
    if ( (! rq.isEmpty()) || MATCH_EMPTY_QUERY )
    {
      //TODO some exception handling here for not found models
      Model wmodel = getWeightingModel(rq);
     
      /* craigm 05/09/2006: only set the parameter of the weighting model
       * if it was explicitly set if c_set control is set to true. Otherwise
       * allow the weighting model to assume it's default value.
       * This changes previous behaviour. TODO: some consideration for
       * non TREC applications */
      if (rq.getControl("c_set").equals("true"))
      {
        wmodel.setParameter(Double.parseDouble(rq.getControl("c")));
      }
     
      Matching matching = getMatchingModel(rq);
     
      if (logger.isDebugEnabled()){
        logger.debug("weighting model: " + wmodel.getInfo());
      }
      MatchingQueryTerms mqt = rq.getMatchingQueryTerms();
      mqt.setDefaultTermWeightingModel((WeightingModel)wmodel);
      Query q = rq.getQuery();
     
View Full Code Here

Examples of org.xith3d.loaders.models.Model

     * Random
     */
    private static Random rnd = new Random(System.currentTimeMillis());
   
    public static Node getWheels() {
        Model wheels = ResBag.getModelInstance(ResourceNames.WHEELS);
       
        return wheels;
    }
View Full Code Here

Examples of pl.edu.pw.elka.mmarkiew.model.Model

  public Controller()
  {
    this.blockingQueue = new LinkedBlockingQueue<QueueEvent>();
    this.sound = new SoundManager();
    this.timer = new Timer();
    this.model = new Model(sound);
    this.view = new View(blockingQueue);

    ExecutorService executor = Executors.newCachedThreadPool();
    executor.execute(new Thread(timer));
    executor.shutdown();
View Full Code Here

Examples of pl.eternalsh.simplecalc.model.Model

     */
    public Controller()
    {
        this.blockingQueue = new LinkedBlockingQueue<ApplicationEvent>();
        this.eventStrategyMap = new HashMap<Class<? extends ApplicationEvent>, AbstractEventStrategy>();
        this.model = new Model();
        this.view = new View(blockingQueue);

        /* Populate strategies map (since it's only one event, there's no need to create a separate method). */
        eventStrategyMap.put(CalculateExpressionEvent.class, new CalculateExpressionEventStrategy(model, view));
    }
View Full Code Here

Examples of play.db.Model

                        }
                        serialize(objects.get(key), "object", params);
                        @SuppressWarnings("unchecked")
                        Class<Model> cType = (Class<Model>)Play.classloader.loadClass(type);
                        resolveDependencies(cType, params);
                        Model model = (Model)Binder.bind("object", cType, cType, null, params);
                        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));
                            tType = tType.getSuperclass();
                        }
View Full Code Here

Examples of server.model.Model

    // curl -i -X GET http://localhost:8080/model/<id>
    @GET
    @Path("{id: \\d+}")
    public Response read(@PathParam("id") Long id) {
  Model model = repository.findOne(id);
  if (model == null) {
      throw new WebApplicationException(Response.Status.NOT_FOUND);
  }
  return Response.status(Response.Status.OK).entity(model).build();
    }
View Full Code Here

Examples of siena.Model

          throw new SienaException("Invalid time");
        }
      }
      String action = root.getName();
      if("insert".equals(action)) {
        Model obj = parseEntity(root, classLoader);
        obj.insert();
        return simpleResponse(obj, true);
      } else if("update".equals(action)) {
        parseEntity(root, classLoader).update();
      } else if("delete".equals(action)) {
        parseEntity(root, classLoader).delete();
      } else if("get".equals(action)) {
        Model obj = parseEntity(root, classLoader);
        obj.get();
        return simpleResponse(obj, false);
      } else if("query".equals(action)) {
        // TODO: convert document to QueryBase
       
        String clazzName = root.attributeValue("class");
View Full Code Here

Examples of soc.qase.state.Model

    {
      mSkin = Utils.shortValue(data, offset);
      offset = offset + 2;
    }

    return (offset > prevOff ? new Model(mIndexVal, mFrame, mSkin) : null);
  }
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.