edu.ucla.util.code
Class ModelCoder
Object
AbstractCodeGenius
ModelCoder
- All Implemented Interfaces:
- ChangeBroadcaster, CodeGenius
public class ModelCoder
- extends AbstractCodeGenius
- implements CodeGenius
- Since:
- 20040506
Method Summary |
String |
describe()
|
String |
describeDependencies()
|
void |
describeDependencies(Tree tree)
|
BayesianNetwork |
getBayesianNetwork()
|
BeliefNetwork |
getBeliefNetwork()
|
Converter |
getConverter()
|
String |
getIconFileName()
|
OptionBreadth |
getOptionBreadth()
|
CodeOption[] |
getOptions()
|
String |
getOutputClassNameDefault()
|
String |
getShortDescription()
|
Object |
getWarnings()
|
static String[] |
indicesAsStrings(int count,
int radix,
char left,
String prefix)
|
static String |
makeDate()
|
void |
modelToJavaCodeIL1(BeliefNetwork bn,
boolean withComments,
PrintStream out)
|
void |
modelToJavaCodeIL2(BayesianNetwork bn,
boolean withComments,
PrintStream out)
|
static void |
printDoubleArray(double[] values,
PrintStream out)
|
static void |
printInstanceNames(Domain domain,
int indexVar,
PrintStream out)
|
static void |
printIntSetValues(IntSet set,
Map mapIndicesToVariableNames,
PrintStream out)
|
static void |
printListOfStrings(List list,
PrintStream out)
|
static void |
printRepeat(String toRepeat,
int num,
String[] stris,
PrintStream out)
|
void |
setConverter(Converter converter)
|
void |
toJavaCodeIL1(BeliefNetwork bn,
String strPathNetwork,
boolean withComments,
CodeOptionValue breadth,
PrintStream out)
|
void |
toJavaCodeIL2(BayesianNetwork bn,
String strPathNetwork,
boolean withComments,
CodeOptionValue breadth,
PrintStream out)
|
void |
writeCode(PrintStream out)
|
void |
writePost(CodeOptionValue breadth,
PrintStream out)
|
void |
writePre(String strPathNetwork,
boolean withComments,
CodeOptionValue version,
CodeOptionValue breadth,
PrintStream out)
|
Methods inherited from class AbstractCodeGenius |
addChangeListener, breadth, fireSettingChanged, getFlag, getOption, getOutputClassName, isCompilable, removeChangeListener, resetOptions, setFlag, setOption, setOutputClassName |
STR_NAME_OUTPUT_CLASS
public static final String STR_NAME_OUTPUT_CLASS
- See Also:
- Constant Field Values
STR_NAME_METHOD
public static final String STR_NAME_METHOD
- See Also:
- Constant Field Values
STR_WARNING_NOISY_OR
public static final String STR_WARNING_NOISY_OR
- See Also:
- Constant Field Values
INT_CEILING_CPT_SIZE
public static final int INT_CEILING_CPT_SIZE
- See Also:
- Constant Field Values
LONG_CEILING_CPT_SIZE
public static final long LONG_CEILING_CPT_SIZE
- See Also:
- Constant Field Values
OPTION_LIBRARY_VERSION
public static final ModelCoder.LibraryVersionOption OPTION_LIBRARY_VERSION
OPTION_AMOUNT
public static final OptionBreadth OPTION_AMOUNT
OPTION_WITH_COMMENTS
public static final CodeOption OPTION_WITH_COMMENTS
ModelCoder
public ModelCoder(BeliefNetwork bn,
String strPathNetwork)
ModelCoder
public ModelCoder(BayesianNetwork bn,
String strPathNetwork)
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interface CodeGenius
- Since:
- 022305
describe
public String describe()
- Specified by:
describe
in interface CodeGenius
getShortDescription
public String getShortDescription()
- Specified by:
getShortDescription
in interface CodeGenius
describeDependencies
public String describeDependencies()
- Specified by:
describeDependencies
in interface CodeGenius
describeDependencies
public void describeDependencies(Tree tree)
- Specified by:
describeDependencies
in interface CodeGenius
getOutputClassNameDefault
public String getOutputClassNameDefault()
- Specified by:
getOutputClassNameDefault
in interface CodeGenius
writeCode
public void writeCode(PrintStream out)
- Specified by:
writeCode
in interface CodeGenius
getOptions
public CodeOption[] getOptions()
- Specified by:
getOptions
in interface CodeGenius
getOptionBreadth
public OptionBreadth getOptionBreadth()
- Specified by:
getOptionBreadth
in interface CodeGenius
- Since:
- 20060327
getBeliefNetwork
public BeliefNetwork getBeliefNetwork()
getBayesianNetwork
public BayesianNetwork getBayesianNetwork()
getConverter
public Converter getConverter()
setConverter
public void setConverter(Converter converter)
writePre
public void writePre(String strPathNetwork,
boolean withComments,
CodeOptionValue version,
CodeOptionValue breadth,
PrintStream out)
writePost
public void writePost(CodeOptionValue breadth,
PrintStream out)
getWarnings
public Object getWarnings()
- Specified by:
getWarnings
in interface CodeGenius
- Overrides:
getWarnings
in class AbstractCodeGenius
- Since:
- 20051107
toJavaCodeIL1
public void toJavaCodeIL1(BeliefNetwork bn,
String strPathNetwork,
boolean withComments,
CodeOptionValue breadth,
PrintStream out)
indicesAsStrings
public static String[] indicesAsStrings(int count,
int radix,
char left,
String prefix)
- Since:
- 20080116
modelToJavaCodeIL1
public void modelToJavaCodeIL1(BeliefNetwork bn,
boolean withComments,
PrintStream out)
toJavaCodeIL2
public void toJavaCodeIL2(BayesianNetwork bn,
String strPathNetwork,
boolean withComments,
CodeOptionValue breadth,
PrintStream out)
modelToJavaCodeIL2
public void modelToJavaCodeIL2(BayesianNetwork bn,
boolean withComments,
PrintStream out)
printListOfStrings
public static void printListOfStrings(List list,
PrintStream out)
printInstanceNames
public static void printInstanceNames(Domain domain,
int indexVar,
PrintStream out)
printDoubleArray
public static void printDoubleArray(double[] values,
PrintStream out)
printIntSetValues
public static void printIntSetValues(IntSet set,
Map mapIndicesToVariableNames,
PrintStream out)
printRepeat
public static void printRepeat(String toRepeat,
int num,
String[] stris,
PrintStream out)
makeDate
public static String makeDate()
Copyright 2010 UCLA Automated Reasoning Group