Skip navigation links
A B C D E F G H I L M N P R S T U V Z 

A

add(Ball) - Method in class hw1.BallContainer
Adds a ball to the container.
add(Ball) - Method in class hw1.Box
Adds a Ball to this box.
add(RatNum) - Method in class hw2.RatNum
Addition operation.
add(RatPoly) - Method in class hw2.RatPoly
Addition operation.
add() - Method in class hw2.RatPolyStack
Pops two elements off of the stack, adds them, and places the result on top of the stack.
add(RatTerm) - Method in class hw2.RatTerm
Addition operation.
Adder - Class in hw1
Adder asks the user for two ints and computes their sum.
Adder() - Constructor for class hw1.Adder
 
antiDifferentiate(RatNum) - Method in class hw2.RatPoly
Returns the antiderivative of this RatPoly.
antiDifferentiate() - Method in class hw2.RatTerm
Returns the antiderivative of this RatTerm.

B

Ball - Class in hw1
This is a simple object that has a volume.
Ball(double) - Constructor for class hw1.Ball
Constructor that creates a new ball object with the specified volume.
BallContainer - Class in hw1
This is a container can be used to contain Balls.
BallContainer() - Constructor for class hw1.BallContainer
Constructor that creates a new ballcontainer.
Box - Class in hw1
This is a container can be used to contain Balls.
Box(double) - Constructor for class hw1.Box
Constructor that creates a new box.

C

CalculatorFrame - Class in hw2
CalculatorFrame represents the main window for a graphical calculator.
CalculatorFrame() - Constructor for class hw2.CalculatorFrame
 
clear() - Method in class hw1.BallContainer
Empties the container, i.e.
clear() - Method in class hw1.Box
Empties the box, i.e.
clear() - Method in class hw2.RatPolyStack
Clears the stack.
compareTo(RatNum) - Method in class hw2.RatNum
Compares two RatNums.
computeSum(int, int) - Static method in class hw1.Adder
 
contains(Ball) - Method in class hw1.BallContainer
This method returns true if this container contains the specified Ball.
contains(Ball) - Method in class hw1.Box
This method returns true if this box contains the specified Ball.

D

degree() - Method in class hw2.RatPoly
Returns the degree of this RatPoly.
differentiate() - Method in class hw2.RatPoly
Return the derivative of this RatPoly.
differentiate() - Method in class hw2.RatPolyStack
Pops the top element off of the stack, differentiates it, and places the result on top of the stack.
differentiate() - Method in class hw2.RatTerm
Return the derivative of this RatTerm.
div(RatNum) - Method in class hw2.RatNum
Division operation.
div(RatPoly) - Method in class hw2.RatPoly
Truncating division operation.
div() - Method in class hw2.RatPolyStack
Divides the next from top poly by the top poly, pops both off the stack, and places the result on top of the stack.
div(RatTerm) - Method in class hw2.RatTerm
Division operation.
doubleValue() - Method in class hw2.RatNum
Approximates the value of this rational.
drawPlot(float, float, float, float, float[], float[], float, float, int, int, int, Graphics) - Method in class hw2.PolyGraph
 
dup() - Method in class hw2.RatPolyStack
Duplicates the top RatPoly on this.

E

equals(Object) - Method in class hw2.RatNum
Standard equality operation.
equals(Object) - Method in class hw2.RatPoly
Standard equality operation.
equals(Object) - Method in class hw2.RatTerm
Standard equality operation.
eval(double) - Method in class hw2.RatPoly
Returns the value of this RatPoly, evaluated at d.
eval(double) - Method in class hw2.RatTerm
Returns the value of this RatTerm, evaluated at d.

F

Fibonacci - Class in hw1
Fibonacci calculates the nth term in the Fibonacci sequence.
Fibonacci() - Constructor for class hw1.Fibonacci
 
floatValue() - Method in class hw2.RatNum
Returns a float approximation for this.

G

