Model15<OT extends ProgramOperation> class Null safety

Inheritance

Constructors

Model15(List<List<MKey<OT>?>> _getLogicalKeys(), ProgramInstruction<OT> _newProgramInstructionF(OT, ArgDone))

Properties

captureDebugLog bool
Starts or stops capturing debug log information. A debug log captures the calculator state, and subsequent keystrokes. It's meant to be a tool to facilitate bug reports.
read / writeinherited
cFlag bool
read / writeoverride
debugLog DebugLog?
read-onlyinherited
deferToButtonUp ↔ (void Function()?)
read / write
display DisplayModel
latefinalinherited
displayDisabled bool
read / writeinherited
displayLeadingZeros bool
read-onlyoverride
displayMode DisplayMode
read / writeinherited
doubleWordStatus DoubleWordStatus
Gives a helper object for implementation of the double-integer multiply, remainder and divide operations.
read-onlyinherited
read-onlyoverride
floatOverflow bool
The float overflow flag, which is stored as gFlag on the 16C. On the 15C, it causes errorFlash to be true.
read / writeoverride
gFlag bool
read / writeoverride
hashCode int
The hash code for this object.
read-onlyinherited
integerSignMode IntegerSignMode
read / writeinherited
internalSnapshot Observable<ModelSnapshot>
read-onlyinherited
is15C bool
read-onlyoverride
isComplexMode bool
read / writeinherited-getteroverride-setter
isFloatMode bool
read-onlyinherited
lastX Value
read / writeinherited
lastXC Complex
read / writeinherited
lastXImaginary Value
read-onlyinherited
logicalKeys List<List<MKey<OT>?>>
The list of "logical" keys. This has nothing to do with the UI; The order of the operations in this list determines the externalized form of the operations in the calculator's storage (the opcodes). It also determines the displayed appearance of operations in program mode, whether the calculator is in portrait or landscape orientation.
latefinal
matrices List<Matrix>
latefinal
maxInt BigInt
read-onlyinherited
memory Memory15<OT>
latefinal
minInt BigInt
read-onlyinherited
modelName String
The name of this model of the calculator (16C or 15C).
read-onlyoverride
needsSave bool
read / writeinherited
onIsPressed Observable<bool>
finalinherited
popSetResultX Value
Pop the stack and set X, setting lastX
write-onlyinherited
popSetResultXC Complex
Pop the stack and set X from a Dart double, setting lastX
write-onlyinherited
popSetResultXF double
Pop the stack and set X from a Dart double, setting lastX
write-onlyinherited
popSetResultXI BigInt
Pop the stack and set X from a signed BigInt, setting lastX
write-onlyinherited
prgmFlag bool
Are we entering a program?
read / writeinherited
program ProgramMemory<OT>
read-onlyinherited
rand RandomGenerator
final
registerNumberBase int
Are register numbers base 10 (15C), or base 16 (16C)?
read-onlyoverride
resultMatrix int
read / write
resultX Value
Set a result in X, which saves the old X value in lastX
write-onlyinherited
resultXC Complex
write-onlyinherited
resultXF double
write-onlyinherited
resultXI BigInt
write-onlyinherited
returnStackSize int
read-onlyoverride
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
settings Settings
latefinalinherited
shift ShiftKey
read / writeinherited
signMask BigInt
read-onlyinherited
signMode SignMode
read-onlyinherited
t Value
read / writeinherited
trigMode TrigMode
read / writeinherited
userMode bool
read / writeoverride-getter
wordMask BigInt
read-onlyinherited
wordSize int
Set the word size, and fix up the values on the stack for the new size. A size of 0 is interpreted as 64, as per the 16C.
read / writeinherited
x Value
read / writeinherited
xC Complex
Get x as a complex value
read / writeinherited
xF double
Get x as a Dart double
read / writeinherited
xI BigInt
Get x as a signed BigInt
read / writeinherited
xImaginary Value
Just the imaginary part of x
read / writeinherited
xPreserveCLX Value
write-onlyinherited
xRealF double
Set the real part of X, leaving the imaginary part alone, and not setting LastX. Clear clxDone. The 15C's stack management is simple! ;-)
write-onlyinherited
y Value
read / writeinherited
yC Complex
read / writeinherited
yF double
read / writeinherited
yI BigInt
read / writeinherited
z Value
read / writeinherited
zC Complex
read-onlyinherited
zF double
write-onlyinherited

Methods

addProgramTraceToSnapshot(String f()) → void
inherited
addStuffToSnapshot(StringBuffer buf) → void
override
chsX() → void
Negate the value in x like the CHS key does. The behavior varies according to the current sign mode. In complex mode, it leaves the imaginary part alone, and does not change the CLX status.
override
clx() → void
inherited
compare(Value x, Value y) int
Compare two values according to the current sign mode
inherited
decodeJson(Map<String, dynamic> json, {required bool needsSave}) → void
Convert from a data structure that comes from JSON. If there's an error in the middle, it might be partially read, but not in a way that causes bad behavior in the calculator.
override
formatValue(Value v) String
override
getFlag(int i) bool
inherited
getStackByIndex(int i) Value
inherited
getStackByIndexC(int i) Complex
inherited
initializeFromJsonOrUri(String linkOrJson) bool
inherited
isZero(Value v) bool
Determine if this value is 0 or, if applicable, -0. Not for use with an index register value, since it can have a different representation for -0 -- cf. Memory.isZeroI()
inherited
newProgramInstruction(OT operation, ArgDone arg) ProgramInstruction<OT>
Create an instance of the model-specific ProgramInstruction subtype
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
optimizeInternalSnapshot() → void
inherited
popStack() → void
inherited
pushStack() → void
"lift" stack, after which one can write to x
inherited
readFromPersistentStorage() Future<void>
inherited
reset() → void
Reset the calculator to its default state.
override
override
resetFromPersistentStorage() Future<void>
inherited
rotateStackDown() → void
the R key
inherited
rotateStackUp() → void
The R key
inherited
selfTestContents() LcdContents
override
setFlag(int i, bool v) → void
override
setupComplex(List<Value>? imaginaryStack) → void
inherited
setXYZT(Value v) → void
inherited
setYZT(Value v) → void
inherited
swapXY() → void
inherited
toJson() Map<String, Object>
Convert to a data structure that can be serialized as JSON.
override
toString() String
A string representation of this object.
inherited
tryParseValue(String s) Value?
Try to parse s consistent with the current display mode, giving a Value on success.
inherited
writeToPersistentStorage() Future<void>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited