EDOBE XDOM PMML Bedienungsanleitung Seite 38

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 98
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 37
38
numOutputs="2" >
<DisplayInfo labelText="Second Copy Columns"
defaultLabelText="Second Copy Columns"
smallIcon="default_small.gif"
largeIcon="default_large.gif" />
</ActivityNode>
Extended Java
Version
The previous implementations are relatively simple in that they use a
minimal number of computation classes. Let’s extend this to cover
additional functionality that will often be needed for a new node:
Add a property dialog
Validate whether required properties are specified
Provide a custom viewer
Use lower-level buffer manipulation routines
In this example we will write all of the code in Java. If we prefer to
use C++, we still need to use Java for the GUI classes. We can use
C++ for the computation as described in the previous example.
This example will use a single input and output. Multiple inputs and
outputs would require a more sophisticated dialog than the one
presented here.
Node Model The node model class defined in the file ThirdCopyNodeModel.java
will take care of launching the property dialog, launching the viewer,
and validating whether the required properties are set.
import com.insightful.miner.*;
import org.w3c.dom.Element;
import org.w3c.dom.Document;
import javax.xml.parsers.DocumentBuilderFactory;
import java.awt.Frame;
import javax.swing.JOptionPane;
import java.util.Vector;
/**
* Node model for example of a node copying specified
* columns for a single input to an output.
*/
Seitenansicht 37
1 2 ... 33 34 35 36 37 38 39 40 41 42 43 ... 97 98

Kommentare zu diesen Handbüchern

Keine Kommentare