Examples of Model


Examples of com.wordnik.swagger.model.Model

        target.put(sModelEntry.getKey(), sModelEntry.getValue());
      } else {
        //we can encounter a known model with an unknown property
        //if (de)serialization is not symmetrical (@JsonIgnore on setter, @JsonProperty on getter).
        //In these cases, don't overwrite the entire model entry for that type, just add the unknown property.
        Model targetModelValue = target.get(sourceModelKey);
        Model sourceModelValue = sModelEntry.getValue();

        Map<String, ModelProperty> targetProperties = fromScalaMap(targetModelValue.properties());
        Map<String, ModelProperty> sourceProperties = fromScalaMap(sourceModelValue.properties());

        Set<String> newSourcePropKeys = newHashSet(sourceProperties.keySet());
        newSourcePropKeys.removeAll(targetProperties.keySet());
        Map<String, ModelProperty> mergedTargetProperties = Maps.newHashMap(targetProperties);
        for (String newProperty : newSourcePropKeys) {
          mergedTargetProperties.put(newProperty, sourceProperties.get(newProperty));
        }

        // uses scala generated copy constructor.
        Model mergedModel = targetModelValue.copy(
                targetModelValue.id(),
                targetModelValue.name(),
                targetModelValue.qualifiedType(),
                ScalaConverters.toScalaLinkedHashMap(mergedTargetProperties),
                targetModelValue.description(),
View Full Code Here

Examples of common.model.Model

public class Checkboard {

  public static void main(String[] args) {

    Model model = new MutilatedModel(4, 4);
    StatementPrinter.print(model.generate(), System.out);
  }
View Full Code Here

Examples of de.bwaldvogel.liblinear.Model

      }
      final PrintStream out = System.out;
      final PrintStream err = System.err;
      System.setOut(NoPrintStream.NO_PRINTSTREAM);
      System.setErr(NoPrintStream.NO_PRINTSTREAM);
      Model model = Linear.train(problem, parameter);
      System.setOut(err);
      System.setOut(out);
      problem = null;
      wmodel = model.getFeatureWeights();
      labels = model.getLabels();
      nr_class = model.getNrClass();
      nr_feature = model.getNrFeature();
      if (!saveInstanceFiles) {
        getFile(".ins").delete();
      }
    } catch (OutOfMemoryError e) {
      throw new LibException("Out of memory. Please increase the Java heap size (-Xmx<size>). ", e);
View Full Code Here

Examples of de.iritgo.aktera.model.Model

   */
  public static ListingDescriptor createListingFromModel(ModelRequest req, String modelName) throws ModelException
  {
    try
    {
      Model listingModel = (Model) req.getService(Model.ROLE, modelName);
      Output listingOutput = (Output) listingModel.execute(req).get("listing");

      if (listingOutput != null)
      {
        return (ListingDescriptor) listingOutput.getContent();
      }
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.data.model.Model

     * @param c Clustering to inspect
     * @return the clustering cast to return a mean model, null otherwise.
     */
    @SuppressWarnings("unchecked")
    private static <NV extends NumberVector<NV, ?>> Clustering<MeanModel<NV>> findMeanModel(Clustering<?> c) {
      final Model firstModel = c.getAllClusters().get(0).getModel();
      if(c.getAllClusters().get(0).getModel() instanceof MeanModel<?> && firstModel instanceof EMModel<?>) {
        return (Clustering<MeanModel<NV>>) c;
      }
      return null;
    }
View Full Code Here

Examples of de.micromata.opengis.kml.v_2_2_0.Model

     * this.setModel(model); </code>
     *
     *
     */
    public Model createAndSetModel() {
        Model newValue = new Model();
        this.setModel(newValue);
        return newValue;
    }
View Full Code Here

Examples of de.swagner.piratesbigsea.com.badlogic.gdx.graphics.g3d.model.Model

          + extension + "'");
    if (hints == null)
      throw new GdxRuntimeException("no default hints for extension '"
          + extension + "'");

    Model model = null;
    StringBuilder errors = new StringBuilder();
    for (int i = 0; i < loaders.size; i++) {
      ModelLoader loader = loaders.get(i);
      ModelLoaderHints hint = hints.get(i);
View Full Code Here

Examples of desmoj.core.simulator.Model

    Assert.assertNull(messageCrossbar.createMessageChannel(null));
  }

  @Before
  public void setUp() {
    owner = new Model(null, "TestModel", true, true) {

      @Override
      public String description() {
        return "TestModel";
      }
View Full Code Here

Examples of edu.cmu.cs.stage3.alice.core.Model

            Transformable onWhatValue = onWhat.getTransformableValue();
            boolean success;
            if( onWhatValue!=null ) {
              edu.cmu.cs.stage3.alice.scenegraph.renderer.PickInfo pickInfo = RenderTarget.pick( mouseEvent );
              if( pickInfo.getCount()>0 ) {
                Model model = (Model)( pickInfo.getVisualAt( 0 ).getBonus() );
                success = onWhatValue == model || onWhatValue.isAncestorOf( model );
              } else {
                success = false;
              }
            } else {
View Full Code Here

Examples of edu.isi.karma.rep.model.Model

   
    List<String> inputModelVertexes = new ArrayList<String>();
    List<String> inputModelEdges = new ArrayList<String>();   
   
    Model inputModel = getInputModel(treeModel, inputAttributesNodes,
        inputModelVertexes, inputModelEdges,
        vertexIdToArgument);
   
    this.setInputModel(inputModel);
   
    Model outputModel = getOutputModel(treeModel,
        inputModelVertexes, inputModelEdges,
        vertexIdToArgument);
   
    this.setOutputModel(outputModel);
   
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.