Class MatrixComponents
- java.lang.Object
-
- com.singularsys.jep.ComponentSubset
-
- com.singularsys.extensions.matrix.MatrixComponents
-
- All Implemented Interfaces:
JepComponent,java.io.Serializable
- Direct Known Subclasses:
DoubleMatrixComponents
public class MatrixComponents extends ComponentSubset
Creates matrix specific components. Creates aMatrixFunctionTableandMatrixOperatorTablebased on suppliedMatrixFactoryIandMatrixFieldI. In version 2.0- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield)Constructor with no logical or string supportMatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield, boolean logical, boolean strings)Constructor with optional logical and string support
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static MatrixFieldIbuildField(MatrixFieldI mfield, boolean logical, boolean strings)Creates a field with optional logical and string supportJepComponentgetLightWeightInstance()Gets a light-weight instance suitable for using in multiple threads.MatrixFactoryIgetMatrixFactory()MatrixFieldIgetMatrixField()MatrixFunctionTablegetMatrixFunctionTable()Return a function tableMatrixOperatorTablegetMatrixOperatorTable()Return an operator tablevoidinit(Jep jep)Initialize the component.-
Methods inherited from class com.singularsys.jep.ComponentSubset
getParts
-
-
-
-
Constructor Detail
-
MatrixComponents
public MatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield)
Constructor with no logical or string support- Parameters:
mfact- the MatrixFactory to usemfield- the MatrixField to use
-
MatrixComponents
public MatrixComponents(MatrixFactoryI mfact, MatrixFieldI mfield, boolean logical, boolean strings)
Constructor with optional logical and string support- Parameters:
mfact- the MatrixFactory to usemfield- the MatrixField to uselogical- whether operations on booleans are supportedstrings- whether string operations are supported
-
-
Method Detail
-
buildField
protected static MatrixFieldI buildField(MatrixFieldI mfield, boolean logical, boolean strings)
Creates a field with optional logical and string support- Parameters:
mfield- base fieldlogical- whether operations on booleans are supportedstrings- whether string operations are supported- Returns:
-
init
public void init(Jep jep)
Description copied from interface:JepComponentInitialize the component. This methods is called whenever a component is added to Jep. Hence it allows components to keep track of the other components they may rely on.- Specified by:
initin interfaceJepComponent- Overrides:
initin classComponentSubset- Parameters:
jep- the current Jep instance
-
getLightWeightInstance
public JepComponent getLightWeightInstance()
Description copied from interface:JepComponentGets a light-weight instance suitable for using in multiple threads.- Specified by:
getLightWeightInstancein interfaceJepComponent- Overrides:
getLightWeightInstancein classComponentSubset- Returns:
- either an new instance, null or 'this'.
-
getMatrixFactory
public MatrixFactoryI getMatrixFactory()
-
getMatrixField
public MatrixFieldI getMatrixField()
-
getMatrixFunctionTable
public MatrixFunctionTable getMatrixFunctionTable()
Return a function table- Returns:
- a table created during construction
- Since:
- Jep 4.0/Extensions 2.1
-
getMatrixOperatorTable
public MatrixOperatorTable getMatrixOperatorTable()
Return an operator table- Returns:
- a table created during construction
- Since:
- Jep 4.0/Extensions 2.1
-
-