Examples of Translation


Examples of fcagnin.jgltut.tut06.Translation

                            new DepthClamping().start();
                            break;

                        case "Translation":
                            Framework.CURRENT_TUTORIAL_DATAPATH = "/fcagnin/jgltut/tut06/data/";
                            new Translation().start();
                            break;
                        case "Scale":
                            Framework.CURRENT_TUTORIAL_DATAPATH = "/fcagnin/jgltut/tut06/data/";
                            new Scale().start();
                            break;
View Full Code Here

Examples of hirondelle.web4j.ui.translate.Translation

  }
 
  /** Fetch a {@link Translation} in preparation for editing it. */
  protected void attemptFetchForChange() throws DAOException {
    //Locale or Base or Translation might be gone
    Translation translation = fTranslationDAO.fetch(getParent().getId(), getIdParam(LOCALE_ID));
    if( translation == null ){
      addError("Translation no longer exists. Likely deleted by another user.");
    }
    else {
      addToRequest(ITEM_FOR_EDIT, translation);
View Full Code Here

Examples of kodkod.engine.fol2sat.Translation

      throw new IllegalStateException();
   
    final long startTransl = System.currentTimeMillis();
    try {
     
      final Translation translation = Translator.translate(formula, bounds, options);
      final long endTransl = System.currentTimeMillis();

      final SATMinSolver cnf = (SATMinSolver)translation.cnf();
      for(Relation r : bounds.relations()) {
        IntSet vars = translation.primaryVariables(r);
        if (vars != null) {
          int rcost = cost.edgeCost(r);
          for(IntIterator iter = vars.iterator();  iter.hasNext(); ) {
            cnf.setCost(iter.next(), rcost);
          }
View Full Code Here

Examples of kodkod.engine.fol2sat.Translation

   
    final long startTransl = System.currentTimeMillis();
   
    try {   
   
      final Translation translation = Translator.translate(formula, bounds, options);
      final long endTransl = System.currentTimeMillis();

      final SATSolver cnf = translation.cnf();
     
      options.reporter().solvingCNF(translation.numPrimaryVariables(), cnf.numberOfVariables(), cnf.numberOfClauses());
      final long startSolve = System.currentTimeMillis();
      final boolean isSat = cnf.solve();
      final long endSolve = System.currentTimeMillis();

      final Statistics stats = new Statistics(translation, endTransl - startTransl, endSolve - startSolve);
View Full Code Here

Examples of mikera.transformz.Translation

  }


  @Override
  public ATranslation getTranslation() {
    return new Translation(new double[]{x,y,z,t});
  }
View Full Code Here

Examples of org.allspice.parser.Translation

   *
   */
  public final Map<Rule,Translation> rules = new HashMap<Rule,Translation>() ;
  @Override
  public Object reduce(Rule rule, Parser parser,ParserState state,PositionRange range) throws SyntaxError {
    Translation t = rules.get(rule) ;
    if (t == null) {
      return rule.rhs.isEmpty() ? null : state.reductions.head.o ;
    }
    return t.reduce(range, parser, state) ;
  }
View Full Code Here

Examples of org.broadleafcommerce.common.i18n.domain.Translation

    @RequestMapping(value = "/update", method = RequestMethod.GET)
    public String showUpdateTranslation(HttpServletRequest request, HttpServletResponse response, Model model,
            @ModelAttribute(value="form") TranslationForm form, BindingResult result) throws Exception {
        adminRemoteSecurityService.securityCheck(form.getCeilingEntity(), EntityOperationType.FETCH);
       
        Translation t = translationService.findTranslationById(form.getTranslationId());
        form.setTranslatedValue(t.getTranslatedValue());
       
        EntityForm entityForm = formService.buildTranslationForm(form);
        entityForm.setId(String.valueOf(form.getTranslationId()));
       
        model.addAttribute("entityForm", entityForm);
View Full Code Here

Examples of org.broadleafcommerce.common.i18n.domain.Translation

    @Transactional("blTransactionManager")
    public Translation save(String entityType, String entityId, String fieldName, String localeCode,
            String translatedValue) {
        TranslatedEntity te = getEntityType(entityType);
       
        Translation translation = getTranslation(te, entityId, fieldName, localeCode);
       
        if (translation == null) {
            translation = dao.create();
            translation.setEntityType(te);
            translation.setEntityId(entityId);
            translation.setFieldName(fieldName);
            translation.setLocaleCode(localeCode);
        }
       
        translation.setTranslatedValue(translatedValue);
        return save(translation);
    }
View Full Code Here

Examples of org.broadleafcommerce.common.i18n.domain.Translation

    }
   
    @Override
    @Transactional("blTransactionManager")
    public Translation update(Long translationId, String localeCode, String translatedValue) {
        Translation t = dao.readTranslationById(translationId);
       
        // Check to see if there is another translation that matches this updated one. We'll remove it if it exists
        Translation t2 = dao.readTranslation(t.getEntityType(), t.getEntityId(), t.getFieldName(), localeCode);
        if (t2 != null && t != t2) {
            dao.delete(t2);
        }
       
        t.setLocaleCode(localeCode);
View Full Code Here

Examples of org.broadleafcommerce.common.i18n.domain.Translation

    }
   
    @Override
    @Transactional("blTransactionManager")
    public void deleteTranslationById(Long translationId) {
        Translation t = dao.readTranslationById(translationId);
        dao.delete(t);
    }
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.