input
stringlengths
10
828
output
stringlengths
5
107
public int get index graph transfer object graph object e integer index edge index get e if index null pair transfer endpoints graph get endpoints e transfer u endpoints get first transfer v endpoints get second if u equals v index get index graph e v else index get index graph e u v int v index int value if v 0 return 2 else return 3 return v
returns the index for the specified edge
public void reset graph transfer object graph object e pair transfer endpoints graph get endpoints e get index graph e endpoints get first get index graph e endpoints get first endpoints get second
resets the indices for this edge and its parallel edges
public punto accion punto p return new punto this get x p get x this get y p get y
insert the methods description here
public vector2 d prod double a return new vector2 d this get x a this get y a
insert the methods description here
public double prod vector2 d w return this get x w get x this get y w get y
insert the methods description here
public vector2 d suma vector2 d w return new vector2 d this get x w get x this get y w get y
insert the methods description here
public void set do not persist set set do not persist set do not persist set do not persist set
identify the set of targets that should not be automatically persisted when
public void set workspace timeout in seconds long workspace timeout in seconds workspace timeout in seconds workspace timeout in seconds
identify how long in seconds a workspace should remain idle in memory
public void set persist change info history boolean persist change info history persist change info history persist change info history
identify whether or not blackboard should automatically persist
public void set terminate on error boolean terminate on error terminate on error terminate on error
identify whether or not blackboard should automatically
public void set max blackboard thread int max blackboard thread max blackboard thread max blackboard thread
set the maximum number of threads that should be available to
public void set max scheduled blackboard thread int max scheduled blackboard thread max scheduled blackboard thread max scheduled blackboard thread
set the maximum number of threads that should be available to
public void set max workspace thread int max workspace thread max workspace thread max workspace thread
set the maximum number of threads that should be available to
public void set max persistence thread int max persistence thread max persistence thread max persistence thread
set the maximum number of threads that should be available to
public void set max workspace int max workspace max workspace max workspace
set the maximum number of
public void set time plans boolean time plans time plans time plans
turn on plan processing monitoring
public void set apps home string apps home apps home apps home
the root directory for all the apps to be run by this blackboard
public int get patient id return this patient id
gets the patient id of this patient check rreport pk
public patient check rreport pk get patient check rreport pk return this patient check rreport pk
gets the patient check rreport pk of this patient check rreport
public int get check id return this check id
gets the check id of this patient check rreport pk
public patient get patient return this patient
gets the patient of this patient check rreport
public void set patient check rreport collection collection patient check rreport patient check rreport collection this patient check rreport collection patient check rreport collection
sets the patient check rreport collection of this check to the specified value
public check type get check return this check
gets the check of this patient check rreport
public void set check check type check this check check
sets the check of this patient check rreport to the specified value
public date get delivery date return this delivery date
gets the delivery date of this patient
public void set delivery date date delivery date this delivery date delivery date
sets the delivery date of this patient to the specified value
public string get diagnosys return this diagnosys
gets the diagnosys of this patient
public void set diagnosys string diagnosys this diagnosys diagnosys
sets the diagnosys of this patient to the specified value
public void set tube collection collection tube tube collection this tube collection tube collection
sets the tube collection of this patient to the specified value
public boolean check loadable string name input stream input stream class path manager find class name if input stream null return false class file class file new class file try data input stream data stream new data input stream preread input stream input stream class file read from data stream catch ioexception e system err println ioexception for name input stream e print stack trace return false catch invalid class file exception icfe system err println bad class file for name input stream icfe print stack trace return false return true
check that specified
public void fix predefined types fix predefined type java lang object fix predefined type java io serializable fix predefined type java lang comparable fix predefined type java lang string fix predefined type java lang cloneable fix predefined type java lang throwable fix predefined type java lang exception fix predefined type java lang runtime exception fix predefined type java lang error
get bytecode for predefined types except those were compiled
public int get type index xxx should probably migrate this down into ref type d return ref
return a switch key that is used to save us from using a
abstract public int get int value a method like those in link number
a method like those in
abstract public long get long value a method like those in link number
a method like those in
abstract public float get float value a method like those in link number
a method like those in
public void set impl abstract type dec impl this impl impl
do not use this method
public boolean is representable in type d ty switch ty get type index case type d byte return byte min value int value int value byte max value case type d short return short min value int value int value short max value case type d char return character min value int value int value character max value case type d int case type d long case type d float case type d double return true default return false
this procedure is only called to verify the edge case in the
public astobject fold return this
this should only be called from
public void build context context context if context instanceof type context type dec parent type dec context get enclosing type dec this parent type dec add type dec this false context add type dec this build partial context context get body get body build context make type context context
3 4 phases to building a context
private void check type decs compilation unit cu boolean apply list type decs cu get defined types final int n type decs size for int j 0 j n j dec dec dec type decs get j if dec instanceof type dec type dec type dec type dec dec if type dec get instanceof aspect of dec type dec get modifiers is privileged new privilege fixer walker get compiler type dec apply walk type dec
scans compilation unit for privilaged aspects and
public void pack super pack center helper center this
packs and centers this component
protected jroot pane create root pane jroot pane root pane new jroot pane action listener listener new action listener public void action performed action event e set visible false dispose key stroke stroke key stroke get key stroke key event vk escape 0 root pane register keyboard action listener stroke jcomponent when in focused window return root pane
create a javax
public void show pack super show
first packs and then shows this component
public object get value throws static join point exception check dynamic join point return value
returns the value of the field on entry to the joinpoint
public object get target object throws static join point exception check dynamic join point return target object
returns null when calling static for consistency with get executing object
public object get executing object throws static join point exception check dynamic join point return executing object
in a static initializer or a static method get executing object returns null
public void update database string fname query mgr update database fname update database
a method to update the database with only one file
public tree popup create components action popup constants none constructor
creates new editor popup
public void mouse released mouse event e do nothing for now may show popup e mouse released
invoked when a mouse button has been released on a component
public void mouse pressed mouse event e do nothing for now may show popup e mouse pressed
invoked when a mouse button has been pressed on a component
public void mouse clicked mouse event e if e get click count click count fire go to code e get source if else handle hyper link click e get source mouse clicked
invoked when the mouse has been clicked on a component
public void start result set change the result set s parent to the root node curr node tree get root start result set
start a set of results
public void shut down boolean i frame close
shuts down the editor and all its components
public editor popup ieditor own create components owner own action editor popup constants none constructor
constructs an editor popup
public void display editor display display
displays a an emplty editor window
public void update java util observable o object arg set changed notify observers arg update
this method is called whenever the observed object is changed
public ty ru ba result parser constructor
creates new ty ru ba result parser
protected void configure browser impl browser impl b object args b init this init props get property database init props get property queryinterface init props get property storage init props get property metaipextension init props get property sourceipextension init props get property executor init props get property existingqueriesinterface configure browser impl
configures an executor object
public prolog list string list value trim braces list trim string tokenizer tokens new string tokenizer value false while tokens has more elements add tokens next element while constructor
creates a new prolog list
public void append to classpath string cpath string existing system get property s classpathstr do not append if the classpath already has an entry for cpath otherwise append cpath to the exiting and set it as the classpath if existing null existing cpath if if existing index of cpath 1 existing cpath if system set property s classpathstr existing return append to class path
appends to the classpath programmatically
private void stop search if there is something going on the user thread stop it if user thread null executor stop search user thread interrupt user thread null enable furhter executions browser get execute button set enabled true if browser get status bar set text ready browser get status bar repaint stop search
stops the execution of a query abruptly
public string get display name return writing logic facts
returns the name of this compiler pass
public string get display name return writing logic facts get display name
returns the name of this compiler pass
public boolean equals object o result r result o if r get key equals key r get value equals value return true return false equals
tests the equality of two result objects
public string find all files string dirs return database find all files dirs find all files
finds all files with a certain extension pre specified to
public void set input value string name float value boolean flag false for int i 0 i ilv list size i if ilv list get i get name equals name ilv list get i set value value flag true if flag throw new nxtfuzzy logic exception no such linguistic variable name
sets input value of
public float get output value string name for int i 0 i olv list size i if olv list get i get name equals name return olv list get i get value throw new nxtfuzzy logic exception no such linguistic variable name
gets output value of
public void evaluate fuzzify for int i 0 i output linguistic variable block length i float value defuzzify output linguistic variable block i output linguistic variable block i set value value
computes output of fuzzy controller
private void exit set visible false dispose file history save history entries save pathname entries for next session system exit 0
close the frame save the file history entries and exit
public boolean is data flavor supported data flavor flavor jck test coord selection0003 if flavor is null throw npe for int i 0 i flavors length i if flavor equals flavors i return true return false
returns whether the requested flavor is supported by this
public void init iworkbench workbench istructured selection selection this workbench workbench this selection selection set window title xpl edit plugin instance get string ui wizard label set default page image descriptor extended image registry instance get image descriptor xpl edit plugin instance get image full wizban new xpl
this just records the information
protected eobject create initial model eclass e class eclass xpl package get eclassifier initial object creation page get initial object name eobject root object xpl factory create e class return root object
create a new model
public void contribute to tool bar itool bar manager tool bar manager tool bar manager add new separator xpl settings tool bar manager add new separator xpl additions
this adds separators for editor additions to the tool bar
protected boolean validate page if super validate page make sure the file ends in xpl string required ext xpl edit plugin instance get string ui xpl editor filename extension string entered ext new path get file name get file extension if entered ext null entered ext equals required ext set error message xpl edit plugin instance get string warn filename extension new object required ext return false else return true else return false
the framework calls this to see if the file is correct
public void menu about to show imenu manager menu manager super menu about to show menu manager menu manager submenu manager null submenu manager new menu manager xpl edit plugin instance get string ui create child menu item populate manager submenu manager create child actions null menu manager insert before edit submenu manager submenu manager new menu manager xpl edit plugin instance get string ui create sibling menu item populate manager submenu manager create sibling actions null menu manager insert before edit submenu manager
this populates the pop up menu before it appears
protected string get label string type name try return xpl edit plugin instance get string ui type name type catch missing resource exception mre xpl edit plugin instance log mre return type name
returns the label for the specified type name
public resource create resource uri uri resource result new xpl resource impl uri return result
creates an instance of the resource
public void create part control composite parent browser new browser parent swt multi swt none browser set text no content get site get page add selection listener this selection changed null get site get page get selection
this is a callback that will allow us
public list get property descriptors object object if item property descriptors null super get property descriptors object add location property descriptor object add alternate property descriptor object add importance property descriptor object return item property descriptors
this returns the property descriptors for the adapted class
protected void add location property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui image attributes location feature get string ui property descriptor description ui image attributes location feature ui image attributes type xpl package literals image attributes location true false false item property descriptor generic value image null null
this adds a property descriptor for the location feature
protected void add alternate property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui image attributes alternate feature get string ui property descriptor description ui image attributes alternate feature ui image attributes type xpl package literals image attributes alternate true false false item property descriptor generic value image null null
this adds a property descriptor for the alternate feature
protected void add importance property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui image attributes importance feature get string ui property descriptor description ui image attributes importance feature ui image attributes type xpl package literals image attributes importance true false false item property descriptor generic value image null null
this adds a property descriptor for the importance feature
public collection get children features object object if children features null super get children features object children features add xpl package literals logo child return children features
this specifies how to implement
public object get image object object return overlay image object get resource locator get image full obj16 logo
this returns logo
public string get text object object string label logo object get id return label null label length 0 get string ui logo type get string ui logo type label
this returns the label text for the adapted class
public void notify changed notification notification update children notification switch notification get feature id logo class case xpl package logo location case xpl package logo alternate case xpl package logo importance fire notify changed new viewer notification notification notification get notifier false true return case xpl package logo child fire notify changed new viewer notification notification notification get notifier true false return super notify changed notification
this handles model notifications by calling
protected void collect new child descriptors collection new child descriptors object object super collect new child descriptors new child descriptors object new child descriptors add create child parameter xpl package literals logo child xpl factory e instance create event
this adds to the collection of
public resource locator get resource locator return xpl edit plugin instance
return the resource locator for this item providers resources
public list get property descriptors object object if item property descriptors null super get property descriptors object add vocal property descriptor object add visual property descriptor object return item property descriptors
this returns the property descriptors for the adapted class
protected void add vocal property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui referred to vocal feature get string ui property descriptor description ui referred to vocal feature ui referred to type xpl package literals referred to vocal true false false item property descriptor generic value image null null
this adds a property descriptor for the vocal feature
protected void add visual property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui referred to visual feature get string ui property descriptor description ui referred to visual feature ui referred to type xpl package literals referred to visual true false false item property descriptor generic value image null null
this adds a property descriptor for the visual feature
public object get image object object return overlay image object get resource locator get image full obj16 referred to
this returns referred to
public string get text object object string label referred to object get vocal return label null label length 0 get string ui referred to type get string ui referred to type label
this returns the label text for the adapted class
public void notify changed notification notification update children notification switch notification get feature id referred to class case xpl package referred to vocal case xpl package referred to visual fire notify changed new viewer notification notification notification get notifier false true return super notify changed notification
this handles model notifications by calling
public list get property descriptors object object if item property descriptors null super get property descriptors object add id property descriptor object add style property descriptor object add name property descriptor object add value property descriptor object return item property descriptors
this returns the property descriptors for the adapted class
protected void add id property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui basic attributes id feature get string ui property descriptor description ui basic attributes id feature ui basic attributes type xpl package literals basic attributes id true false false item property descriptor generic value image null null
this adds a property descriptor for the id feature
protected void add style property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui basic attributes style feature get string ui property descriptor description ui basic attributes style feature ui basic attributes type xpl package literals basic attributes style true false false item property descriptor generic value image null null
this adds a property descriptor for the style feature
protected void handle activate recompute the read only state if editing domain get resource to read only map null editing domain get resource to read only map clear refresh any actions that may become enabled or disabled set selection get selection if removed resources is empty if handle dirty conflict get site get page close editor xpl editor this false xpl editor this dispose else removed resources clear changed resources clear saved resources clear else if changed resources is empty changed resources remove all saved resources handle changed resources changed resources clear saved resources clear
handles activation of the editor or its associated views
protected void add name property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui interaction attributes name feature get string ui property descriptor description ui interaction attributes name feature ui interaction attributes type xpl package literals interaction attributes name true false false item property descriptor generic value image null null
this adds a property descriptor for the name feature
protected void add value property descriptor object object item property descriptors add create item property descriptor composeable adapter factory adapter factory get root adapter factory get resource locator get string ui interaction attributes value feature get string ui property descriptor description ui interaction attributes value feature ui interaction attributes type xpl package literals interaction attributes value true false false item property descriptor generic value image null null
this adds a property descriptor for the value feature