Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
C
D
E
G
I
J
L
M
N
O
P
R
S
T
U
A
abs()
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Add
- class EDU.ksu.cis.calculator.defaultmodel.
Add
.
The add operation.
Add
- class EDU.ksu.cis.calculator.javamodel.
Add
.
The add operation.
Add()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Add
Add()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Add
add(LargeInteger)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the sum of this LargeInteger and the given LargeInteger.
addToBack(Object)
- Method in class EDU.ksu.cis.calculator.
Deque
Inserts the given Object at the back of the Deque.
addToFront(Object)
- Method in class EDU.ksu.cis.calculator.
Deque
Inserts the given Object at the front of the Deque.
C
Calculator
- interface EDU.ksu.cis.calculator.
Calculator
.
An interface abstracting a calculator.
CalculatorImpl
- class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
.
A model for an RPN calculator using the
LargeInteger
class.
CalculatorImpl
- class EDU.ksu.cis.calculator.javamodel.
CalculatorImpl
.
A model for an RPN calculator using the
BigInteger
class.
CalculatorImpl(CalculatorUI)
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
Constructs a new CalculatorImpl using the given user interface, base 10, and sticky bases.
CalculatorImpl(CalculatorUI)
- Constructor for class EDU.ksu.cis.calculator.javamodel.
CalculatorImpl
Constructs a new CalculatorImpl using the given user interface and base 10.
CalculatorImpl(CalculatorUI, boolean)
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
Constructs a new CalculatorImpl using the given user interface and the given setting for sticky bases, in base 10.
CalculatorImpl(CalculatorUI, int)
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
Constructs a new CalculatorImpl using the given user interface and base, with sticky bases.
CalculatorImpl(CalculatorUI, int)
- Constructor for class EDU.ksu.cis.calculator.javamodel.
CalculatorImpl
Constructs a new CalculatorImpl using the given user interface and base.
CalculatorImpl(CalculatorUI, int, boolean)
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
Constructs a new CalculatorImpl using the given user interface, base, and setting for sticky bases.
CalculatorUI
- interface EDU.ksu.cis.calculator.
CalculatorUI
.
An interface abstracting user interface for a calculator.
changeSettings(Object, String)
- Method in interface EDU.ksu.cis.calculator.
Calculator
This method may be implemented to change any settings of the calculator.
changeSettings(Object, String)
- Method in class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
Changes the settings of the calculator.
changeSettings(Object, String)
- Method in class EDU.ksu.cis.calculator.javamodel.
CalculatorImpl
Changes the settings of the calculator.
ChangeSigns
- class EDU.ksu.cis.calculator.defaultmodel.
ChangeSigns
.
The change signs operation.
ChangeSigns
- class EDU.ksu.cis.calculator.javamodel.
ChangeSigns
.
The change signs operation.
ChangeSigns()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
ChangeSigns
ChangeSigns()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
ChangeSigns
ClearStack
- class EDU.ksu.cis.calculator.defaultmodel.
ClearStack
.
The clear stack operation.
ClearStack
- class EDU.ksu.cis.calculator.javamodel.
ClearStack
.
The clear stack operation.
ClearStack()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
ClearStack
ClearStack()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
ClearStack
compareTo(Object)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Compares this LargeInteger with the given Object.
ConvertBase
- class EDU.ksu.cis.calculator.
ConvertBase
.
The convert base operation.
ConvertBase(int)
- Constructor for class EDU.ksu.cis.calculator.
ConvertBase
Constructs a new ConvertBase.
D
DefaultUI
- class EDU.ksu.cis.calculator.
DefaultUI
.
The default user interface.
DefaultUI(String, JApplet)
- Constructor for class EDU.ksu.cis.calculator.
DefaultUI
Constructs a new user interface.
Deque
- class EDU.ksu.cis.calculator.
Deque
.
A double-ended queue which grows as needed.
Deque()
- Constructor for class EDU.ksu.cis.calculator.
Deque
Divide
- class EDU.ksu.cis.calculator.defaultmodel.
Divide
.
The divide operation.
Divide
- class EDU.ksu.cis.calculator.javamodel.
Divide
.
The divide operation.
Divide()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Divide
Divide()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Divide
divide(int)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns an array whose first element is
this / a
and whose second element is
this % a
.
divide(LargeInteger)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns a 2-element array whose first element is
this / other
and whose second element is
this % other
.
doOperation(Object[])
- Method in interface EDU.ksu.cis.calculator.
EncodedOperation
Performs the operation.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
ChangeSigns
Returns negation of
operands[0]
.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
TenToPower
Returns the result of raising 10 to the power of
operands[0]
.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Power
Returns the result of raising operand[0] to the power of operand[1].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Remainder
Returns the remainder obtained when dividing operand[0] by operand[1].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Divide
Returns the result of dividing operand[0] by operand[1].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Add
Returns the result of adding the given operands.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Subtract
Returns the result of subtracting operand[1] from operand[0].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Multiply
Returns the result of multiplyinging the given operands.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.defaultmodel.
TwoToPower
Returns the result of raising 2 to the power of
operands[0]
.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
Subtract
Returns the result of subtracting operand[1] from operand[0].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
Remainder
Returns the remainder obtained when dividing operand[0] by operand[1].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
Power
Returns the result of raising operand[0] to the power of operand[1].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
Multiply
Returns the result of multiplyinging the given operands.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
Divide
Returns the result of dividing operand[0] by operand[1].
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
ChangeSigns
Returns negation of
operands[0]
.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
TwoToPower
Returns the result of raising 2 to the power of
operands[0]
.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
Add
Returns the result of adding the given operands.
doOperation(Object[])
- Method in class EDU.ksu.cis.calculator.javamodel.
TenToPower
Returns the result of raising 10 to the power of
operands[0]
.
doOperation(Operation, String)
- Method in interface EDU.ksu.cis.calculator.
Calculator
Performs operation
op
, using
input
as a possible source of operand(s).
doOperation(Operation, String)
- Method in class EDU.ksu.cis.calculator.defaultmodel.
CalculatorImpl
Performs the given operation.
doOperation(Operation, String)
- Method in class EDU.ksu.cis.calculator.javamodel.
CalculatorImpl
Performs the given operation.
E
EDU.ksu.cis.calculator
- package EDU.ksu.cis.calculator
This package contains all of the classes and interfaces needed for defining an aribitrary-precision integer calculator, except those specific to a particular calculator model.
EDU.ksu.cis.calculator.defaultmodel
- package EDU.ksu.cis.calculator.defaultmodel
This package contains the definition of a calculator model using the class
LargeInteger
.
EDU.ksu.cis.calculator.javamodel
- package EDU.ksu.cis.calculator.javamodel
This package contains the definition of a calculator model using the class
BigInteger
.
EDU.ksu.cis.calculator.jnlpui
- package EDU.ksu.cis.calculator.jnlpui
This package contains the definition of a user interface compatible with the JNLP API.
EmptyDequeException
- exception EDU.ksu.cis.calculator.
EmptyDequeException
.
An Exception thrown when an attempt is made to access an element in an empty Deque.
EmptyDequeException()
- Constructor for class EDU.ksu.cis.calculator.
EmptyDequeException
EncodedOperation
- interface EDU.ksu.cis.calculator.
EncodedOperation
.
An interface abstracting any operation explicitly encoded within the implementing class.
G
getBack()
- Method in class EDU.ksu.cis.calculator.
Deque
Returns the Object at the back of the Deque.
getBase()
- Method in class EDU.ksu.cis.calculator.
LargeInteger
getBase()
- Method in class EDU.ksu.cis.calculator.
ConvertBase
Returns the new base.
getFront()
- Method in class EDU.ksu.cis.calculator.
Deque
Returns the Object at the front of the Deque.
getInput()
- Method in class EDU.ksu.cis.calculator.
DefaultUI
Returns any input the user has provided since the model last updated the display.
getInput()
- Method in interface EDU.ksu.cis.calculator.
CalculatorUI
Returns the current contents of the input buffer.
getInput()
- Method in class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
Returns any input the user has provided since the model last updated the display.
getParameterInfo()
- Method in class EDU.ksu.cis.calculator.
UserInterface
Returns information for applet parameters.
getSize()
- Method in class EDU.ksu.cis.calculator.
Deque
Returns the number of elements in the Deque.
I
init()
- Method in class EDU.ksu.cis.calculator.
UserInterface
Initializes the applet.
insert(String)
- Method in class EDU.ksu.cis.calculator.
DefaultUI
Inserts the given string into the display at the text caret.
insert(String)
- Method in interface EDU.ksu.cis.calculator.
CalculatorUI
Inserts the given String into the input buffer at a location determined by the implementation.
insert(String)
- Method in class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
Inserts the given string into the display at the text caret.
insertString(int, String, AttributeSet)
- Method in class EDU.ksu.cis.calculator.
NumericDocument
Inserts the given String into the document, removing any illegal characters.
isEmpty()
- Method in class EDU.ksu.cis.calculator.
Deque
Returns
true
iff the Deque is empty.
isModified()
- Method in class EDU.ksu.cis.calculator.
NumericDocument
Returns true iff this NumericDocument has been modified since its creation.
J
JNLPCompatibleUI
- class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
.
A user interface designed to be compatible with the JNLP API, so that it will work properly under Java Web Start.
JNLPCompatibleUI(String, JApplet)
- Constructor for class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
Constructs a new user interface.
L
LargeInteger
- class EDU.ksu.cis.calculator.
LargeInteger
.
A class which implements aribitrary-precision integer arithmetic.
LargeInteger(String)
- Constructor for class EDU.ksu.cis.calculator.
LargeInteger
Constructs a new LargeInteger in base 10 from the given String.
LargeInteger(String, int)
- Constructor for class EDU.ksu.cis.calculator.
LargeInteger
Constructs a new LargeInteger in the given base from the given String.
M
main(String[])
- Static method in class EDU.ksu.cis.calculator.
UserInterface
Initializes the application.
Multiply
- class EDU.ksu.cis.calculator.defaultmodel.
Multiply
.
The multiply operation.
Multiply
- class EDU.ksu.cis.calculator.javamodel.
Multiply
.
The multiply operation.
Multiply()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Multiply
Multiply()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Multiply
multiply(int)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the product of this LargeInteger and
a
.
multiply(LargeInteger)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the product of this LargeInteger and the given LargeInteger.
N
negate()
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the LargeInteger obtained by changing the sign of this LargeInteger.
NumericDocument
- class EDU.ksu.cis.calculator.
NumericDocument
.
A Document for storing an arbitrarily large number in an arbitrary base, 2-36.
NumericDocument(int, String)
- Constructor for class EDU.ksu.cis.calculator.
NumericDocument
Constructs a new NumericDocument.
numOperands()
- Method in interface EDU.ksu.cis.calculator.
Operation
Returns the number of operands required by this Operation.
numOperands()
- Method in class EDU.ksu.cis.calculator.
ConvertBase
Returns 0.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
RotateDown
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
RotateUp
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
ClearStack
Returns 0.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
ChangeSigns
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
TenToPower
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Power
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Remainder
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Divide
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Add
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Subtract
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Multiply
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
TwoToPower
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Pop
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.defaultmodel.
Push
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Subtract
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
RotateUp
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
RotateDown
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Remainder
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Push
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Power
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Pop
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Multiply
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Divide
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
ClearStack
Returns 0.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
ChangeSigns
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
TwoToPower
Returns 1.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
Add
Returns 2.
numOperands()
- Method in class EDU.ksu.cis.calculator.javamodel.
TenToPower
Returns 1.
O
Operation
- interface EDU.ksu.cis.calculator.
Operation
.
An interface abstracting any operation.
P
Pop
- class EDU.ksu.cis.calculator.defaultmodel.
Pop
.
The pop operation.
Pop
- class EDU.ksu.cis.calculator.javamodel.
Pop
.
The pop operation.
Pop()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Pop
Pop()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Pop
pow(int)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns this LargeInteger raised to the power
exp
.
pow(int, int, int)
- Static method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the LargeInteger
a
exp
, stored in base
db
.
pow(int, LargeInteger)
- Static method in class EDU.ksu.cis.calculator.
LargeInteger
Returns
a
raised to the power
exp
.
pow(LargeInteger)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns this LargeInteger raised to the power
other
.
Power
- class EDU.ksu.cis.calculator.defaultmodel.
Power
.
The general exponentiation operation.
Power
- class EDU.ksu.cis.calculator.javamodel.
Power
.
The general exponentiation operation.
Power()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Power
Power()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Power
Push
- class EDU.ksu.cis.calculator.defaultmodel.
Push
.
The push operation.
Push
- class EDU.ksu.cis.calculator.javamodel.
Push
.
The push operation.
Push()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Push
Push()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Push
R
Remainder
- class EDU.ksu.cis.calculator.defaultmodel.
Remainder
.
The remainder operation.
Remainder
- class EDU.ksu.cis.calculator.javamodel.
Remainder
.
The remainder operation.
Remainder()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Remainder
Remainder()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Remainder
remove(int, int)
- Method in class EDU.ksu.cis.calculator.
NumericDocument
Removes the specified substring from this NumericDocument.
removeFromBack()
- Method in class EDU.ksu.cis.calculator.
Deque
Removes the Object at the back of the Deque and returns it.
removeFromFront()
- Method in class EDU.ksu.cis.calculator.
Deque
Removes the Object at the front of the Deque and returns it.
RotateDown
- class EDU.ksu.cis.calculator.defaultmodel.
RotateDown
.
The rotate down operation.
RotateDown
- class EDU.ksu.cis.calculator.javamodel.
RotateDown
.
The rotate down operation.
RotateDown()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
RotateDown
RotateDown()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
RotateDown
RotateUp
- class EDU.ksu.cis.calculator.defaultmodel.
RotateUp
.
The rotate up operation.
RotateUp
- class EDU.ksu.cis.calculator.javamodel.
RotateUp
.
The rotate up operation.
RotateUp()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
RotateUp
RotateUp()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
RotateUp
S
ScrollingDisplay
- class EDU.ksu.cis.calculator.jnlpui.
ScrollingDisplay
.
A single-line text area with a scrollbar.
ScrollingDisplay(JTextArea)
- Constructor for class EDU.ksu.cis.calculator.jnlpui.
ScrollingDisplay
Constructs a ScrollingDisplay.
setBusy(boolean)
- Method in class EDU.ksu.cis.calculator.
DefaultUI
Sets the cursor to "Wait" if
busy = true
or "Default" otherwise.
setBusy(boolean)
- Method in interface EDU.ksu.cis.calculator.
CalculatorUI
Notifies the user interface whether work is being done.
setBusy(boolean)
- Method in class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
Sets the cursor to "Wait" if
busy = true
or "Default" otherwise.
setOutput(String, int)
- Method in class EDU.ksu.cis.calculator.
DefaultUI
Displays the given String, and the given radix.
setOutput(String, int)
- Method in interface EDU.ksu.cis.calculator.
CalculatorUI
Displays the given String and radix.
setOutput(String, int)
- Method in class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
Displays the given String, and the given radix.
showError(Throwable)
- Method in class EDU.ksu.cis.calculator.
DefaultUI
Displays the given Throwable in a message dialog.
showError(Throwable)
- Method in interface EDU.ksu.cis.calculator.
CalculatorUI
Displays an error message describing the given Throwable.
showError(Throwable)
- Method in class EDU.ksu.cis.calculator.jnlpui.
JNLPCompatibleUI
Displays the given Throwable in a message dialog.
Subtract
- class EDU.ksu.cis.calculator.defaultmodel.
Subtract
.
The subtract operation.
Subtract
- class EDU.ksu.cis.calculator.javamodel.
Subtract
.
The subtract operation.
Subtract()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
Subtract
Subtract()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
Subtract
subtract(LargeInteger)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the difference of this LargeInteger and the given LargeInteger.
T
TenToPower
- class EDU.ksu.cis.calculator.defaultmodel.
TenToPower
.
The operation of raising 10 to an arbitrary power.
TenToPower
- class EDU.ksu.cis.calculator.javamodel.
TenToPower
.
The operation of raising 10 to an arbitrary power.
TenToPower()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
TenToPower
TenToPower()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
TenToPower
toBase(int)
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Converts this LargeInteger to the given base.
toString()
- Method in class EDU.ksu.cis.calculator.
LargeInteger
Returns the String representation of this LargeInteger.
TwoToPower
- class EDU.ksu.cis.calculator.defaultmodel.
TwoToPower
.
The operation of raising 2 to an arbitrary power.
TwoToPower
- class EDU.ksu.cis.calculator.javamodel.
TwoToPower
.
The operation of raising 2 to an arbitrary power.
TwoToPower()
- Constructor for class EDU.ksu.cis.calculator.defaultmodel.
TwoToPower
TwoToPower()
- Constructor for class EDU.ksu.cis.calculator.javamodel.
TwoToPower
U
UserInterface
- class EDU.ksu.cis.calculator.
UserInterface
.
This is the driver class for the arbitrary-precision integer calculator.
UserInterface()
- Constructor for class EDU.ksu.cis.calculator.
UserInterface
A
C
D
E
G
I
J
L
M
N
O
P
R
S
T
U
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes