A C D E F G H I L M N O P Q R S T W

A

addItem(Object) - Method in class geneseo.cs.sc.List
Adds an object to a list.
addNode(Comparable) - Method in class geneseo.cs.sc.OrderedTree
Adds a new value to the tree in a leaf position that maintains the tree's order.
addRobot(Robot, int, int) - Method in class geneseo.cs.sc.RobotRoom
Put a robot in a room.
addToBack(Object) - Method in class geneseo.cs.sc.Queue
Adds an object to the back of a queue (i.e., enqueues the object).
address - Variable in class geneseo.cs.sc.PhoneEntry
The street address for the person described by a telephone entry.

C

clear() - Method in class geneseo.cs.sc.LineDrawing
Erase a line drawing and prepare any new segments to start at (0,0), with the pen moving straight right and drawing in black.
colorOfTile() - Method in class geneseo.cs.sc.Robot
Find out what color the tile under a robot is.
compareTo(Object) - Method in class geneseo.cs.sc.PhoneEntry
Compare two telephone entries.
concat(List) - Method in class geneseo.cs.sc.List
Concatenates two lists.
concat(List) - Method in class geneseo.cs.sc.Stack
Warns the user that concatenation is not a standard stack operation.
copy() - Method in class geneseo.cs.sc.List
Create a duplicate of a list.
cutAndRaise() - Method in class geneseo.cs.sc.OrderedTree
Removes a tree's root node.

D

delete(Object) - Method in class geneseo.cs.sc.List
Remove an object from a list.
delete(Comparable) - Method in class geneseo.cs.sc.OrderedTree
Removes one occurrence of a value from a tree.
delete(Object) - Method in class geneseo.cs.sc.Stack
Warns the user that general deletion is not a standard stack operation.
draw(Graphics, int, int) - Method in class geneseo.cs.sc.Robot
Draw a robot.

E

EAST - Static variable in class geneseo.cs.sc.Robot
The heading a robot has when facing east.
equals(Object) - Method in class geneseo.cs.sc.PhoneEntry
Determine whether two telephone entries are the same.

F

find(Object) - Method in class geneseo.cs.sc.List
Search a list for an object.
find(Comparable) - Method in class geneseo.cs.sc.OrderedTree
Determines whether a tree contains a value.
find(Object) - Method in class geneseo.cs.sc.Stack
Warns the user that searching is not a standard stack operation.

G

geneseo.cs.sc - package geneseo.cs.sc
 
getAndRemove() - Method in class geneseo.cs.sc.List
Removes a list's first item and returns it.
getAngle() - Method in class geneseo.cs.sc.LineDrawing
Find out what direction the pen is moving.
getColor() - Method in class geneseo.cs.sc.LineDrawing
Find out what color the pen is currently drawing in.
getColor(int, int) - Method in class geneseo.cs.sc.RobotRoom
Find out what color a tile within a room has.
getFirst() - Method in class geneseo.cs.sc.List
Extracts the head of a list.
getLeft() - Method in class geneseo.cs.sc.OrderedTree
Extracts the left subtree of a tree.
getPositionX() - Method in class geneseo.cs.sc.LineDrawing
Find out the X coordinate of the pen's position.
getPositionY() - Method in class geneseo.cs.sc.LineDrawing
Find out the Y coordinate of the pen's position.
getRest() - Method in class geneseo.cs.sc.List
Extracts the tail of a list.
getRight() - Method in class geneseo.cs.sc.OrderedTree
Extracts the right subtree of a tree.
getRoomHeight() - Method in class geneseo.cs.sc.RobotRoom
Get a room's height.
getRoomWidth() - Method in class geneseo.cs.sc.RobotRoom
Get a room's width.
getRoot() - Method in class geneseo.cs.sc.OrderedTree
Extracts the root of a tree.
getText() - Method in class geneseo.cs.sc.WebPage
Return the text stored in a Web page, as a long string.

H

hashCode() - Method in class geneseo.cs.sc.PhoneEntry
Generate a hash code for a telephone entry.
heading() - Method in class geneseo.cs.sc.Robot
Find out what direction a robot is facing.

I

