Package com.singularsys.jep
Class ComponentSet
- java.lang.Object
-
- com.singularsys.jep.ComponentSet
-
- Direct Known Subclasses:
BigDecComponents
,DJepComponents
,LightWeightComponentSet
,MatrixComponentSet
,MDJepComponents
,MediumWeightComponentSet
,RealComponents
,StandardComponents
,XComponents
public class ComponentSet extends java.lang.Object
Collects all the components which make up the Jep system.- Author:
- Richard Morris
-
-
Field Summary
Fields Modifier and Type Field Description protected JepComponent[]
auxComps
protected Evaluator
evaluator
protected FunctionTable
funTab
protected NodeFactory
nodeFac
protected NumberFactory
numFac
protected OperatorTableI
opTab
protected Parser
parser
protected PrintVisitor
pv
protected VariableFactory
varFac
protected VariableTable
varTab
-
Constructor Summary
Constructors Constructor Description ComponentSet()
Create a component set with all componentsnull
.ComponentSet(Jep j)
Uses the components from the jep instanceComponentSet(JepComponent[] components)
Use the given list of components, any unspecified one will be set tonull
.
-
Method Summary
-
-
-
Field Detail
-
numFac
protected NumberFactory numFac
-
varFac
protected VariableFactory varFac
-
nodeFac
protected NodeFactory nodeFac
-
varTab
protected VariableTable varTab
-
funTab
protected FunctionTable funTab
-
opTab
protected OperatorTableI opTab
-
parser
protected Parser parser
-
evaluator
protected Evaluator evaluator
-
pv
protected PrintVisitor pv
-
auxComps
protected JepComponent[] auxComps
-
-
Constructor Detail
-
ComponentSet
public ComponentSet()
Create a component set with all componentsnull
.
-
ComponentSet
public ComponentSet(Jep j)
Uses the components from the jep instance- Parameters:
j
- jep instance
-
ComponentSet
public ComponentSet(JepComponent[] components)
Use the given list of components, any unspecified one will be set tonull
.- Parameters:
components
- Components- Since:
- 3.4.0
-
-
Method Detail
-
addComponents
public void addComponents(JepComponent[] components)
-
getComponents
public JepComponent[] getComponents()
-
getBaseComponents
public JepComponent[] getBaseComponents()
-
getAuxComponents
public JepComponent[] getAuxComponents()
-
getNumberFactory
public NumberFactory getNumberFactory()
-
getNodeFactory
public NodeFactory getNodeFactory()
-
getVariableFactory
public VariableFactory getVariableFactory()
-
getVariableTable
public VariableTable getVariableTable()
-
getFunctionTable
public FunctionTable getFunctionTable()
-
getOperatorTable
public OperatorTableI getOperatorTable()
-
getParser
public Parser getParser()
-
getEvaluator
public Evaluator getEvaluator()
-
getPrintVisitor
public PrintVisitor getPrintVisitor()
-
setNodeFactory
public void setNodeFactory(NodeFactory nodeFac)
-
setNumberFactory
public void setNumberFactory(NumberFactory numFac)
-
setVariableFactory
public void setVariableFactory(VariableFactory varFac)
-
setFunctionTable
public void setFunctionTable(FunctionTable funTab)
-
setVariableTable
public void setVariableTable(VariableTable varTab)
-
setOperatorTable
public void setOperatorTable(OperatorTableI operatorTableI)
-
setEvaluator
public void setEvaluator(Evaluator evaluator)
-
setParser
public void setParser(Parser parser)
-
setPrintVisitor
public void setPrintVisitor(PrintVisitor pv)
-
addAuxComponent
public void addAuxComponent(JepComponent comp)
-
getAuxComps
public JepComponent[] getAuxComps()
-
setAuxComps
public void setAuxComps(JepComponent[] auxComps)
-
-