0% found this document useful (0 votes)
33 views4 pages

Searching Earthquake Data

This document discusses developing earthquake data analysis programs using object-oriented principles in Java. It covers creating classes to store earthquake data, reading streaming data using APIs, and processing the data by searching for earthquakes matching certain criteria and finding the closest earthquakes. The software uses the Android Location and Apache Commons CSV APIs, which are licensed under the Apache 2.0 license allowing code reuse and modification.

Uploaded by

Mouloud HAOUAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views4 pages

Searching Earthquake Data

This document discusses developing earthquake data analysis programs using object-oriented principles in Java. It covers creating classes to store earthquake data, reading streaming data using APIs, and processing the data by searching for earthquakes matching certain criteria and finding the closest earthquakes. The software uses the Android Location and Apache Commons CSV APIs, which are licensed under the Apache 2.0 license allowing code reuse and modification.

Uploaded by

Mouloud HAOUAS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Searching Earthquake Data

Summary
Developing Classes and Programs
• Develop classes using Has-A and Uses-A
• Creating new objects and storing them in
instance and local variables
• Using object-oriented principles for design
• Reading streaming data, parsing data
• Use APIs, read documentation
• Store data to have repeatable process for
debugging and smaller data for debugging
Software Licenses and APIs
• We used the Android Location.java class
• Licensed with Apache 2.0 license
• Allows for reuse, changing code, more
• We used the Apache Commons CSV too
• Also licensed with Apache 2.0

Apache logo by José Carlos Gallego/ CC-by-SA 3.0


Processing Quake Data
• Searching for earthquakes satisfying
properties: magnitude, location, more
• Returning ArrayList of QuakeEntry objects
• Finding closest N quakes
• Avoid side effect of modifying data, make a
copy

• Foundation for further work in searching


and sorting data

You might also like