A B C D E G H I L M N P R S T U W

A

AVG_DETECT_TIME - Static variable in interface Constants
 
analysisDone(boolean, long) - Method in class UltrasoundListener
Provides a means by which UltrasoundAnalyzer threads can notify this UltrasoundListener class when a block of samples is done being analyzed.
analyze(byte[]) - Method in class UltrasoundAnalyzer
Begin DSP analysis of data in order to determine whether or not ultrasound is present in the set of audio samples.
analyze(double[]) - Method in class UltrasoundDetector
This is the main method of the UltrasoundDetector class and it is used for testing N samples for the presence of the frequency specified by TARGET_FREQUENCY.
analyzerPool - Variable in class UltrasoundListener
 
analyzerPoolInd - Variable in class UltrasoundListener
 
analyzing - Variable in class UltrasoundAnalyzer
 
available() - Method in class UltrasoundAnalyzer
Returns a boolean indicating whether or not this thread object is available to begin analysis of a new data set.

B

BIGEND - Static variable in interface Constants
 
Broadcaster - class Broadcaster.
This class periodically broadcasts its host computer's room information via 802.11.
Broadcaster() - Constructor for class Broadcaster
This is a default constructor that is provided in the case that an array of bytes containing room-identifying information is not provided.
Broadcaster(byte[]) - Constructor for class Broadcaster
This is the main class constructor.
byteSamples - Variable in class UltrasoundAnalyzer
 

C

CHANNELS - Variable in class UltrasoundAnalyzer
 
CHANNELS - Variable in class UltrasoundListener
 
CONFIG_FILE - Static variable in class ServerBeacon
 
Constants - interface Constants.
This interface defines several useful constants used throughout the mobile client code for ultrasound detection.

D

DEBOUNCE_VAL - Static variable in interface Constants
 
DEFAULTMSG - Static variable in class Broadcaster
 
DatagramListener - class DatagramListener.
The DatagramListener class is a thread that continuously listens for datagram packets, notifying a DatagramUpdateListener object whenever a packet is received.
DatagramListener(DatagramUpdateListener) - Constructor for class DatagramListener
This default DatagramListener class constructor must be supplied with a reference to an object that implements the DatagramUpdateListener interface.
DatagramUpdateListener - interface DatagramUpdateListener.
This interface provides a means by which the DatagramListener class can notify external applications of received datagram messages.
datagramDetected(String, long) - Method in interface DatagramUpdateListener
This method is called by the DatagramListener class when a datagram is received.
datagramDetected(String, long) - Method in class MobileClient
Callback method for the DatagramListener thread that receives notifications of newly received datagram messages.
datagramDetected(String, long) - Method in class TestDatagram
 
debug - Variable in class Goertzel
 
debug - Variable in class MobileClient
 
debug - Variable in class UltrasoundDetector
 
debug - Variable in class UltrasoundListener
 
detections - Variable in class MobileClient
 
dl - Variable in class TestDatagram
 

E

EOF - Static variable in class ServerBeacon
 

G

GROUPADDR - Static variable in class Broadcaster
 
GROUPADDR - Static variable in interface Constants
 
Goertzel - class Goertzel.
The Goertzel class can be used to perform the Goertzel algorithm.
Goertzel() - Constructor for class Goertzel
Default Constructor.
Goertzel(float, float, int, boolean) - Constructor for class Goertzel
Constructor
g - Variable in class UltrasoundDetector
 
getMagnitudeSquared() - Method in class Goertzel
Optimized Goertzel.
getN() - Method in class UltrasoundDetector
Provide means to access the value of N that is used by the Goertzel algorithm to detect the presence of a specified frequency.
getNextChar(FileReader) - Static method in class ServerBeacon
Simple method for reading the next character from a file encapsulates the catching of an IOException.
getRealImag(double[]) - Method in class Goertzel
Basic Goertzel.
getStdIn() - Static method in class ServerBeacon
Simple method for reading the next character from the command line.
gless - Variable in class UltrasoundDetector
 
gmore - Variable in class UltrasoundDetector
 

H

HISTORY_SIZE - Static variable in interface Constants
 

I

init() - Method in class UltrasoundDetector
Method to initialize the Goertzel algorithm.
initGoertzel() - Method in class Goertzel
Call this once, to precompute the constants.

L

LocationTracker - interface LocationTracker.
This interface provides the means for an implementing class to be notified of room changes that occur in the MobileClient class.
latestUpdate - Variable in class MobileClient
 
littleEndConcat() - Method in class UltrasoundAnalyzer
Helper method for concatenating all the values in a byte array into 16-bit double values using the little endian format.

M

MAXMSGSIZE - Static variable in interface Constants
 
MAXTIME - Variable in class Broadcaster
 
MAX_DETECT_TIME - Static variable in interface Constants
 
MINTIME - Variable in class Broadcaster
 
MobileClient - class MobileClient.
This class provides location awareness to the granularity of a room inside a building based on the reception of 802.11 broadcasts and the corresponding detection of ultrasound.
MobileClient(LocationTracker, boolean) - Constructor for class MobileClient
This is the only constructor for this class.
main(String[]) - Static method in class Goertzel
The main function used for testing.
main(String[]) - Static method in class ServerBeacon
Can be given two parameters which are the MIN and MAX times to wait between transmissions.
main(String[]) - Static method in class TestApp
Create a new TestApp object, which in turn creates a new MobileClient object.
main(String[]) - Static method in class TestContinuous
 
