com.rapidminer.operator.visualization.dependencies
Class TransitionGraphOperator

java.lang.Object
  extended by com.rapidminer.tools.AbstractObservable<Operator>
      extended by com.rapidminer.operator.Operator
          extended by com.rapidminer.operator.visualization.dependencies.TransitionGraphOperator
All Implemented Interfaces:
ConfigurationListener, PreviewListener, ResourceConsumer, ParameterHandler, LoggingHandler, Observable<Operator>

public class TransitionGraphOperator
extends Operator

This operator creates a transition graph from the given example set. The example set must have a specific structure with (at least) two columns where one column specifies the source of the transition and the second column specifies the target of the transition. Optionally, a third column can be specified in order to define the strength of the transition (this column can for example store the number of times this transition occurred after an aggregation).

The parameter "node_description" will be used for displaying information about the nodes if the information is made available via an example visualization operator. The string might contain macros pointing to attribute names.

Author:
Ingo Mierswa

Field Summary
static java.lang.String PARAMETER_NODE_DESCRIPTION
           
static java.lang.String PARAMETER_SOURCE_ATTRIBUTE
           
static java.lang.String PARAMETER_STRENGTH_ATTRIBUTE
           
static java.lang.String PARAMETER_TARGET_ATTRIBUTE
           
static java.lang.String PARAMETER_TYPE_ATTRIBUTE
           
 
Constructor Summary
TransitionGraphOperator(OperatorDescription description)
           
 
Method Summary
 TransitionGraph createTransitionGraph(ExampleSet exampleSet)
           
 void doWork()
          Performs the actual work of the operator and must be implemented by subclasses.
 java.util.List<ParameterType> getParameterTypes()
          Returns a list of ParameterTypes describing the parameters of this operator.
 
Methods inherited from class com.rapidminer.operator.Operator
acceptsInput, addError, addError, addValue, addWarning, apply, apply, assumePreconditionsSatisfied, checkAll, checkAllExcludingMetaData, checkDeprecations, checkForStop, checkIO, checkProperties, clear, clearErrorList, cloneOperator, collectErrors, createExperimentTree, createExperimentTree, createFromXML, createFromXML, createFromXML, createMarkedExperimentTree, createMarkedProcessTree, createProcessTree, createProcessTree, disconnectPorts, execute, fireUpdate, freeMemory, getAddOnlyAdditionalOutput, getApplyCount, getCompatibilityLevel, getDeliveredOutputClasses, getDeprecationInfo, getDesiredInputClasses, getDOMRepresentation, getEncoding, getErrorList, getExecutionUnit, getExperiment, getIncompatibleVersionChanges, getInput, getInput, getInput, getInputClasses, getInputDescription, getInputPorts, getIODescription, getLog, getLogger, getName, getNumberOfBreakpoints, getOperatorClassName, getOperatorDescription, getOutputClasses, getOutputPorts, getParameter, getParameterAsBoolean, getParameterAsChar, getParameterAsColor, getParameterAsDouble, getParameterAsFile, getParameterAsFile, getParameterAsInputStream, getParameterAsInt, getParameterAsMatrix, getParameterAsRepositoryLocation, getParameterAsString, getParameterHandler, getParameterList, getParameters, getParameterTupel, getParameterType, getParent, getPortOwner, getProcess, getResourceConsumptionEstimator, getRoot, getStartTime, getTransformer, getUserDescription, getValue, getValues, getXML, getXML, getXML, hasBreakpoint, hasBreakpoint, hasInput, inApplyLoop, isDebugMode, isDirty, isEnabled, isExpanded, isParallel, isParameterSet, isRunning, log, log, logError, logNote, logWarning, lookupOperator, makeDirty, makeDirtyOnUpdate, notifyRenaming, performAdditionalChecks, preAutoWire, processFinished, processStarts, producesOutput, propagateDirtyness, register, registerOperator, remove, removeAndKeepConnections, rename, resume, setBreakpoint, setCompatibilityLevel, setEnabled, setEnclosingProcess, setExpanded, setInput, setListParameter, setPairParameter, setParameter, setParameters, setUserDescription, shouldAutoConnect, shouldAutoConnect, shouldStopStandaloneExecution, toString, transformMetaData, unregisterOperator, updateExecutionOrder, walk, writeXML, writeXML
 
Methods inherited from class com.rapidminer.tools.AbstractObservable
addObserver, addObserverAsFirst, fireUpdate, removeObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAMETER_SOURCE_ATTRIBUTE

public static final java.lang.String PARAMETER_SOURCE_ATTRIBUTE
See Also:
Constant Field Values

PARAMETER_TARGET_ATTRIBUTE

public static final java.lang.String PARAMETER_TARGET_ATTRIBUTE
See Also:
Constant Field Values

PARAMETER_STRENGTH_ATTRIBUTE

public static final java.lang.String PARAMETER_STRENGTH_ATTRIBUTE
See Also:
Constant Field Values

PARAMETER_TYPE_ATTRIBUTE

public static final java.lang.String PARAMETER_TYPE_ATTRIBUTE
See Also:
Constant Field Values

PARAMETER_NODE_DESCRIPTION

public static final java.lang.String PARAMETER_NODE_DESCRIPTION
See Also:
Constant Field Values
Constructor Detail

TransitionGraphOperator

public TransitionGraphOperator(OperatorDescription description)
Method Detail

doWork

public void doWork()
            throws OperatorException
Description copied from class: Operator
Performs the actual work of the operator and must be implemented by subclasses. Replaces the old method apply().

Overrides:
doWork in class Operator
Throws:
OperatorException

createTransitionGraph

public TransitionGraph createTransitionGraph(ExampleSet exampleSet)
                                      throws UndefinedParameterError,
                                             UserError
Throws:
UndefinedParameterError
UserError

getParameterTypes

public java.util.List<ParameterType> getParameterTypes()
Description copied from class: Operator
Returns a list of ParameterTypes describing the parameters of this operator. The default implementation returns an empty list if no input objects can be retained and special parameters for those input objects which can be prevented from being consumed. ATTENTION! This will create new parameterTypes. For calling already existing parameter types use getParameters().getParameterTypes();

Specified by:
getParameterTypes in interface ParameterHandler
Overrides:
getParameterTypes in class Operator


Copyright © 2001-2009 by Rapid-I