Package org.dmg.pmml._40

Examples of org.dmg.pmml._40.DataFieldType


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetChebychev(ChebychevType newChebychev, NotificationChain msgs) {
    ChebychevType oldChebychev = chebychev;
    chebychev = newChebychev;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.COMPARISON_MEASURE_TYPE__CHEBYCHEV, oldChebychev, newChebychev);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here


   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCityBlock(CityBlockType newCityBlock, NotificationChain msgs) {
    CityBlockType oldCityBlock = cityBlock;
    cityBlock = newCityBlock;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.COMPARISON_MEASURE_TYPE__CITY_BLOCK, oldCityBlock, newCityBlock);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setClosure(ClosureType newClosure) {
    ClosureType oldClosure = closure;
    closure = newClosure == null ? CLOSURE_EDEFAULT : newClosure;
    boolean oldClosureESet = closureESet;
    closureESet = true;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, _40Package.INTERVAL_TYPE__CLOSURE, oldClosure, closure, !oldClosureESet));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void unsetClosure() {
    ClosureType oldClosure = closure;
    boolean oldClosureESet = closureESet;
    closure = CLOSURE_EDEFAULT;
    closureESet = false;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.UNSET, _40Package.INTERVAL_TYPE__CLOSURE, oldClosure, CLOSURE_EDEFAULT, oldClosureESet));
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetClusteringModel(ClusteringModelType newClusteringModel, NotificationChain msgs) {
    ClusteringModelType oldClusteringModel = clusteringModel;
    clusteringModel = newClusteringModel;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SEGMENT_TYPE__CLUSTERING_MODEL, oldClusteringModel, newClusteringModel);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetComparisons(ComparisonsType newComparisons, NotificationChain msgs) {
    ComparisonsType oldComparisons = comparisons;
    comparisons = newComparisons;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.CLUSTERING_FIELD_TYPE__COMPARISONS, oldComparisons, newComparisons);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCompoundPredicate(CompoundPredicateType newCompoundPredicate, NotificationChain msgs) {
    CompoundPredicateType oldCompoundPredicate = compoundPredicate;
    compoundPredicate = newCompoundPredicate;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.NODE_TYPE__COMPOUND_PREDICATE, oldCompoundPredicate, newCompoundPredicate);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCompoundPredicate(CompoundPredicateType newCompoundPredicate, NotificationChain msgs) {
    CompoundPredicateType oldCompoundPredicate = compoundPredicate;
    compoundPredicate = newCompoundPredicate;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SEGMENT_TYPE__COMPOUND_PREDICATE, oldCompoundPredicate, newCompoundPredicate);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetCompoundPredicate(CompoundPredicateType newCompoundPredicate, NotificationChain msgs) {
    CompoundPredicateType oldCompoundPredicate = compoundPredicate;
    compoundPredicate = newCompoundPredicate;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.COMPOUND_RULE_TYPE__COMPOUND_PREDICATE, oldCompoundPredicate, newCompoundPredicate);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

    double k = 2 * Math.PI / (data.numAttributes() - 1);
    // Add DataDictionary
    Enumeration enumerAttributes = data.enumerateAttributes();
    while (enumerAttributes.hasMoreElements()) {
      Attribute attr = (Attribute) enumerAttributes.nextElement();
      DataFieldType dataField = _40Factory.eINSTANCE
          .createDataFieldType();
      dataField.setDataType(DATATYPE.DOUBLE); // DATATYPE
      dataField.setName(attr.name()); // String
      dataField.setOptype(OPTYPE.CONTINUOUS); // OPTYPE
      String[] strCoordinates = null;
      strCoordinates = createAnchors(attr.index(), k);
      // Add Extension - Coordinate X
      ExtensionType extension = _40Factory.eINSTANCE
          .createExtensionType();
      extension.setName("xCoordinate");
      extension.setValue(strCoordinates[0]);
      dataField.getExtension().add(extension);
      // Add Extension - Coordinate y
      extension = _40Factory.eINSTANCE.createExtensionType();
      extension.setName("yCoordinate");
      extension.setValue(strCoordinates[1]);
      dataField.getExtension().add(extension);
      dataDictionary.getDataField().add(dataField);
    }
    DataFieldType dataField = _40Factory.eINSTANCE.createDataFieldType();
    dataField.setDataType(DATATYPE.STRING); // DATATYPE
    dataField.setName("class"); // String
    dataField.setOptype(OPTYPE.CATEGORICAL); // OPTYPE
    dataDictionary.getDataField().add(dataField);
    Attribute classAttr = data.classAttribute();
    Enumeration values = classAttr.enumerateValues();

    while (values.hasMoreElements()) {
      ValueType valueType = _40Factory.eINSTANCE.createValueType();
      valueType.setValue(values.nextElement().toString());
      dataField.getValue().add(valueType);
    }

    Enumeration<?> helpInstances = data.enumerateInstances();
    while (helpInstances.hasMoreElements()) {
      Instance instance = (Instance) helpInstances.nextElement();
View Full Code Here

TOP

Related Classes of org.dmg.pmml._40.DataFieldType

Copyright © 2018 www.massapicom. 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.