treecalc.vm
Class TciMachine
java.lang.Object
treecalc.vm.TciMachine
- All Implemented Interfaces:
- treecalc.rt.S
public final class TciMachine
- extends java.lang.Object
- implements treecalc.rt.S
Nested classes/interfaces inherited from interface treecalc.rt.S |
treecalc.rt.S.Traceaction |
Method Summary |
java.lang.String |
calculate(long id)
|
java.lang.String |
calculate(long id,
int... args)
|
java.lang.String |
calculate(long id,
java.lang.String... args)
|
java.lang.String |
calculate(java.lang.String name)
|
java.lang.String |
calculateFunction(java.lang.String name)
|
java.lang.String |
calculateInput(java.lang.String name)
|
java.lang.String |
calculateInputCalc(java.lang.String name,
java.lang.String calcname)
|
java.lang.String |
calculateMaintree(int calcindex,
java.lang.String... args)
|
java.lang.String |
calculateMaintree(java.lang.String name)
|
java.lang.String |
calculateTable(java.lang.String name)
|
treecalc.rt.V[] |
getAutocounterValues(int[] autocounters)
|
java.lang.Object |
getCacheKey(int id,
treecalc.rt.V... args)
|
long |
getCalculateId(java.lang.String name)
|
treecalc.rt.V |
getInput(int inputid,
treecalc.rt.V... index)
Get input as set from outside. |
treecalc.rt.V |
getInputAutocounter(int inputid,
int[] autocounters)
|
int |
getInputIndex(java.lang.String nameUppercase)
|
boolean |
getInputIsNull(java.lang.String name)
|
java.util.List<java.lang.String[]> |
getInputList(int inputid,
int... index)
|
java.util.List<java.lang.String[]> |
getInputList(java.lang.String name)
|
java.lang.String |
getStatistics()
|
treecalc.rt.S |
getSubmodel(java.lang.String vpmname)
|
int |
getTimesCounter(int timesid)
|
treecalc.rt.V |
getTimesCounterV(int timesid)
|
treecalc.rt.V |
getTimesCounterVException(int timesid)
|
void |
incTimesCounterTop()
|
boolean |
needed(java.lang.String inputname,
java.lang.String calcname)
|
static java.lang.Object[] |
parseCalcname(java.lang.String calcname)
|
void |
popTimesCounter()
|
void |
pushTimesCounter(int timesid)
|
treecalc.rt.V |
readCache(java.lang.Object key)
|
void |
reset()
|
void |
setInput(int inputid,
treecalc.rt.V value,
int... index)
|
void |
setInput(java.lang.String name,
java.lang.String value)
|
void |
setTimesCounterTop(int value)
|
void |
trace(java.lang.String msg,
java.lang.String result,
treecalc.rt.S.Traceaction action)
|
void |
writeCache(java.lang.Object key,
treecalc.rt.V value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRACE
public static boolean TRACE
INSTR_NOP
public static final byte INSTR_NOP
- See Also:
- Constant Field Values
INSTR_ADD
public static final byte INSTR_ADD
- See Also:
- Constant Field Values
INSTR_ADDNOTNULL
public static final byte INSTR_ADDNOTNULL
- See Also:
- Constant Field Values
INSTR_AND
public static final byte INSTR_AND
- See Also:
- Constant Field Values
INSTR_BIGEQ0
public static final byte INSTR_BIGEQ0
- See Also:
- Constant Field Values
INSTR_BUILTIN
public static final byte INSTR_BUILTIN
- See Also:
- Constant Field Values
INSTR_CALLDYNFUNC
public static final byte INSTR_CALLDYNFUNC
- See Also:
- Constant Field Values
INSTR_CALLFORMULA
public static final byte INSTR_CALLFORMULA
- See Also:
- Constant Field Values
INSTR_CALLFORMULADYN
public static final byte INSTR_CALLFORMULADYN
- See Also:
- Constant Field Values
INSTR_CALLFUNC
public static final byte INSTR_CALLFUNC
- See Also:
- Constant Field Values
INSTR_CALLNODECALC
public static final byte INSTR_CALLNODECALC
- See Also:
- Constant Field Values
INSTR_CALLNODECALCLIST
public static final byte INSTR_CALLNODECALCLIST
- See Also:
- Constant Field Values
INSTR_CALLNODECALCSUM
public static final byte INSTR_CALLNODECALCSUM
- See Also:
- Constant Field Values
INSTR_CMPBIG
public static final byte INSTR_CMPBIG
- See Also:
- Constant Field Values
INSTR_CMPBIGEQ
public static final byte INSTR_CMPBIGEQ
- See Also:
- Constant Field Values
INSTR_CMPNEQ
public static final byte INSTR_CMPNEQ
- See Also:
- Constant Field Values
INSTR_CMPSEQ
public static final byte INSTR_CMPSEQ
- See Also:
- Constant Field Values
INSTR_CMPSEQI
public static final byte INSTR_CMPSEQI
- See Also:
- Constant Field Values
INSTR_CMPSG
public static final byte INSTR_CMPSG
- See Also:
- Constant Field Values
INSTR_CMPSGEQ
public static final byte INSTR_CMPSGEQ
- See Also:
- Constant Field Values
INSTR_CMPSGEQI
public static final byte INSTR_CMPSGEQI
- See Also:
- Constant Field Values
INSTR_CMPSGI
public static final byte INSTR_CMPSGI
- See Also:
- Constant Field Values
INSTR_CMPSL
public static final byte INSTR_CMPSL
- See Also:
- Constant Field Values
INSTR_CMPSLEQ
public static final byte INSTR_CMPSLEQ
- See Also:
- Constant Field Values
INSTR_CMPSLEQI
public static final byte INSTR_CMPSLEQI
- See Also:
- Constant Field Values
INSTR_CMPSLI
public static final byte INSTR_CMPSLI
- See Also:
- Constant Field Values
INSTR_CMPSML
public static final byte INSTR_CMPSML
- See Also:
- Constant Field Values
INSTR_CMPSMLEQ
public static final byte INSTR_CMPSMLEQ
- See Also:
- Constant Field Values
INSTR_CMPSNEQ
public static final byte INSTR_CMPSNEQ
- See Also:
- Constant Field Values
INSTR_CMPSNEQI
public static final byte INSTR_CMPSNEQI
- See Also:
- Constant Field Values
INSTR_CREATELIST0
public static final byte INSTR_CREATELIST0
- See Also:
- Constant Field Values
INSTR_CREATELIST1
public static final byte INSTR_CREATELIST1
- See Also:
- Constant Field Values
INSTR_CREATELISTN
public static final byte INSTR_CREATELISTN
- See Also:
- Constant Field Values
INSTR_DIV
public static final byte INSTR_DIV
- See Also:
- Constant Field Values
INSTR_DIVINT
public static final byte INSTR_DIVINT
- See Also:
- Constant Field Values
INSTR_DUP
public static final byte INSTR_DUP
- See Also:
- Constant Field Values
INSTR_DYNCOMPUTE
public static final byte INSTR_DYNCOMPUTE
- See Also:
- Constant Field Values
INSTR_EQ
public static final byte INSTR_EQ
- See Also:
- Constant Field Values
INSTR_ERROR
public static final byte INSTR_ERROR
- See Also:
- Constant Field Values
INSTR_GETFUNCREF
public static final byte INSTR_GETFUNCREF
- See Also:
- Constant Field Values
INSTR_GETINPUT
public static final byte INSTR_GETINPUT
- See Also:
- Constant Field Values
INSTR_GETINPUT0
public static final byte INSTR_GETINPUT0
- See Also:
- Constant Field Values
INSTR_GETINPUTCALC
public static final byte INSTR_GETINPUTCALC
- See Also:
- Constant Field Values
INSTR_GETINPUTCALC0
public static final byte INSTR_GETINPUTCALC0
- See Also:
- Constant Field Values
INSTR_GETINPUTRAW
public static final byte INSTR_GETINPUTRAW
- See Also:
- Constant Field Values
INSTR_GETINPUTRAW0
public static final byte INSTR_GETINPUTRAW0
- See Also:
- Constant Field Values
INSTR_GETINPUTRAWSELF
public static final byte INSTR_GETINPUTRAWSELF
- See Also:
- Constant Field Values
INSTR_GOTO
public static final byte INSTR_GOTO
- See Also:
- Constant Field Values
INSTR_IFBIG
public static final byte INSTR_IFBIG
- See Also:
- Constant Field Values
INSTR_IFBIGEQ
public static final byte INSTR_IFBIGEQ
- See Also:
- Constant Field Values
INSTR_IFFALSE
public static final byte INSTR_IFFALSE
- See Also:
- Constant Field Values
INSTR_IFNOTNULL
public static final byte INSTR_IFNOTNULL
- See Also:
- Constant Field Values
INSTR_IFNULL
public static final byte INSTR_IFNULL
- See Also:
- Constant Field Values
INSTR_IFNUMEQUAL
public static final byte INSTR_IFNUMEQUAL
- See Also:
- Constant Field Values
INSTR_IFSEQI
public static final byte INSTR_IFSEQI
- See Also:
- Constant Field Values
INSTR_IFSML
public static final byte INSTR_IFSML
- See Also:
- Constant Field Values
INSTR_IFSMLEQ
public static final byte INSTR_IFSMLEQ
- See Also:
- Constant Field Values
INSTR_IFTRUE
public static final byte INSTR_IFTRUE
- See Also:
- Constant Field Values
INSTR_IFZERO
public static final byte INSTR_IFZERO
- See Also:
- Constant Field Values
INSTR_INPUTTESTNULL
public static final byte INSTR_INPUTTESTNULL
- See Also:
- Constant Field Values
INSTR_LISTAPPENDELEM1
public static final byte INSTR_LISTAPPENDELEM1
- See Also:
- Constant Field Values
INSTR_LISTELEM1
public static final byte INSTR_LISTELEM1
- See Also:
- Constant Field Values
INSTR_LOAD
public static final byte INSTR_LOAD
- See Also:
- Constant Field Values
INSTR_MODINT
public static final byte INSTR_MODINT
- See Also:
- Constant Field Values
INSTR_MULT
public static final byte INSTR_MULT
- See Also:
- Constant Field Values
INSTR_OVER
public static final byte INSTR_OVER
- See Also:
- Constant Field Values
INSTR_POP
public static final byte INSTR_POP
- See Also:
- Constant Field Values
INSTR_POWER
public static final byte INSTR_POWER
- See Also:
- Constant Field Values
INSTR_PUSHCONST
public static final byte INSTR_PUSHCONST
- See Also:
- Constant Field Values
INSTR_PUSHCONST0
public static final byte INSTR_PUSHCONST0
- See Also:
- Constant Field Values
INSTR_PUSHCONST1
public static final byte INSTR_PUSHCONST1
- See Also:
- Constant Field Values
INSTR_PUSHNULL
public static final byte INSTR_PUSHNULL
- See Also:
- Constant Field Values
INSTR_PUSHTIMESCOUNTER
public static final byte INSTR_PUSHTIMESCOUNTER
- See Also:
- Constant Field Values
INSTR_RETURN
public static final byte INSTR_RETURN
- See Also:
- Constant Field Values
INSTR_SAPPEND
public static final byte INSTR_SAPPEND
- See Also:
- Constant Field Values
INSTR_STORE
public static final byte INSTR_STORE
- See Also:
- Constant Field Values
INSTR_SUB
public static final byte INSTR_SUB
- See Also:
- Constant Field Values
INSTR_TABCELL
public static final byte INSTR_TABCELL
- See Also:
- Constant Field Values
INSTR_TABCELLS
public static final byte INSTR_TABCELLS
- See Also:
- Constant Field Values
INSTR_TABCELLSCOL
public static final byte INSTR_TABCELLSCOL
- See Also:
- Constant Field Values
INSTR_TABCELLSCOL_CN
public static final byte INSTR_TABCELLSCOL_CN
- See Also:
- Constant Field Values
INSTR_TABCELLSROW
public static final byte INSTR_TABCELLSROW
- See Also:
- Constant Field Values
INSTR_TABCELLSROW_CN
public static final byte INSTR_TABCELLSROW_CN
- See Also:
- Constant Field Values
INSTR_TABCELLS_CN
public static final byte INSTR_TABCELLS_CN
- See Also:
- Constant Field Values
INSTR_TABCELL_CN
public static final byte INSTR_TABCELL_CN
- See Also:
- Constant Field Values
INSTR_TABCOLS
public static final byte INSTR_TABCOLS
- See Also:
- Constant Field Values
INSTR_TABFINDEXACT
public static final byte INSTR_TABFINDEXACT
- See Also:
- Constant Field Values
INSTR_TABFINDEXACTCOLUMN
public static final byte INSTR_TABFINDEXACTCOLUMN
- See Also:
- Constant Field Values
INSTR_TABFINDEXACTCOLUMNBYNAME
public static final byte INSTR_TABFINDEXACTCOLUMNBYNAME
- See Also:
- Constant Field Values
INSTR_TABFINDINTERVALDOWNCOLUMN
public static final byte INSTR_TABFINDINTERVALDOWNCOLUMN
- See Also:
- Constant Field Values
INSTR_TABFINDINTERVALUP
public static final byte INSTR_TABFINDINTERVALUP
- See Also:
- Constant Field Values
INSTR_TABFINDINTERVALUPCOLUMN
public static final byte INSTR_TABFINDINTERVALUPCOLUMN
- See Also:
- Constant Field Values
INSTR_TABFINDROWEXACT
public static final byte INSTR_TABFINDROWEXACT
- See Also:
- Constant Field Values
INSTR_TABREFCELL
public static final byte INSTR_TABREFCELL
- See Also:
- Constant Field Values
INSTR_TABREFCELLS
public static final byte INSTR_TABREFCELLS
- See Also:
- Constant Field Values
INSTR_TABREFCELLSCOL
public static final byte INSTR_TABREFCELLSCOL
- See Also:
- Constant Field Values
INSTR_TABREFCELLSCOL_CN
public static final byte INSTR_TABREFCELLSCOL_CN
- See Also:
- Constant Field Values
INSTR_TABREFCELLSROW
public static final byte INSTR_TABREFCELLSROW
- See Also:
- Constant Field Values
INSTR_TABREFCELLSROW_CN
public static final byte INSTR_TABREFCELLSROW_CN
- See Also:
- Constant Field Values
INSTR_TABREFCELLS_CN
public static final byte INSTR_TABREFCELLS_CN
- See Also:
- Constant Field Values
INSTR_TABREFCELL_CN
public static final byte INSTR_TABREFCELL_CN
- See Also:
- Constant Field Values
INSTR_TABREFFINDEXACT
public static final byte INSTR_TABREFFINDEXACT
- See Also:
- Constant Field Values
INSTR_TABREFFINDEXACTCOLUMN
public static final byte INSTR_TABREFFINDEXACTCOLUMN
- See Also:
- Constant Field Values
INSTR_TABREFFINDINTERVALDOWNCOLUMN
public static final byte INSTR_TABREFFINDINTERVALDOWNCOLUMN
- See Also:
- Constant Field Values
INSTR_TABREFFINDINTERVALUP
public static final byte INSTR_TABREFFINDINTERVALUP
- See Also:
- Constant Field Values
INSTR_TABREFFINDINTERVALUPCOLUMN
public static final byte INSTR_TABREFFINDINTERVALUPCOLUMN
- See Also:
- Constant Field Values
INSTR_TABREFFINDROWEXACT
public static final byte INSTR_TABREFFINDROWEXACT
- See Also:
- Constant Field Values
INSTR_TABROWS
public static final byte INSTR_TABROWS
- See Also:
- Constant Field Values
INSTR_TIMES_INCTOP
public static final byte INSTR_TIMES_INCTOP
- See Also:
- Constant Field Values
INSTR_TIMES_POP
public static final byte INSTR_TIMES_POP
- See Also:
- Constant Field Values
INSTR_TIMES_PUSH
public static final byte INSTR_TIMES_PUSH
- See Also:
- Constant Field Values
INSTR_TREE_NODECALCFORMULA
public static final byte INSTR_TREE_NODECALCFORMULA
- See Also:
- Constant Field Values
INSTR_TREE_NODECALCOWN
public static final byte INSTR_TREE_NODECALCOWN
- See Also:
- Constant Field Values
INSTR_TREE_NODECALCTOTAL
public static final byte INSTR_TREE_NODECALCTOTAL
- See Also:
- Constant Field Values
INSTR_TREE_NODEFORMULAINC
public static final byte INSTR_TREE_NODEFORMULAINC
- See Also:
- Constant Field Values
INSTR_TREE_NODEFORMULATIMES
public static final byte INSTR_TREE_NODEFORMULATIMES
- See Also:
- Constant Field Values
INSTR_TREE_NODETIMESID
public static final byte INSTR_TREE_NODETIMESID
- See Also:
- Constant Field Values
INSTR_TREE_SUBNODES_COUNTER
public static final byte INSTR_TREE_SUBNODES_COUNTER
- See Also:
- Constant Field Values
INSTR_TREE_SUBNODES_GET
public static final byte INSTR_TREE_SUBNODES_GET
- See Also:
- Constant Field Values
INSTR_UNMINUS
public static final byte INSTR_UNMINUS
- See Also:
- Constant Field Values
INSTR_UNPLUS
public static final byte INSTR_UNPLUS
- See Also:
- Constant Field Values
INSTR_XOR
public static final byte INSTR_XOR
- See Also:
- Constant Field Values
asm
public final TciAssembler.Asm asm
profilingData
public TciMachine.ProfilingData profilingData
TciMachine
public TciMachine(TciAssembler.Asm asm)
TciMachine
public TciMachine(TciAssembler.Asm asm,
int maxcachesize)
getStatistics
public java.lang.String getStatistics()
getInputIndex
public int getInputIndex(java.lang.String nameUppercase)
reset
public void reset()
- Specified by:
reset
in interface treecalc.rt.S
getInput
public treecalc.rt.V getInput(int inputid,
treecalc.rt.V... index)
throws treecalc.rt.ExceptionNeedMoreInput
- Get input as set from outside.
Indizes are normalized by cutting of trailing zeros.
- Specified by:
getInput
in interface treecalc.rt.S
- Parameters:
inputid
- index
-
- Returns:
- null if notfound, the value as V otherwise
- Throws:
treecalc.rt.ExceptionNeedMoreInput
getInputIsNull
public boolean getInputIsNull(java.lang.String name)
- Specified by:
getInputIsNull
in interface treecalc.rt.S
getAutocounterValues
public treecalc.rt.V[] getAutocounterValues(int[] autocounters)
- Specified by:
getAutocounterValues
in interface treecalc.rt.S
getInputAutocounter
public treecalc.rt.V getInputAutocounter(int inputid,
int[] autocounters)
- Specified by:
getInputAutocounter
in interface treecalc.rt.S
setInput
public void setInput(int inputid,
treecalc.rt.V value,
int... index)
- Specified by:
setInput
in interface treecalc.rt.S
setInput
public void setInput(java.lang.String name,
java.lang.String value)
- Specified by:
setInput
in interface treecalc.rt.S
getInputList
public java.util.List<java.lang.String[]> getInputList(int inputid,
int... index)
- Specified by:
getInputList
in interface treecalc.rt.S
getInputList
public java.util.List<java.lang.String[]> getInputList(java.lang.String name)
- Specified by:
getInputList
in interface treecalc.rt.S
calculateMaintree
public java.lang.String calculateMaintree(int calcindex,
java.lang.String... args)
- Specified by:
calculateMaintree
in interface treecalc.rt.S
calculateMaintree
public java.lang.String calculateMaintree(java.lang.String name)
- Specified by:
calculateMaintree
in interface treecalc.rt.S
parseCalcname
public static java.lang.Object[] parseCalcname(java.lang.String calcname)
- Parameters:
calcname:
- F_Test, F_Test(1, 2), A_Test[5], A_Test[5].visible, T_Table[3, 5], T_Table[3].text
- Returns:
- Object[5]:
[0]: String nameUppercase + ':' + args.length
[1]: V[] args
[2]: nameUppercase
[3]: String calcnameUppercase (or null)
[4]: Integer type - 0:no parens, 1:(), 2:[]
pushTimesCounter
public void pushTimesCounter(int timesid)
- Specified by:
pushTimesCounter
in interface treecalc.rt.S
incTimesCounterTop
public void incTimesCounterTop()
- Specified by:
incTimesCounterTop
in interface treecalc.rt.S
setTimesCounterTop
public void setTimesCounterTop(int value)
- Specified by:
setTimesCounterTop
in interface treecalc.rt.S
popTimesCounter
public void popTimesCounter()
- Specified by:
popTimesCounter
in interface treecalc.rt.S
getTimesCounter
public int getTimesCounter(int timesid)
- Specified by:
getTimesCounter
in interface treecalc.rt.S
getTimesCounterV
public treecalc.rt.V getTimesCounterV(int timesid)
- Specified by:
getTimesCounterV
in interface treecalc.rt.S
getTimesCounterVException
public treecalc.rt.V getTimesCounterVException(int timesid)
getCacheKey
public java.lang.Object getCacheKey(int id,
treecalc.rt.V... args)
- Specified by:
getCacheKey
in interface treecalc.rt.S
readCache
public treecalc.rt.V readCache(java.lang.Object key)
- Specified by:
readCache
in interface treecalc.rt.S
writeCache
public void writeCache(java.lang.Object key,
treecalc.rt.V value)
- Specified by:
writeCache
in interface treecalc.rt.S
calculateInput
public java.lang.String calculateInput(java.lang.String name)
- Specified by:
calculateInput
in interface treecalc.rt.S
calculateInputCalc
public java.lang.String calculateInputCalc(java.lang.String name,
java.lang.String calcname)
- Specified by:
calculateInputCalc
in interface treecalc.rt.S
calculateFunction
public java.lang.String calculateFunction(java.lang.String name)
- Specified by:
calculateFunction
in interface treecalc.rt.S
calculateTable
public java.lang.String calculateTable(java.lang.String name)
- Specified by:
calculateTable
in interface treecalc.rt.S
getCalculateId
public long getCalculateId(java.lang.String name)
- Specified by:
getCalculateId
in interface treecalc.rt.S
calculate
public java.lang.String calculate(java.lang.String name)
- Specified by:
calculate
in interface treecalc.rt.S
calculate
public java.lang.String calculate(long id)
- Specified by:
calculate
in interface treecalc.rt.S
calculate
public java.lang.String calculate(long id,
java.lang.String... args)
- Specified by:
calculate
in interface treecalc.rt.S
calculate
public java.lang.String calculate(long id,
int... args)
- Specified by:
calculate
in interface treecalc.rt.S
needed
public boolean needed(java.lang.String inputname,
java.lang.String calcname)
- Specified by:
needed
in interface treecalc.rt.S
getSubmodel
public treecalc.rt.S getSubmodel(java.lang.String vpmname)
- Specified by:
getSubmodel
in interface treecalc.rt.S
trace
public void trace(java.lang.String msg,
java.lang.String result,
treecalc.rt.S.Traceaction action)
- Specified by:
trace
in interface treecalc.rt.S
Copyright © 2013. All Rights Reserved.