public class FromFile extends SearchAlgorithm
-B <BIF File> Name of file containing network structure in BIF format
Constructor and Description |
---|
FromFile() |
Modifier and Type | Method and Description |
---|---|
void |
buildStructure(BayesNet bayesNet,
Instances instances)
buildStructure determines the network structure/graph of the network.
|
java.lang.String |
getBIFFile()
Get name of network in BIF file to read structure from
|
java.lang.String[] |
getOptions()
Gets the current settings of the search algorithm.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo()
Returns a string describing this object
|
java.util.Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
void |
setBIFFile(java.lang.String sBIFFile)
Set name of network in BIF file to read structure from
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
initAsNaiveBayesTipText, maxNrOfParentsTipText, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public java.lang.String globalInfo()
public void buildStructure(BayesNet bayesNet, Instances instances) throws java.lang.Exception
SearchAlgorithm
buildStructure
in class SearchAlgorithm
bayesNet
- instances
- the instances to work withjava.lang.Exception
- if attribute from BIF file could not be foundpublic void setBIFFile(java.lang.String sBIFFile)
sBIFFile
- the name of the BIF filepublic java.lang.String getBIFFile()
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class SearchAlgorithm
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-B <BIF File> Name of file containing network structure in BIF format
setOptions
in interface OptionHandler
setOptions
in class SearchAlgorithm
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class SearchAlgorithm
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class SearchAlgorithm