getBallsFromSmallest() - Method in class hw1.Box
This method returns an iterator that yields all the balls in this box in order of ascending size, i.e., the smallest Ball first, followed by Balls of increasing size.
getCoeff() - Method in class hw2.RatTerm
Gets the coefficient of this RatTerm.
getExpt() - Method in class hw2.RatTerm
Gets the exponent of this RatTerm.
getFibTerm(int) - Method in class hw1.Fibonacci
Calculates the desired term in the Fibonacci sequence.
getGreeting() - Method in class hw1.HelloWorld
 
getGreeting() - Method in class hw1.HolaWorld
 
getNthFromTop(int) - Method in class hw2.RatPolyStack
Returns the RatPoly that is 'index' elements from the top of the stack.
getTerm(int) - Method in class hw2.RatPoly
Gets the RatTerm associated with degree 'deg'
getVolume() - Method in class hw1.Ball
Returns the volume of this Ball.
getVolume() - Method in class hw1.BallContainer
Each Ball has a volume.
getVolume() - Method in class hw1.Box
Each Ball has a volume.
GREETING - Static variable in class hw1.HelloWorld
the greeting to display when this getGreeting() is invoked

H

hashCode() - Method in class hw2.RatNum
Standard hashCode function.
hashCode() - Method in class hw2.RatPoly
Standard hashCode function.
hashCode() - Method in class hw2.RatTerm
Standard hashCode function.
HelloWorld - Class in hw1
HelloWorld is an implementation of the token introductory "Hello World" program.
HelloWorld() - Constructor for class hw1.HelloWorld
 
HolaWorld - Class in hw1
HolaWorld is like HelloWorld except it can say hello in Spanish!
HolaWorld() - Constructor for class hw1.HolaWorld
 
hw1 - package hw1
Assignment HW1: Environment Setup and Java Introduction for CSE 331.
hw2 - package hw2
Assignment HW2: Java and Coding to Specifications for CSE 331.

I

integrate(double, double) - Method in class hw2.RatPoly
Returns the integral of this RatPoly, integrated from lowerBound to upperBound.
integrate() - Method in class hw2.RatPolyStack
Pops the top element off of the stack, integrates it, and places the result on top of the stack.
intValue() - Method in class hw2.RatNum
Returns an integer approximation for this.
isNaN() - Method in class hw2.RatNum
Returns true if this is NaN
isNaN() - Method in class hw2.RatPoly
Returns true if this RatPoly is not-a-number.
isNaN() - Method in class hw2.RatTerm
Returns true if this RatTerm is not-a-number.
isNegative() - Method in class hw2.RatNum
Returns true if this is negative.
isPositive() - Method in class hw2.RatNum
Returns true if this is positive.
isZero() - Method in class hw2.RatTerm
Returns true if this RatTerm is equal to 0.
iterator() - Method in class hw1.BallContainer
Implements the Iterable interface for this container.
iterator() - Method in class hw1.Box
Implements the Iterable interface for this box.
iterator() - Method in class hw2.RatPolyStack
Returns an iterator of the elements contained in the stack.

L

longValue() - Method in class hw2.RatNum
Returns a long approximation for this.

M

main(String[]) - Static method in class hw1.Adder
Runs the Adder program to compute the sum of 2 ints.
main(String[]) - Static method in class hw1.HelloWorld
 
main(String[]) - Static method in class hw1.HolaWorld
Shows what happens when the getGreeting() method of both HelloWorld and HolaWorld are invoked
main(String[]) - Static method in class hw2.CalculatorFrame
Main method.
mul(RatNum) - Method in class hw2.RatNum
Multiplication operation.
mul(RatPoly) - Method in class hw2.RatPoly
Multiplication operation.
mul() - Method in class hw2.RatPolyStack
Pops two elements off of the stack, multiplies them, and places the result on top of the stack.
mul(RatTerm) - Method in class hw2.RatTerm
Multiplication operation.

N

