|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjmathlib.core.interpreter.RootObject
jmathlib.core.tokens.Token
jmathlib.core.tokens.OperandToken
jmathlib.core.tokens.DataToken
jmathlib.core.tokens.NumberToken
jmathlib.core.tokens.numbertokens.Int8NumberToken
public class Int8NumberToken
| Field Summary |
|---|
| Fields inherited from class jmathlib.core.tokens.NumberToken |
|---|
IMAG, numFormat, REAL |
| Fields inherited from class jmathlib.core.tokens.DataToken |
|---|
dataType, noElem, sizeA, sizeX, sizeY |
| Fields inherited from class jmathlib.core.tokens.Token |
|---|
priority |
| Fields inherited from interface jmathlib.core.constants.TokenConstants |
|---|
ADDSUB_PRIORITY, AND_PRIORITY, ANDAND_PRIORITY, ASSIGN_PRIORITY, BRACKET_PRIORITY, COMPARE_PRIORITY, CONCAT, MATRIX, MULDIV_PRIORITY, OR_PRIORITY, OROR_PRIORITY, PARAMETER, POWER_PRIORITY, RELATION_PRIORITY, SINGLE, ttDelimiter, ttNotSet, ttOperand, ttOperator |
| Fields inherited from interface jmathlib.core.constants.ErrorCodes |
|---|
ERR_BRACKET_OPEN, ERR_BRACKET_ORDER, ERR_FUNCTION_NOT_FOUND, ERR_FUNCTION_NOT_IMPLEMENTED, ERR_INSUFFICIENT_PARAMETERS, ERR_INVALID_PARAMETER, ERR_LVALUE_REQUIRED, ERR_MATRIX_SINGULAR, ERR_NOT_SQUARE_MATRIX, ERR_OPNOTSUPPORTED, ERR_TOO_MANY_PARAMETERS, ERR_USER_ERROR, ERR_VARIABLE_NOTDEFINED, OK, OK_FUNCTION_PROCESS |
| Constructor Summary | |
|---|---|
Int8NumberToken()
Constructor creating empty number token |
|
Int8NumberToken(byte _value)
Constructor creating a scalar taking the numbers value as a double |
|
Int8NumberToken(byte[][] _values)
Constructor taking the numbers value as a double[][] |
|
Int8NumberToken(byte[][][] _values)
Constructor taking the numbers value as a double[][][] |
|
Int8NumberToken(byte[][] _real,
byte[][] _imaginary)
Constructor taking the numbers value as two double[][] |
|
Int8NumberToken(byte _real,
byte _imaginary)
Constructor taking the numbers value as a pair of double values representing real and imaginary part |
|
Int8NumberToken(int[] _sizeA,
byte[] _reValues,
byte[] _imValues)
Constructor for multidimensional array |
|
Int8NumberToken(int _dy,
int _dx,
byte[] _reValues,
byte[] _imValues)
|
|
Int8NumberToken(java.lang.String _real,
java.lang.String _imaginary)
Constructor taking the numbers value as a string |
|
| Method Summary | |
|---|---|
OperandToken |
add(OperandToken arg)
add arg to this object for a number token |
OperandToken |
evaluate(Token[] operands)
Evaluate the token. |
OperandToken |
getElement(int n)
|
DataToken |
getElementSized(int y,
int x)
return a new Number Token of size y*x |
byte |
getValueIm()
|
byte |
getValueIm(int n)
|
byte |
getValueIm(int[] index)
|
byte |
getValueIm(int y,
int x)
|
byte |
getValueRe()
|
byte |
getValueRe(int n)
|
byte |
getValueRe(int[] index)
|
byte |
getValueRe(int y,
int x)
|
byte[][] |
getValuesIm()
|
byte[][] |
getValuesRe()
|
void |
setElement(int n,
OperandToken num)
|
void |
setSize(int dy,
int dx)
increase/decrease the size of the current DoubleNumberToken to size y*x |
void |
setValue(int[] index,
byte _real,
byte _imag)
|
void |
setValue(int n,
byte _real,
byte _imag)
|
void |
setValue(int y,
int x,
byte _real,
byte _imag)
Set value at position y, x |
OperandToken |
subtract(OperandToken arg)
substract arg to this object for a number token |
java.lang.String |
toString()
return the number as a string |
java.lang.String |
toString(byte[] _values)
create string representation of (complex) double values |
| Methods inherited from class jmathlib.core.tokens.NumberToken |
|---|
evaluate, getElement, index2n, isNumeric, isScalar, setElement, toString, yx2n |
| Methods inherited from class jmathlib.core.tokens.DataToken |
|---|
checkEqualDimensions, getDataType, getDimensions, getNumberOfElements, getSize, getSizeX, getSizeY |
| Methods inherited from class jmathlib.core.tokens.OperandToken |
|---|
asArray, Children, ctranspose, derivative, divide, expand, factorial, integral, isLeaf, isNull, leftDivide, mpower, mPower, multiply, negate, power, scalarDivide, scalarLeftDivide, scalarMultiply, simplify, subst, transpose |
| Methods inherited from class jmathlib.core.tokens.Token |
|---|
isDisplayResult, setDisplayResult, toMathMlString |
| Methods inherited from class jmathlib.core.interpreter.RootObject |
|---|
clone, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Int8NumberToken()
public Int8NumberToken(byte _value)
_value - = the numbers value as a doublepublic Int8NumberToken(byte[][] _values)
_value - = the numbers value as a 2D array of double
public Int8NumberToken(java.lang.String _real,
java.lang.String _imaginary)
_real - = the numbers real value as a string_imaginary - = the numbers imaginary value as a string
public Int8NumberToken(byte _real,
byte _imaginary)
_real - = the numbers real value as a double_imaginary - = the numbers imaginary value as a double
public Int8NumberToken(byte[][] _real,
byte[][] _imaginary)
_real - = the numbers value as a 2D array of double_imaginary - = the numbers value as a 2D array of doublepublic Int8NumberToken(byte[][][] _values)
_values - = the numbers value as a 3D array of double
public Int8NumberToken(int _dy,
int _dx,
byte[] _reValues,
byte[] _imValues)
_dy - _dx - _reValues - _imValues -
public Int8NumberToken(int[] _sizeA,
byte[] _reValues,
byte[] _imValues)
_sizeA - _reValues - _imValues - | Method Detail |
|---|
public DataToken getElementSized(int y,
int x)
getElementSized in class DataToken
public void setSize(int dy,
int dx)
setSize in class DataTokendy - number of rowsdx - number of columnspublic byte getValueRe()
public byte getValueRe(int y,
int x)
y - x -
public byte getValueRe(int[] index)
index -
public byte getValueRe(int n)
n -
public byte getValueIm()
public byte getValueIm(int y,
int x)
public byte getValueIm(int[] index)
index -
public byte getValueIm(int n)
n -
public byte[][] getValuesRe()
public byte[][] getValuesIm()
public OperandToken getElement(int n)
getElement in class DataTokenn -
public void setElement(int n,
OperandToken num)
setElement in class DataTokenn - num -
public void setValue(int y,
int x,
byte _real,
byte _imag)
y - = y position in matrixx - = x position in matrixreal - = real valueimag - = imaginary value
public void setValue(int n,
byte _real,
byte _imag)
n - _real - _imag -
public void setValue(int[] index,
byte _real,
byte _imag)
index - multidimensional index_real - _imag - public OperandToken add(OperandToken arg)
add in class OperandToken= - the value to add to it
public OperandToken subtract(OperandToken arg)
subtract in class OperandToken= - the value to substract
public java.lang.String toString()
toString in class NumberTokenpublic java.lang.String toString(byte[] _values)
_values[]={REAL,IMAG} - real and imaginary part of numberpublic OperandToken evaluate(Token[] operands)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||