Package org.dmg.pmml._40

Examples of org.dmg.pmml._40.DataFieldType


        DataDictionaryType dataDictionary = _40Factory.eINSTANCE.createDataDictionaryType();
        dataDictionary.setNumberOfFields(BigInteger.valueOf(attributesArry.size()));
        pmml.setDataDictionary(dataDictionary);
        for (int i=0; i<attributesArry.size(); i++) {
      String [] helpBox = attributesArry.get(i);
            DataFieldType dataFieldType = _40Factory.eINSTANCE.createDataFieldType();
            dataFieldType.setDataType(associateDatatype(helpBox[2]))//DATATYPE
            dataFieldType.setName(helpBox[0])//String
            dataFieldType.setOptype(associateOptype(helpBox[1]))//OPTYPE
            if (dataFieldType.getOptype().equals(OPTYPE.CATEGORICAL)) {
              for (int j=3; j<helpBox.length; j++) {
                ValueType valueType = _40Factory.eINSTANCE.createValueType();
                valueType.setValue(helpBox[j]);
                dataFieldType.getValue().add(valueType);
              }
            }
            dataDictionary.getDataField().add(dataFieldType);
        }
   
View Full Code Here


   
    ArrayList<DataFieldType> cRelations = new ArrayList<DataFieldType>();
   
    for (Object o : result) {     
      if (o instanceof DataFieldType ) {         
        DataFieldType dft = (DataFieldType)o;
   
       
       
        if (!dft.getName().equals("class")) {
   
        cRelations.add(dft);
         
        if (oldDataFieldType != null) {
         
         
          tRelations = new ArrayList<DataFieldType>();
         
          tRelations.add(oldDataFieldType);       
                                     
          cmd = SetCommand.create(diagram.getEditingDomain(), dft,
              (EStructuralFeature) dft.eClass().getEStructuralFeature(
                  "relation"), tRelations);
         
          diagram.getEditingDomain().getCommandStack().execute(cmd);         
         
          oldDataFieldType  = dft;
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDecisionTree(DecisionTreeType newDecisionTree, NotificationChain msgs) {
    DecisionTreeType oldDecisionTree = decisionTree;
    decisionTree = newDecisionTree;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.NODE_TYPE__DECISION_TREE, oldDecisionTree, newDecisionTree);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDerivedField(DerivedFieldType newDerivedField, NotificationChain msgs) {
    DerivedFieldType oldDerivedField = derivedField;
    derivedField = newDerivedField;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.NEURAL_OUTPUT_TYPE__DERIVED_FIELD, oldDerivedField, newDerivedField);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDerivedField(DerivedFieldType newDerivedField, NotificationChain msgs) {
    DerivedFieldType oldDerivedField = derivedField;
    derivedField = newDerivedField;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.BAYES_INPUT_TYPE__DERIVED_FIELD, oldDerivedField, newDerivedField);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetEuclidean(EuclideanType newEuclidean, NotificationChain msgs) {
    EuclideanType oldEuclidean = euclidean;
    euclidean = newEuclidean;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.COMPARISON_MEASURE_TYPE__EUCLIDEAN, oldEuclidean, newEuclidean);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetExtension1(ExtensionType newExtension1, NotificationChain msgs) {
    ExtensionType oldExtension1 = extension1;
    extension1 = newExtension1;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SEGMENT_TYPE__EXTENSION1, oldExtension1, newExtension1);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFalse(FalseType newFalse, NotificationChain msgs) {
    FalseType oldFalse = false_;
    false_ = newFalse;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.NODE_TYPE__FALSE, oldFalse, newFalse);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFalse(FalseType newFalse, NotificationChain msgs) {
    FalseType oldFalse = false_;
    false_ = newFalse;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.SEGMENT_TYPE__FALSE, oldFalse, newFalse);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetFalse(FalseType newFalse, NotificationChain msgs) {
    FalseType oldFalse = false_;
    false_ = newFalse;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.COMPOUND_RULE_TYPE__FALSE, oldFalse, newFalse);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
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.