insert(Comparable) - Method in class geneseo.cs.sc.OrderedList
Inserts an object into its proper position in an ordered list.
insertValue(Comparable) - Method in class geneseo.cs.sc.OrderedTree
Replaces a tree with a leaf -- i.e., replaces any value at the root of the tree, and makes both subtrees empty.
isEmpty() - Method in class geneseo.cs.sc.List
Determines whether a list is empty or not.
isEmpty() - Method in class geneseo.cs.sc.OrderedTree
Determines whether a tree is empty.
isEmpty() - Method in class geneseo.cs.sc.Queue
Determines whether a queue is empty.
isObstructed(int, int) - Method in class geneseo.cs.sc.RobotRoom
Find out whether a tile within a room is obstructed.

L

LineDrawing - class geneseo.cs.sc.LineDrawing.
Represents a drawing made up of one or more sets of connected line segments.
LineDrawing() - Constructor for class geneseo.cs.sc.LineDrawing
Initialize a line drawing.
List - class geneseo.cs.sc.List.
Represents lists of arbitrary objects.
List() - Constructor for class geneseo.cs.sc.List
Initialize a list to be empty.
List(Object) - Constructor for class geneseo.cs.sc.List
Initialize a List to contain one element.

M

makeNewList() - Method in class geneseo.cs.sc.List
Create a new list that is an instance of the same class as this list.
makeNewList() - Method in class geneseo.cs.sc.OrderedList
Create a new list that is an instance of OrderedList, as required of any subclass of List.
makeNewList() - Method in class geneseo.cs.sc.Stack
Create a new list that is an instance of Stack, as required of any subclass of List.
makeNewTree() - Method in class geneseo.cs.sc.OrderedTree
Create a new tree that is an instance of the same class as this tree.
move() - Method in class geneseo.cs.sc.Robot
Move a robot one tile forward, unless the way is blocked by a wall or other robot.
movePen(double) - Method in class geneseo.cs.sc.LineDrawing
Move the pen, adding a line segment to the current set of segments.
moveRobot(int, int, int, int) - Method in class geneseo.cs.sc.RobotRoom
Move a robot from one tile to another.

N

NORTH - Static variable in class geneseo.cs.sc.Robot
The heading a robot has when facing north.
name - Variable in class geneseo.cs.sc.PhoneEntry
The name of the person described by a telephone entry.

O

OrderedList - class geneseo.cs.sc.OrderedList.
Represents lists whose contents are ordered according to a "less than" relation.
OrderedList() - Constructor for class geneseo.cs.sc.OrderedList
Initialize an ordered list to be empty.
OrderedTree - class geneseo.cs.sc.OrderedTree.
Represents ordered binary trees containing arbitrary objects.
OrderedTree() - Constructor for class geneseo.cs.sc.OrderedTree
Initialize a new ordered tree to be empty.
okToMove() - Method in class geneseo.cs.sc.Robot
Find out whether a robot can move forward.

P

PhoneEntry - class geneseo.cs.sc.PhoneEntry.
Represents entries in a simple telephone directory, with each entry containing a person's name, address, and telephone number.
PhoneEntry(String, String, String) - Constructor for class geneseo.cs.sc.PhoneEntry
Initialize a telephone book entry with a person's name, address, and telephone number.
paint(Graphics) - Method in class geneseo.cs.sc.LineDrawing
Draw the contents of a line drawing.
paint(Color) - Method in class geneseo.cs.sc.Robot
Change the color of the tile under a robot.
paint(Graphics) - Method in class geneseo.cs.sc.RobotRoom
Redisplay a robot room.
phone - Variable in class geneseo.cs.sc.PhoneEntry
The telephone number for the person described by a telephone entry.
pop() - Method in class geneseo.cs.sc.Stack
Retrieve and remove the top object from a stack.
printList() - Method in class geneseo.cs.sc.List
Print the elements in a list from first to last.
printListForward() - Method in class geneseo.cs.sc.List
Print the elements in a list from last to first.
printQueue() - Method in class geneseo.cs.sc.Queue
Prints the contents of a queue.
printStack() - Method in class geneseo.cs.sc.Stack
Print a stack.
printTree() - Method in class geneseo.cs.sc.OrderedTree
Prints the contents of a tree in order.
printTreePostOrder() - Method in class geneseo.cs.sc.OrderedTree
Prints the contents of a tree in postorder (i.e., subtrees before roots).
printTreePreOrder() - Method in class geneseo.cs.sc.OrderedTree
Prints the contents of a tree in preorder (i.e., roots before the contents of their subtrees).
push(Object) - Method in class geneseo.cs.sc.Stack
Adds an object to a stack.

