D G H L M O P R S V

D

dial() - Method in class RingingPhone
In 2phones, there is no number to dial.
There are a total of only two phones.

G

givePhone(RingingPhone) - Method in class RungPerson
 

H

hangup() - Method in class RingingPhone
Will effectively break the connection, so nothing said will be sent and nothing can be heard from the other user.

L

listen() - Method in class RingingPhone
Lets the person "hear" the current phone sound/message.

M

main(String[]) - Static method in class RingingPhone
This test just loops on step to watch the phone change states in its predetermined way.
main(String[]) - Static method in class RungPerson
This is a very simple test, since it only needs to create a RingingPhone and a RungPerson and step them both.

O

out(String) - Static method in class PUtil
 

P

PUtil - class PUtil.
Tiny class to furnish some "globals" such as 'verbose'.
PUtil() - Constructor for class PUtil
 

R

RingingPhone - class RingingPhone.
Java class RingingPhone for testing a person.
RingingPhone() - Constructor for class RingingPhone
 
RungPerson - class RungPerson.
RungPerson is for testing with a "ring only" RingingPhone.
RungPerson() - Constructor for class RungPerson
 

S

speak(String) - Method in class RingingPhone
Lets the person "say" a phone sound/message to the phone.
step() - Method in class RingingPhone
Primary simulation function to drive phone action.
step() - Method in class RungPerson
This listens for a ring, echoes what it hears and hangs up.

V

verbose - Static variable in class PUtil
 

D G H L M O P R S V