input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public extended jtext field model get model return this model
|
this method returns the model of this component
|
public boolean is at least int major int minor int build number return this compare to new version number major minor build number 0
|
returns if this number is at least as high as the given arguments
|
public boolean is at most int major int minor int build number return this compare to new version number major minor build number 0
|
returns if this number is at most as high as the given arguments
|
public void set coordinate transformation coordinate transformation transformation this coordinate transformation transformation this chart panel set coordinate transformation transformation
|
this method sets the coordinate transformation for this component
|
private double get port spacing port port double d port spacings get port if d null return d else return 0
|
returns the distance to the next port below this port
|
private jpopup menu create operator popup menu jpopup menu menu new jpopup menu menu add this info operator action return menu
|
creates a new popup menu for the selected operator
|
private string check for match string given string collection string collection of strings boolean case sensitive if given string null collection of strings null return null string return string null collections sort new array list string collection of strings for string vector string collection of strings if vector string null continue if case sensitive if vector string starts with given string return string vector string break else if vector string to lower case locale english starts with given string to lower case locale english return string vector string break return return string
|
returns the first string which starts with the given string
|
public string get combo value int row return prop info row value
|
returns the current value of a combo item
|
public string get tooltip int row return prop info row description
|
returns the tooltip for the given row
|
public properties get properties properties props new properties for int i 0 i get row count i empty values mean field not set don t add to properties and only add if manual override has been checked if prop info i value null equals prop info i value override get i props put prop info i name prop info i value return props
|
returns the user edited properties
|
public properties get connection properties if return value confirm dialog ok option return driver property info table model table get model get properties else return null
|
returns the user edited connection properties or
|
protected string get info text return i18 n get message i18 n get guibundle get key message this arguments
|
returns the internationalized info text for this dialog
|
protected string get dialog title return i18 n get message i18 n get guibundle get key title this arguments
|
returns the internationalized title for this dialog
|
private image icon get icon operator operator image icon icon if operator is enabled this is enabled return icon else return image icon uimanager get look and feel get disabled icon dummy label icon
|
returns the given icon in an appropriate enabled disabled state
|
protected jbutton make ok button return make ok button ok
|
will be default button
|
protected jbutton make cancel button return make cancel button cancel
|
will listen to escape
|
protected jbutton make close button action action new resource action close private static final long serial version uid 1 l override public void action performed action event e was confirmed false close get root pane get input map jcomponent when in focused window put key stroke get key stroke key event vk escape 0 false close get root pane get action map put close action jbutton button new jbutton action get root pane set default button button return button
|
will be default button and listen to escape
|
public boolean was confirmed return was confirmed
|
returns true iff the user pressed the generated ok button
|
public void fire state changed change event e new change event this for change listener listener listeners listener state changed e
|
should be called whenever a field was updated
|
protected boolean perform entering action wizard step direction direction return perform entering action
|
this method is called when the step is entered
|
protected boolean perform leaving action wizard step direction direction return perform leaving action
|
this method is called when the step is left
|
public color get selected color return color
|
this method can be used to retrieve the selected color
|
public void set progress final string label final int completed final int total swing utilities invoke later new runnable override public void run if completed total if progress bar is enabled progress bar set enabled true progress bar set string label progress bar set maximum total progress bar set value completed else progress bar set string progress bar set value 0 progress bar set enabled false progress bar repaint
|
sets the progress in the status bar
|
public void enable on edit in progress boolean enable resource action adapter action resource action adapter get action if enable action set condition conditional action edit in progress conditional action dont care else action set condition conditional action edit in progress conditional action disallowed
|
enables or disables the menu if an edit is in progress
|
public void start executor execute make wrapper
|
note that this method has nothing to do with thread
|
public void start and wait try executor submit make wrapper get catch interrupted exception e log service get root log level severe cannot execute name e log service get root log level severe i18 n get message log service get root get resource bundle com rapidminer gui tools progress thread executing error name e catch execution exception e log service get root log level severe cannot execute name e log service get root log level severe i18 n get message log service get root get resource bundle com rapidminer gui tools progress thread executing error name e
|
enqueues this task and waits for its completion
|
protected void check cancelled throws progress thread stopped exception if cancelled throw new progress thread stopped exception
|
if cancelled throws a runtime exception to stop the thread
|
public void action performed action event e list runnable copied animation renderers new linked list runnable animation renderers for runnable runnable copied animation renderers runnable run repaint
|
this method is used for being repainted for
|
public void install tool tip adding a new extended tool tip window new tool tip window new table tool tip provider this set tool tip text null
|
registers a new
|
public void selection changed set enabled dependency null is enabled for selection dependency get selected object
|
this might be called whenever the selection of the given
|
public void set dependency selection dependency dependency this dependency dependency
|
this sets the dependency of this action
|
public void add to action map jcomponent component int condition key stroke key stroke key stroke get value accelerator key if key stroke null component get input map condition put key stroke key component get action map put key this else log service get root warning cannot add action key to input map no accelerator defined log service get root log level warning com rapidminer gui tools resource action add action key error key
|
adds the action to the input and action map of the component
|
private void set edit enabled boolean enabled is editing enabled get editor get caret set visible enabled apply changes set enabled enabled discard changes set enabled enabled for action action edit actions action set enabled enabled
|
enables disables all actions for editing html text
|
public void prompt set visible true
|
shows the cron editor dialog
|
public void new process if close stop process set process new process true add to undo list if false equals parameter service get parameter value property rapidminer gui save on process creation save action save get process
|
creates a new process
|
public void run process if get process state process process state stopped run if is changed get process get process location null is tutorial mode if decision remembering confirm dialog confirm action save before run property rapidminer gui save before run save action save get process process thread new process thread main frame this process try process thread start catch exception t swing tools show simple error message cannot start process t else process resume
|
runs or resumes the current process
|
public void stop process if get process state process process state stopped get process get logger info process stopped completing current operator get status bar set special text process stopped completing current operator if process thread null if process thread is alive process thread set priority thread min priority process thread stop process
|
can be used to stop the currently running process
|
public boolean condition ok example example for attribute attribute example get attributes if double is na n example get value attribute return false return true
|
returns true if the example does not contain missing values
|
private void init double ratio int size partition builder builder log service get global log create new partition using a builder get class get name log service status log service get root log level fine com rapidminer example set partition creating new partition using builder get class get name elements builder create partition ratio size init elements ratio length
|
creates a partition from the given ratios
|
private element write attribute meta data attribute role attribute role int sourcecol document document boolean sparse string tag attribute if attribute role is special tag attribute role get special name attribute attribute attribute role get attribute return write attribute meta data tag attribute sourcecol document sparse
|
writes the data of this attribute in the given stream
|
public void read examples data row reader i boolean permute read examples i permute null
|
reads the examples into memory and permutes the order
|
public void read examples data row reader i boolean permute random random data list clear while i has next if permute if random null random new random int index random next int data list size 1 data list add index i next else data list add i next
|
reads the examples into memory and permutes the order
|
public void add data row data row data row data row trim data list add data row this has to be called in order to make sure the row matches the current column count data row ensure number of columns columns
|
convenience method allowing the adding of data rows without a data row
|
public data row get data row int index try this result set absolute index 1 database data row data row new database data row result set return data row catch sqlexception e log service get global log cannot retrieve data row with absolute row index e get message log service warning log service get root log level warning com rapidminer example table database example table retrieving data row error e get message return null
|
returns the data row with the desired row index
|
public int get negative index return negative index
|
returns the index of the first value if this attribute is a
|
public int get positive index return positive index
|
returns the index of the second value if this attribute is a
|
public int map string string str if str null return 1 lookup string in hashtable int index get index str if string is not yet in the map add it if index 0 new string insert str new string str we copy the name if the underlying char array value is larger than needed index to symbol map add str index index to symbol map size 1 symbol to index map put str index return index
|
returns the index for the nominal attribute value code str code
|
public int add attribute attribute a if a null throw new illegal argument exception attribute must not be null else int index 1 attribute original a a attribute a clone if unused column list size 0 if seems to be something free synchronize and check again synchronized unused column list if unused column list size 0 index unused column list remove 0 attributes set index a else index attributes size attributes add a else index attributes size attributes add a a set table index index original set table index index return index
|
adds the attribute to the list of attributes assigning it a free column
|
public void skip line try read line catch exception e log service get global log problem during skipping of line e get message log service warning log service get root log level warning com rapidminer example table file data row reader problem during skipping of line e get message
|
skips the next line if present
|
public void add macro string macro string value this macro map put macro value
|
adds a macro to this macro handler
|
private void set title if hostname null try hostname inet address get local host get host name catch unknown host exception e hostname if this process null process location loc process get process location if loc null set title loc get short name changed u2013 title hostname else set title new process changed u2013 title hostname else set title title hostname
|
sets the window title rapid miner filename an asterisk if process was
|
public void remove attribute weight string attribute name this weight map remove attribute name
|
this method removes the given attribute weight from this object
|
public void export process element father element process process element root element xmltools add tag father element element process root element set attribute version rapid miner get long version document doc root element get owner document root element append child export process context process get context doc if process get annotations is empty root element append child export annotations process get annotations doc root element append child export operator process get root operator false doc
|
this method will return append the description of this process to the given
|
public void load library operator library library libraries add library register operators todo check if we need this at all for string operator key library get operator keys try operator service register operator library get description operator key library get documentation bundle catch operator creation exception e todo after removing instanciation e print stack trace i think can be replaced by try library register operators catch operator creation exception e todo after removing instanciation e print stack trace inform listener for operator library listener listener listeners listener inform library loaded library
|
this method loads the given library and registers all contained operators
|
public void unload library operator library library libraries remove library register operators for string operator key library get operator keys operator service unregister operator library get description operator key inform listener for operator library listener listener listeners listener inform library unloaded library
|
this method loads the given library and registers all contained operators
|
public void register operator library listener operator library listener listener this listeners add listener
|
this adds a listener to the operator library service that
|
public int get number of libraries return libraries size
|
this returns the number of the currently loaded libraries
|
public operator library get library int index return libraries get index
|
this returns the library with the given index
|
public int get index of operator library child return libraries index of child
|
this returns the index of the given operator library
|
public void notifiy operator changed library operator description library operator description notify library changed library operator description get library
|
this notifies that the given operator has changed
|
public void notify library changed operator library operator library inform listener for operator library listener listener listeners listener inform library changed operator library
|
this notifies that the given library has changed
|
public void update recent file list recent files menu remove all list process location recent files rapid miner gui get recent files int j 1 for final process location recent location recent files jmenu item menu item new jmenu item j recent location to menu string menu item set mnemonic 0 j menu item add action listener new action listener override public void action performed action event e if rapid miner gui get main frame close open action open recent location true recent files menu add menu item j
|
updates the list of recently used files
|
public input port get input port return in port
|
returns the input port associated with this parameter type
|
public string to xmlstring string value return value
|
subclasses may override this method to transform the string before
|
public string get default value as string return to string get default value
|
returns the correct string representation of the default value
|
public boolean is expert return expert is optional
|
returns true if this parameter can only be seen in expert mode
|
public boolean is deprecated return this is deprecated
|
this returns whether this parameter is deprecated
|
public void illegal value object illegal object corrected log service get global log illegal value illegal for parameter key has been corrected to corrected to string log service warning log service get root log level warning com rapidminer parameter parameter type illegal value for parameter new object illegal key corrected to string
|
can be called in order to report an illegal parameter value which is
|
public parameter type attribute get attribute parameter type return attribute parameter
|
this method returns the referenced attribute parameter or null if
|
protected boolean is filtered out attribute meta data amd return false
|
this method might be overridden by subclasses in order to
|
public meta data get meta data meta data meta data null if meta data provider null meta data meta data provider get meta data return meta data
|
returns the meta data currently avaiable by the
|
private void parse arguments string argv repository location null for string element argv if f equals element read from file true else repository location element if repository location null print usage
|
parses the commandline arguments
|
public boolean set parameter string key string value boolean known type true if value null key to value map remove key else parameter type type key to type map get key if type null value type transform new value value known type true key to value map put key value fire update key return known type
|
sets the parameter for the given key after performing a range check
|
public void add macro pair string string macro for pair string string existing macro this macros if existing macro get first equals macro get first overwrite existing existing macro set second macro get second return this macros add macro fire update this
|
adds a macro to the list or sets an existing one
|
public void append xml element to element boolean hide default document doc for string key key to type map key set string value key to value map get key parameter type type key to type map get key element param element if type null param element type get xml key value hide default doc else param element doc create element parameter param element set attribute key key param element set attribute value value to string if param element null to element append child param element
|
appends the elements describing these parameters to the given element
|
public void superimpose process context other if other null return for pair string string macro other macros this macros add macro for int i 0 i other input repository locations size i string loc other input repository locations get i if loc null loc is empty this set input repository location i loc for int i 0 i other output repository locations size i string loc other output repository locations get i if loc null loc is empty this set output repository location i loc
|
merges the current context with the given one
|
public void rename parameter string old attribute name string new attribute name string value key to value map get old attribute name if value null key to value map remove old attribute name key to value map put new attribute name value
|
renames a parameter e
|
public boolean is set string parameter key if key to value map contains key parameter key return true else check for default if we have a type registered for this key parameter type type key to type map get parameter key if type null return false return type get default value null
|
returns true if the parameter is set or has a default value
|
public boolean is specified string key return key to value map contains key key
|
returns true iff the parameter value was explicitly set as opposed to
|
public void set all parameters parameters key to value map clear key to value map put all parameters key to value map fire update
|
clears the parameters map and adds all given parameters
|
public void add all parameters parameters key to value map put all parameters key to value map fire update
|
adds all parameters to the parameters map
|
private int get index int indices return sum product indices combinations
|
computes the single dimension array index from the given
|
protected string get xmltag return xml tag
|
tag to put around statistic map when exported as xml
|
public void count operator op operator statistics value type count op type statistics scope values
|
adds 1 to the statistics value for the given operator in all scopes
|
private file get config file configurator configurator return file system service get user config file configurable configurator get type id xml
|
returns the config file in which this data will be saved
|
public group tree find or create group string fully qualified group name operator doc bundle bundle string group keys fully qualified group name split group tree group this for int i 0 i group keys length group null i group group get or create sub group group keys i bundle return group
|
finds or creates the group for the given fully qualified name dot separated
|
public string get user key return random key
|
returns the user key for this session
|
public date get next transmission if next transmission null schedule transmission from now return next transmission
|
returns the date at which the next transmission should be scheduled
|
public t create string name map string string parameters throws configuration exception t instance try instance get configurable class new instance instance set name name instance configure parameters catch instantiation exception e throw new configuration exception cannot instantiate get configurable class e catch illegal access exception e throw new configuration exception cannot instantiate get configurable class e return instance
|
creates a new
|
public string get name return i18 n get message i18 n get guibundle gui configurable get i18 nbase key name
|
the display name used in ui components
|
public configurable lookup string type id string name repository accessor accessor throws configuration exception check access type id name accessor map string configurable name to configurable configurables get type id if name to configurable null throw new configuration exception no such configuration type type id configurable result name to configurable get name if result null configurator configurator configurators get type id throw new configuration exception no such configured object of name name of configurator get name return result
|
looks up a
|
protected void check access string type id string name repository accessor accessor throws configuration exception
|
checks access to the
|
public void register configurable string type id configurable configurable throws configuration exception map string configurable configurables for type configurables get type id if configurables for type null throw new configuration exception no such configuration type type id configurables for type put configurable get name configurable
|
adds the configurable to internal maps
|
public void init example set example set throws operator exception init example set get attributes example set get attributes
|
before using a similarity measure it is needed to initialize
|
private void open entry t entry configuration panel update components entry update currently edited entry currently edited entry entry is new entry false
|
opens a new entry updates the configuration panel with the new entrys values
|
public void install additional ports input ports input ports parameter handler parameter handler
|
if the computation of this distance measure depends on additional
|
public void save configuration throws configuration exception for string type id get all type ids configurator configurator get configurator type id save configuration type id
|
saves the configuration e
|
private void fire selected operator changed list operator currently selected for process editor editor process editors get listeners process editor class editor set selection currently selected
|
notifies the main editor of the change of the currently selected operator
|
protected t get configurable from input fields throws configuration exception t temp entry configurator create temp collections string string empty map configuration panel update configurable temp entry return temp entry swing tools show simple error message configuration dialog general e1 e1 get message
|
resolves the configurable which derives from the input field values
|
private string fit string string string graphics2 d g int max width rectangle2 d bounds g get font get string bounds string g get font render context if bounds get width max width return string while g get font get string bounds string g get font render context get width max width if string length 0 return string string substring 0 string length 1 return string
|
abbreviates the string using
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.