main(String[]) - Static method in class TestDatagram
 
messageHistory - Variable in class MobileClient
 
msgHistInd - Variable in class MobileClient
 

N

N - Static variable in interface Constants
 
NUMTHREADS - Static variable in interface Constants
 
negCount - Variable in class UltrasoundListener
 
notifyApp - Variable in class MobileClient
 

P

PORTNUM - Static variable in class Broadcaster
 
PORTNUM - Static variable in interface Constants
 
posCount - Variable in class UltrasoundListener
 
processSample(double) - Method in class Goertzel
Call this routine for every sample.

R

ROOM_MSG_BUF - Static variable in interface Constants
 
Room - class Room.
This class encapsulates the concept of a room message.
Room(String, long) - Constructor for class Room
Basic constructor can be used to create a new Room object describing the room message that was received and the time at which it was received.
resetGoertzel() - Method in class Goertzel
Call this method after every block of N samples has been processed.
roomChanged(HashMap) - Method in interface LocationTracker
This method is called by the MobileClient class when a change in room location occurs.
roomChanged(HashMap) - Method in class TestApp
This method is called by the Mobile Client class with a HashMap containing room strings and their associated relative confidence magnitudes.
roomMsg - Variable in class Room
 
run() - Method in class Broadcaster
This is where all the thread activity occurs in a continous loop.
run() - Method in class DatagramListener
This is the method in which datagram packets are continuously received and sent out for notification to the DatagramUpdateListener.
run() - Method in class UltrasoundAnalyzer
The UltrasoundAnalyzer thread first concatenates the array of bytes into 16-bit little endian samples, then uses the UltrasoundDetector to determine whether or not the samples contain ultrasound and notifies the UltrasoundListener accordingly.
run() - Method in class UltrasoundListener
This is the main processing method of this class, where sound is recorded and the samples obtained are analyzed.

S

SAMPLE_SIZE - Static variable in interface Constants
 
SAMPLING_RATE - Static variable in interface Constants
 
SEQUENCE - Static variable in interface Constants
 
SIGN - Static variable in interface Constants
 
ServerBeacon - class ServerBeacon.
ServerBeacon is a stand-alone class that acts as a broadcasting station for use in an ultrasound/802.11 indoor positioning system.
ServerBeacon() - Constructor for class ServerBeacon
 
socket - Variable in class DatagramListener
 

T

TARGET_FREQUENCY - Static variable in interface Constants
 
TestApp - class TestApp.
This class exemplifies what an application would look like if it used the MobileClient class to provide location awareness to a device.
TestApp(boolean) - Constructor for class TestApp
 
TestContinuous - class TestContinuous.
 
TestContinuous() - Constructor for class TestContinuous
 
TestDatagram - class TestDatagram.
 
TestDatagram() - Constructor for class TestDatagram
 
targetDataLine - Variable in class UltrasoundListener
 
terminate() - Method in class Broadcaster
This method is used by external classes running this Broadcaster thread.
timeReceived - Variable in class Room
 
timesDetected - Variable in class UltrasoundListener
 

U

UltrasoundAnalyzer - class UltrasoundAnalyzer.
The UltrasoundAnalyzer thread class takes an array of bytes, concatenates them into 16-bit values in little endian format, then creates an UltrasoundDetector object to decide whether or not the samples contain the desired frequency.
UltrasoundAnalyzer(UltrasoundListener, boolean, int) - Constructor for class UltrasoundAnalyzer
The main UltrasoundAnalyzer constructor takes a reference to an UltrasoundListener and a byte array containing the samples to be analyzed.
UltrasoundDetector - class UltrasoundDetector.
The UltrasoundDetector class can be used to help analyze an ultrasound signal.
UltrasoundDetector() - Constructor for class UltrasoundDetector
Default Constructor
UltrasoundDetector(float, float, int, boolean) - Constructor for class UltrasoundDetector
Constructor.
UltrasoundListener - class UltrasoundListener.
This class is a thread that continuously listens for ultrasound through the microphone and notifies the UltrasoundUpdateListener it was instantiated with whenever ultrasound is detected.
UltrasoundListener(UltrasoundUpdateListener) - Constructor for class UltrasoundListener
This default constructor assumes a sampling rate of 44100 Hz, a target frequency of 21000 Hz, an N value of 420, and debugging information turned off.
UltrasoundListener(UltrasoundUpdateListener, boolean) - Constructor for class UltrasoundListener
 
UltrasoundUpdateListener - interface UltrasoundUpdateListener.
This interface provides a means by which the UltrasoundListener class can notify external applications of ultrasound detections.
ultrasoundDetected(long) - Method in class MobileClient
Callback method for the UltrasoundListener thread that receives notifications of newly received ultrasound detections.
ultrasoundDetected(long) - Method in class TestContinuous
 
ultrasoundDetected(long) - Method in interface UltrasoundUpdateListener
This method is called by the UltrasoundListener class when ultrasound is detected.
update(LineEvent) - Method in class Broadcaster
This method is called by the 'audioClip' data line whenever an event occurs.
updateListener - Variable in class DatagramListener
 
updateListener - Variable in class UltrasoundListener
 
usDebounced - Variable in class UltrasoundListener
 
usd - Variable in class UltrasoundAnalyzer
 
usl - Variable in class TestContinuous
 
usl - Variable in class UltrasoundAnalyzer
 

W

WAVEFILE - Static variable in class Broadcaster
 
WEIGHT - Static variable in interface Constants
 

A B C D E G H I L M N P R S T U W