NaN - Static variable in class hw2.RatNum
A constant holding a Not-a-Number (NaN) value of type RatNum
NaN - Static variable in class hw2.RatPoly
A constant holding a Not-a-Number (NaN) value of type RatPoly
NaN - Static variable in class hw2.RatTerm
A constant holding a Not-a-Number (NaN) value of type RatTerm
negate() - Method in class hw2.RatNum
Returns the additive inverse of this RatNum.
negate() - Method in class hw2.RatPoly
Return the additive inverse of this RatPoly.
negate() - Method in class hw2.RatTerm
Negation operation.

P

paint(Graphics) - Method in class hw2.PolyGraph
 
PolyGraph - Class in hw2
PolyGraph implements the graphing component of a graphical calculator.
PolyGraph(CalculatorFrame) - Constructor for class hw2.PolyGraph
Create a new PolyGraph.
pop() - Method in class hw2.RatPolyStack
Removes and returns the top RatPoly.
push(RatPoly) - Method in class hw2.RatPolyStack
Pushes a RatPoly onto the top of this.

R

RatNum - Class in hw2
RatNum represents an immutable rational number.
RatNum(int) - Constructor for class hw2.RatNum
 
RatNum(int, int) - Constructor for class hw2.RatNum
 
RatPoly - Class in hw2
RatPoly represents an immutable single-variate polynomial expression.
RatPoly() - Constructor for class hw2.RatPoly
 
RatPoly(RatTerm) - Constructor for class hw2.RatPoly
 
RatPoly(int, int) - Constructor for class hw2.RatPoly
 
RatPolyStack - Class in hw2
RatPolyStack is a mutable finite sequence of RatPoly objects.
RatPolyStack() - Constructor for class hw2.RatPolyStack
 
RatTerm - Class in hw2
RatTerm is an immutable representation of a term in a single-variable polynomial expression.
RatTerm(RatNum, int) - Constructor for class hw2.RatTerm
 
remove(Ball) - Method in class hw1.BallContainer
Removes a ball from the container.
remove(Ball) - Method in class hw1.Box
Removes a ball from the box.

S

size() - Method in class hw1.BallContainer
Returns the number of Balls in this container.
size() - Method in class hw1.Box
Returns the number of Balls in this box.
size() - Method in class hw2.RatPolyStack
Returns the number of RayPolys in this RatPolyStack.
SPANISH_GREETING - Static variable in class hw1.HolaWorld
Greeting in Spanish
sub(RatNum) - Method in class hw2.RatNum
Subtraction operation.
sub(RatPoly) - Method in class hw2.RatPoly
Subtraction operation.
sub() - Method in class hw2.RatPolyStack
Subtracts the top poly from the next from top poly, pops both off the stack, and places the result on top of the stack.
sub(RatTerm) - Method in class hw2.RatTerm
Subtraction operation.
swap() - Method in class hw2.RatPolyStack
Swaps the top two elements of this.

T

toString() - Method in class hw2.RatNum
 
toString() - Method in class hw2.RatPoly
Returns a string representation of this RatPoly.
toString() - Method in class hw2.RatTerm
Returns a string representation of this RatTerm.

U

update(Graphics) - Method in class hw2.PolyGraph
 
updatePlotBuffer(float, float, int, float[], float[], float[], RatPoly) - Method in class hw2.PolyGraph
 

V

valueOf(String) - Static method in class hw2.RatNum
Makes a RatNum from a string describing it.
valueOf(String) - Static method in class hw2.RatPoly
Builds a new RatPoly, given a descriptive String.
valueOf(String) - Static method in class hw2.RatTerm
Builds a new RatTerm, given a descriptive String.

Z

ZERO - Static variable in class hw2.RatNum
A constant holding a zero value of type RatNum
ZERO - Static variable in class hw2.RatPoly
A constant holding a zero value of type RatPoly
ZERO - Static variable in class hw2.RatTerm
A constant holding a zero value of type RatTerm
A B C D E F G H I L M N P R S T U V Z 
Skip navigation links