public class Program extends Object
| Modifier and Type | Method and Description |
|---|---|
ExternalFunction |
addExternalFunction(String name,
String argumentName)
Add an external function.
|
<T extends Function> |
addFunction(T function)
Add a function to this program.
|
Hedge |
addHedge(Hedge hedge)
Add a hedge to this program.
|
Hedge |
addHedge(String name,
String arg,
String expression)
Add a hedge by name.
|
<T extends Number> |
addInput(String name,
T from,
T to,
T step)
Add an input variable to this program.
|
Variable |
addInput(Variable var)
Add an input variable to this program.
|
<T extends Number> |
addOutput(String name,
T from,
T to,
T step)
Add an output variable to this program.
|
Variable |
addOutput(Variable var)
Add an output variable to this program.
|
PiecewiseFunction |
addPiecewiseFunction(String name,
String argumentName)
Add a piecewise function.
|
Rule |
addRule(String name,
Node condition)
Add a rule to this program.
|
void |
dump(PrintStream fp)
Dump the content of the program.
|
Collection<Function> |
functions()
Get the functions.
|
Number |
getEpsilon()
Get epsilon.
|
Function |
getFunction(String functionName)
Get a function be name.
|
Hedge |
getHedge(String hedgeName)
Get a hedge by name.
|
Variable |
getInput(String inputName)
Get an input by name.
|
String |
getName()
Get the program name.
|
Variable |
getOutput(String outputName)
Get an output by name.
|
String |
getPackageName()
Get the package name.
|
ReasoningStrategy |
getReasoningStrategy()
Get the selected reasoning strategy.
|
Rule |
getRule(String name)
Get a rule by name.
|
Collection<Hedge> |
hedges()
Get the hedges.
|
Collection<Variable> |
inputs()
Get the inputs.
|
Collection<Variable> |
outputs()
Get the outputs.
|
Collection<String> |
ruleNames()
The rule names.
|
Collection<Rule> |
rules()
Get the rules.
|
void |
setEpsilon(Number epsilon)
Set epsilon.
|
void |
setPackageName(String packageName)
Set the package name.
|
void |
setReasoningStrategy(ReasoningStrategy reasoningStrategy)
Set the reasoning strategy.
|
public Program(String name)
public String getName()
public ReasoningStrategy getReasoningStrategy()
public void setReasoningStrategy(ReasoningStrategy reasoningStrategy)
reasoningStrategy - the reasoning strategypublic String getPackageName()
public void setPackageName(String packageName)
packageName - the package namepublic Number getEpsilon()
public void setEpsilon(Number epsilon)
epsilon - epsilonpublic Rule addRule(String name, Node condition)
name - is the rule namecondition - is the rule conditionpublic Collection<Rule> rules()
public Collection<String> ruleNames()
public Rule getRule(String name)
name - the rule namepublic Collection<Hedge> hedges()
public Hedge getHedge(String hedgeName)
hedgeName - the hedge namepublic Hedge addHedge(Hedge hedge)
hedge - the hedgepublic Hedge addHedge(String name, String arg, String expression)
name - name of the hedgearg - argumentexpression - the expressionpublic Collection<Function> functions()
public Function getFunction(String functionName)
functionName - the function namepublic <T extends Function> T addFunction(T function)
T - the function typefunction - the functionpublic ExternalFunction addExternalFunction(String name, String argumentName)
name - function nameargumentName - the argument namepublic PiecewiseFunction addPiecewiseFunction(String name, String argumentName)
name - is the name of the functionargumentName - argument namepublic Collection<Variable> inputs()
public Variable getInput(String inputName)
inputName - the input namepublic Variable addInput(Variable var)
var - the variablepublic <T extends Number> Variable addInput(String name, T from, T to, T step)
T - the typename - the variable namefrom - start of intervalto - end of intervalstep - the steppublic Collection<Variable> outputs()
public Variable getOutput(String outputName)
outputName - the output namepublic Variable addOutput(Variable var)
var - the variablepublic <T extends Number> Variable addOutput(String name, T from, T to, T step)
T - the typename - the variable namefrom - start of intervalto - end of intervalstep - the steppublic void dump(PrintStream fp)
fp - the printerCopyright © 2013–2014. All rights reserved.