Examples of CriterionType


Examples of org.dmg.pmml._40.CriterionType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setCriterion(CriterionType newCriterion) {
    CriterionType oldCriterion = criterion;
    criterion = newCriterion == null ? CRITERION_EDEFAULT : newCriterion;
    boolean oldCriterionESet = criterionESet;
    criterionESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.RULE_SELECTION_METHOD_TYPE__CRITERION, oldCriterion, criterion, !oldCriterionESet));
View Full Code Here

Examples of org.dmg.pmml._40.CriterionType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetCriterion() {
    CriterionType oldCriterion = criterion;
    boolean oldCriterionESet = criterionESet;
    criterion = CRITERION_EDEFAULT;
    criterionESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, _40Package.RULE_SELECTION_METHOD_TYPE__CRITERION, oldCriterion, CRITERION_EDEFAULT, oldCriterionESet));
View Full Code Here

Examples of org.dmg.pmml._40.CriterionType

   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String getText(Object object) {
    CriterionType labelValue = ((RuleSelectionMethodType)object).getCriterion();
    String label = labelValue == null ? null : labelValue.toString();
    return label == null || label.length() == 0 ?
      getString("_UI_RuleSelectionMethodType_type") :
      getString("_UI_RuleSelectionMethodType_type") + " " + label;
  }
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

        Resource worker = transactionService
                .runOnTransaction(new IOnTransaction<Resource>() {
                    @Override
                    public Resource execute() {
                        Worker result = givenValidWorker();
                        CriterionType type = createCriterionType("testType");
                        Criterion parent = createCriterion("parent", type);
                        parentCriteron[0] = parent;
                        Criterion child = createCriterion("child", type);
                        child.setParent(parent);
                        addSatisfactionsOn(result,
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

        assertThat(resource.getId(), equalTo(worker.getId()));
    }

    private Collection<Criterion> createCriterions() {
        List<Criterion> result = new ArrayList<Criterion>();
        CriterionType type = createCriterionType("criterionTypeTest");
        result.add(createCriterion("criterion1", type));
        result.add(createCriterion("criterion2", type));
        return result;
    }
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

        result.add(createCriterion("criterion2", type));
        return result;
    }

    private CriterionType createCriterionType(String name) {
        CriterionType result = CriterionType.create(name, "");
        criterionTypeDAO.save(result);
        return result;
    }
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

    public static Criterion createValidCriterion() {
        return createValidCriterion(UUID.randomUUID().toString(),"");
    }

    public static Criterion createValidCriterion(String name,String description) {
        CriterionType criterionType = CriterionTypeDAOTest
                .createValidCriterionType();
        return Criterion.withNameAndType(name, criterionType);
    }
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

        assertFalse(criterionDAO.exists(criterion.getId()));
    }

    private Criterion givenACriterionWithAnExistentType() {
        this.criterion = createValidCriterion();
        CriterionType type = ensureTypeExists(CriterionTypeDAOTest
                .createValidCriterionType());
        this.criterion.setType(type);
        return this.criterion;
    }
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

        CriterionSatisfaction criterionSatisfaction = CriterionSatisfaction.create(year(year), criterion, worker);
        return criterionSatisfaction;
    }

    private void saveCriterionType(Criterion criterion) {
        CriterionType criterionType = criterion.getType();
        if (criterionTypeDAO.existsOtherCriterionTypeByName(criterionType)) {
            try {
                criterionType = criterionTypeDAO.findUniqueByName(criterionType);
            } catch (InstanceNotFoundException ex) {
            }
View Full Code Here

Examples of org.libreplan.business.resources.entities.CriterionType

    }

    public final static CriterionType toEntity(
        CriterionTypeDTO criterionTypeDTO) {

        CriterionType criterionType = CriterionType.createUnvalidated(
            StringUtils.trim(criterionTypeDTO.code),
            StringUtils.trim(criterionTypeDTO.name),
            StringUtils.trim(criterionTypeDTO.description),
            criterionTypeDTO.allowHierarchy,
            criterionTypeDTO.allowSimultaneousCriterionsPerResource,
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.