input
stringlengths
10
828
output
stringlengths
5
107
public choice get choice question choice question for choice choice question get all alternatives if text equals choice get name return choice return null
searches and returns the
public boolean contains choice choice return contains new choice id choice
checks if the specified
public boolean contains choice id choice id return this choice ids contains choice id
checks if the specified
protected boolean has value undefined question question session session value value session get blackboard get value question return value instanceof undefined value
helper method to check if a
private boolean is direct qcontainer question question question for terminology object parent question get parents if parent instanceof qcontainer return true return false
a direct qcontainer question is a question that contains at least one
private void reindex this max ordering number 0 this qaset index clear reindex session get knowledge base get root qaset
traverses the qaset hierarchy using a depth first search and attaches an
private boolean has active questions qcontainer container session session for terminology object child container get children if child instanceof question question question question child if has value undefined question session return true else list question follow up questions collect follow up questions question for question follow up follow up questions if session get interview is active follow up return true return false
checks whether the specified container contains active follow up
public interview object get interview object return interview object
getter for interview object
public choice get answer choice yes return answer choice yes
get the yes answer choice of this question yn
public choice get answer choice no return answer choice no
get the no answer choice of this question yn
public string get name return this state name
returns the name of this
public string get xmlstring return question num id this get name question num n
generates a xml identification not the complete representation
public boolean has state state state return this state equals state
compares the specified
public void set value partitions list numerical interval value partitions this value partitions value partitions
sets the list of meaningful partitions for the numerical value range of
public boolean is relevant return has state state suggested has state state established
returns whether the solution rated by this rating is relevant to the user
private void check parental qcontainer interview object interview object list qcontainer containers on agenda compute parental containers on agenda interview object for qcontainer q container containers on agenda interview state state check children state q container switch state case active get interview agenda activate q container break case inactive get interview agenda deactivate q container default break
usually the specified interview object has changed
public boolean is answer no return false
creation date 28
public boolean is answer yes return false
creation date 28
protected void add child abstract terminology object child if children contains child add parent child link this child
appends the specified
protected boolean remove child abstract terminology object child if children contains child remove parent child link this child return true return false
removes the specified instance from the children of this instance
public void add child qaset child int pos super add child child pos
inserts the child at the specified position
public void set height int height if height 0 this height height
sets the height of the displayed text field asking the text question
public void set width int new width if new width 0 width new width
sets the width of the displayed text field asking the text question
protected void add child abstract terminology object child int pos children remove child children add pos children size children size pos child
inserts the child at the specified position
private boolean check intervals abnormality interval ai iterator abnormality interval iter intervals iterator while iter has next if iter next intersects ai return false return true
checks if abnormality interval interferes with any abnormality interval
public void add value value ans double value values put ans new double value
with this method you can add an answer abnorm
public boolean is empty for agenda entry entry this agenda if entry has state interview state active return false return true
checks whether an entry that is also indicated is available on the
public boolean contains double value if left value value right return true if value left is left open return true if value right is right open return true return false
checks whether value is contained in interval
public boolean on agenda interview object interview object return find agenda entry interview object null
checks if the specified
public boolean intersects numerical interval other if other get right this get left return false if other get right this get left return this is left open other is right open if other get left this get right return false if other get left this get right if this is right open other is left open return false return true return true
checks whether this interval intersects some other interval
public score get apriori probability return apriori probability
returns the prior probability of this solution
public void set apriori probability score new apriori probability throws illegal argument exception check if legal probability entry if score apriori contains new apriori probability new apriori probability null throw new illegal argument exception new apriori probability not a valid apriori probability else apriori probability new apriori probability
sets the new apriori probability of this instance
public boolean has state interview object interview object interview state state agenda entry entry find agenda entry interview object return entry null entry has state state
returns if the specified interview object is on the agenda and has the
public boolean contains numerical interval other if this get left other get left return false if this get right other get right return false if this get left other get left if this is left open other is left open return false if this get right other get right if this is right open other is right open return false return true
checks whether this interval contains some other interval
public agenda sorting strategy get agenda sorting strategy return agenda sorting strategy
returns the currently used
public boolean is relevant return this state equals state indicated this state equals state instant indicated this state equals state repeated indicated
returns whether the indication state signals that the interview element
public boolean is contra indicated return this state equals state contra indicated
returns whether the indication state signals that the interview element
public void remove terminology object object if object get children null object get children length 0 object get parents null object get parents length 0 throw new illegal argument exception object has some children or parents that should be removed relinked before deletion else object name map remove object get name
deletes a terminology object from the knowledge base
public solution search solution string id if object name map contains key id named object o object name map get id if o instanceof solution return solution o return null
tries to find a
public t get default value return this default value
returns the default value of this property
public qaset search qaset string id if object name map contains key id named object o object name map get id if o instanceof qaset return qaset o return null
tries to find a
public void add rule rule r if r null throw new null pointer exception rules add r
adds a rule to the rule set
public void set default value t default value this default value default value
sets the default value of this property
public terminology object search string name return object name map get name
tries to retrieve an terminology object with the specified name that is
public qcontainer search qcontainer string name if object name map contains key name named object o object name map get name if o instanceof qcontainer return qcontainer o return null
tries to find a
private void activate context class class extends psmethod rulebased context if context null try class for name context get canonical name catch class not found exception e throw new illegal argument exception e
this is needed to fill the maps of forward and backward in
public solution get root solution return root solution
the solutions contained in this
public t cast to stored value object o throws class cast exception return get stored class cast o
dynamically casts the specified value to the type of the stored value
public question search question string name if object name map contains key name named object o object name map get name if o instanceof question return question o return null
tries to find a
public qaset get root qaset return root qaset
the questionnaires and contained questions are organized in a hierarchy
public void set init questions list extends qaset init questions this init questions clear integer priority 1 for qaset qa set init questions this init questions put qa set priority priority
defines the ordered list of initial questions questionnaires
public value get value return condition value
returns the values that have to be assigned to the question to fulfill
public boolean can parse value use string directly if t string because string only supports value of object instead of value of string class t clazz get stored class if string class is assignable from clazz return true find method and check for public access try method method clazz get method value of string class return modifier is public method get modifiers catch security exception e return false catch no such method exception e return false
returns if this property have the ability to parse string representations
public boolean add init question qaset qaset int priority boolean alreadyused this init questions values contains priority this init questions put qaset priority return alreadyused
adds the specified
public double get condition value return condition value
returns the numerical value constraining this condition
public boolean remove init question qaset qaset if this init questions key set contains qaset this init questions remove qaset return true return false
removes the specified
public void do it session session set fired true session if get action null get action do it session this session get psmethod instance get problemsolver context
executes the action of the rule
public void add resouce resource resource this resouces add resource
inserts a new resource for this
public double get max value return new double numerical interval get right
returns the maximum value to be allowed by this condition
public double get min value return new double numerical interval get left
returns the minimum value required by this condition
public boolean has changed value session session return false
checks if any action value e
public numerical interval get interval return numerical interval
returns the numerical interval of allowed values for this condition
public void set interval numerical interval inter numerical interval inter
sets the interval of allowed numerical values for this condition
public void remove resouce resource resource this resouces remove resource
removes a resource for this
public void clear resouces this resouces clear
removes all resources for this
public resource get resource string pathname for resource resource resouces if pathname equals ignore case resource get path name return resource return null
returns a stored resource for a specified pathname accessor a relative
private psmethod handler find next handler for psmethod handler handler this ps handlers if handler has propagation entries handler has propagated return handler return null
find first handler that requires propagation
public boolean has fired session session return session get session object this has fired
simply checks if the rule has already been fired in context of the
public void add psconfig psconfig ps config ps configs add ps config
inserts a new problem solver configuration
public boolean is used session session return has fired session
checks if the rule has been fired like has fired
public void remove psconfig psconfig ps config ps configs remove ps config
removes a specified problem solver configuration
public question choice get question return question
creation date 26
public void set target de d3web core knowledge terminology solution new target target new target
sets the diagnosis to clarify
public void set question question choice the question this question the question
sets the question whose alternatives should be suppressed in case of
public void set qasets list qaset the qasets qasets the qasets
sets the specified qasets for contra indication
private void set question question num new question value new question
sets the question num that will be wrapped
public void set qasets list qaset qasets this qasets qasets
sets the specified list of
public void set qasets qaset qasets this qasets new array list qaset for qaset qa set qasets this qasets add qa set
sets the specified list of
public formula number element get arg1 return arg1
creation date 14
public question date get question return value
creation date 25
private void set question question date new question value new question
sets the question num that will be wrapped
public formula number element get arg2 return arg2
creation date 14
private boolean evaluate arguments session session if get arg1 null get arg2 null return false evaluated arg1 get arg1 eval session evaluated arg2 get arg2 eval session return evaluated arg1 null evaluated arg2 null
evaluates the arguments
public void add entry plugin entry entry entries put entry get plugin get plugin id entry
adds a extension entry to this knowledge slice
public plugin entry get plugin entry string id return entries get id
returns the pluginentry for the plugin with the specified id
public boolean is autodetect return autodetect autodetect instance null
returns true if the necessity of the extension should be detected
public autodetect get autodetect return autodetect instance
returns the autodetect singleton of this plugin
public void undo session session set fired false session if get action null get action undo session this session get psmethod instance get problemsolver context
executes the backtracking mechanism of the rules action and sets the
public void set solution solution new solution solution new solution
insert the methods description here
public void add diagnosis weight value solution weight value val solution weight values add val diagnose diagnosis weight value hash put val get solution val
insert the methods description here
public int get max solution weight value from solutions collection solution diagnoses int ret 1 iterator solution iter diagnoses iterator while iter has next solution weight value val diagnose diagnosis weight value hash get iter next if val null if val get value ret ret val get value return ret
returns the maximum of diagnosis weights for the question if such a
public question weight value get question weight value return question weight value
insert the methods description here
public void set question weight value question weight value new question weight value question weight value new question weight value question weight value get question add knowledge get problemsolver context this method kind
insert the methods description here
public boolean has message return this message null this message is empty
returns if the test result described by this object has a message
private void mark xmlfile file f throws ioexception file not found exception file input stream istream new file input stream f try document doc util stream to document istream doc append child doc create comment original file output stream ostream new file output stream f try util write document to output stream doc ostream finally ostream close finally istream close
marks a file by setting a comment original
private boolean test mark file f throws ioexception file input stream istream new file input stream f boolean marked false try document doc util stream to document istream for int i 0 i doc get child nodes get length i node child doc get child nodes item i if child instanceof comment child get text content equals original marked true finally istream close return marked
checks if a file was marked with method mark xmlfile
private boolean matches exports string relative path initialize resource filters lazy if this resource filters null this resource filters new array list resource filter for library library this descriptor get libraries only export non code libraries if library is code library continue this resource filters add new resource filter library use resource filter to determine if the resource is exported for resource filter filter this resource filters if filter is resource visible relative path return true if no filter has matched it is not exported return false
return whether the resource with the specified path has been exported
private void collect files file directory collection file result file files directory list files if files null return for file file files if directory collect recursively if file is directory collect files file result if file add it else if file is file result add file
recursively collects all files that are in the specified directory and
public void set covered abnormality double covered abnormality this covered abnormality covered abnormality
sets the abnormality covered by the corresponding xclmodel
public double get covered abnormality return covered abnormality
returns the abnormality covered by the corresponding xclmodel