Q

Queue - class geneseo.cs.sc.Queue.
Represents queues of arbitrary objects.
Queue() - Constructor for class geneseo.cs.sc.Queue
Initialize a queue to be empty.

R

Robot - class geneseo.cs.sc.Robot.
Represents simple simulated robots.
Robot() - Constructor for class geneseo.cs.sc.Robot
Initialize a robot and a room for it to occupy.
Robot(int, int, int, RobotRoom) - Constructor for class geneseo.cs.sc.Robot
Initialize a robot from its position, orientation, and room.
RobotRoom - class geneseo.cs.sc.RobotRoom.
Represents a room in which Science of Computing robots can move.
RobotRoom() - Constructor for class geneseo.cs.sc.RobotRoom
Initialize a robot's room with default size and contents.
RobotRoom(String) - Constructor for class geneseo.cs.sc.RobotRoom
Initialize a robot's room from its description.
removeFromFront() - Method in class geneseo.cs.sc.Queue
Removes and returns the object at the front of a Queue (i.e., dequeues that object).
removeItem() - Method in class geneseo.cs.sc.List
Removes a list's head.
restore(String) - Method in class geneseo.cs.sc.List
Restore a list from a file.
restore(String) - Method in class geneseo.cs.sc.OrderedTree
Restores a binary tree from a file.
restore(String) - Method in class geneseo.cs.sc.Queue
Reads a queue from a file.

S

SOUTH - Static variable in class geneseo.cs.sc.Robot
The heading a robot has when facing south.
Stack - class geneseo.cs.sc.Stack.
Represents stacks of arbitrary objects.
Stack() - Constructor for class geneseo.cs.sc.Stack
Initialize an empty stack.
save(String) - Method in class geneseo.cs.sc.List
Write a List to a file, replacing any previous data in that file.
save(String) - Method in class geneseo.cs.sc.OrderedTree
Writes a tree to a file, replacing any previous data in that file.
save(String) - Method in class geneseo.cs.sc.Queue
Writes a queue to a file, replacing any previous data in that file.
setAngle(double) - Method in class geneseo.cs.sc.LineDrawing
Set the direction the pen will move next time a line drawing receives a "movePen" message.
setColor(Color) - Method in class geneseo.cs.sc.LineDrawing
Set the color in which the pen draws future line segments.
setColor(int, int, Color) - Method in class geneseo.cs.sc.RobotRoom
Change the color of a tile in a room.
setFirstItem(Object) - Method in class geneseo.cs.sc.List
Replaces the head of a list with a new object.
setLeft(OrderedTree) - Method in class geneseo.cs.sc.OrderedTree
Replaces the left subtree of a tree.
setPosition(double, double) - Method in class geneseo.cs.sc.LineDrawing
Position the pen to start a new set of line segments.
setRest(List) - Method in class geneseo.cs.sc.List
Replaces the tail of a list with a new list.
setRight(OrderedTree) - Method in class geneseo.cs.sc.OrderedTree
Replaces the right subtree of a tree.
setRoot(Comparable) - Method in class geneseo.cs.sc.OrderedTree
Replaces the root value in a tree.
setSpeed(int) - Method in class geneseo.cs.sc.Robot
Set the speed at which a robot moves and turns.

T

toString() - Method in class geneseo.cs.sc.List
Generate a string representation of a list.
toString() - Method in class geneseo.cs.sc.OrderedTree
Generates a string representation of a tree.
toString() - Method in class geneseo.cs.sc.PhoneEntry
Create a string representation of a telephone book entry.
toString() - Method in class geneseo.cs.sc.Queue
Generates a string representation of a queue.
turnLeft() - Method in class geneseo.cs.sc.Robot
Turn a robot 90 degrees to its left (i.e., counterclockwise about its center).
turnRight() - Method in class geneseo.cs.sc.Robot
Turn a robot 90 degrees to its right (i.e., clockwise about its center).

W

WEST - Static variable in class geneseo.cs.sc.Robot
The heading a robot has when facing west.
WebPage - class geneseo.cs.sc.WebPage.
Represents a Web page, i.e., a long string of text that (presumably) lives on a Web server somewhere and is identified by a URL.
WebPage(String) - Constructor for class geneseo.cs.sc.WebPage
Initialize a Web page.

A C D E F G H I L M N O P Q R S T W