Index

C D G L M S T 
All Classes and Interfaces|All Packages

C

convert() - Method in interface Converter
Implemented method should convert to opposite type.
convert() - Method in class DecimalConverter
Implements the convert() method from the Converter interface.
convert() - Method in class DMSConverter
Implements the convert() method from the Converter interface.
convertedObj - Variable in class DecimalConverter
Once convert() is called, this convertedObj is set to the correct DMSCoordinate.
convertedObj - Variable in class DMSConverter
Once convert() is called, this convertedObj is set to the correct DecimalCoordinate.
Converter - Interface in Unnamed Package
Interface which requires the implementor to implement the convert method.
ConverterMain - Class in Unnamed Package
Main class to run the Coordinate Converter!
ConverterMain() - Constructor for class ConverterMain
 
ConverterTests - Class in Unnamed Package
Testing file for your methods!
ConverterTests() - Constructor for class ConverterTests
 

D

DecimalConverter - Class in Unnamed Package
This class converts DecimalCoordinate objects to DMSCoordinate objects.
DecimalConverter() - Constructor for class DecimalConverter
Default constructor to assign decimalObj to 0.
DecimalConverter(DecimalCoordinate) - Constructor for class DecimalConverter
Overloaded constructor which takes in a pre-existing DecimalCoordinate object and sets decimalObj equal to it.
DecimalCoordinate - Class in Unnamed Package
Class which contains the Latitude and Longitude for a DecimalCoordinate object.
DecimalCoordinate() - Constructor for class DecimalCoordinate
Default constructor which initializes each variable to 0.
DecimalCoordinate(double, double) - Constructor for class DecimalCoordinate
Overloaded constructor, where the parameters are a String form of latitude and longitude.
DecimalCoordinate(String) - Constructor for class DecimalCoordinate
Overloaded constructor in the case that the latitude and longitude were provided in the same String.
decimalObj - Variable in class DecimalConverter
The DecimalCoordinate object to be converted.
degreesLat - Variable in class DMSCoordinate
 
degreesLong - Variable in class DMSCoordinate
 
DMSConverter - Class in Unnamed Package
This class converts DMSCoordinate objects to DecimalCoordinate objects.
DMSConverter() - Constructor for class DMSConverter
Default constructor to assign DMSObj to 0.
DMSConverter(DMSCoordinate) - Constructor for class DMSConverter
Overloaded constructor that takes in a pre-existing DMSCoordinate object and sets DMSObj equal to it.
DMSCoordinate - Class in Unnamed Package
Class which contains the Degrees, Minutes, and Seconds for each coordinate of DMS format For simplicity, we will not be including the cardinal direction associated with latitude and longitude.
DMSCoordinate() - Constructor for class DMSCoordinate
Default Constructor which initializes each value to 0.
DMSCoordinate(int, int, int, int, int, int) - Constructor for class DMSCoordinate
Overloaded constructor, for the case that each degrees, minute, and second is seperate already.
DMSCoordinate(String) - Constructor for class DMSCoordinate
Overloaded constructor in the case that the Latitude and Longitude were not split before creating DMSCoordinate Object.
DMSObj - Variable in class DMSConverter
The DMSCoordinate object to be converted.

G

getConvertedObj() - Method in class DecimalConverter
Returns convertedObj.
getConvertedObj() - Method in class DMSConverter
Returns convertedObj.
getDegreesLat() - Method in class DMSCoordinate
Gets Latitudinal Degrees value.
getDegreesLong() - Method in class DMSCoordinate
Gets Longitudinal Degrees value.
getLatitude() - Method in class DecimalCoordinate
Gets latitude value.
getLatitude() - Method in class DMSCoordinate
Converts latitude DMS to a readable format
getLongitude() - Method in class DecimalCoordinate
Gets longitude value.
getLongitude() - Method in class DMSCoordinate
Converts longitude DMS to a readable format
getMinutesLat() - Method in class DMSCoordinate
Gets Latitudinal Minutes value.
getMinutesLong() - Method in class DMSCoordinate
Gets Longitudinal Minutes value.
getSecondsLat() - Method in class DMSCoordinate
Gets Latitudinal Seconds value.
getSecondsLong() - Method in class DMSCoordinate
Gets Longitudinal Seconds value.
go(Scanner) - Static method in class ConverterMain
This methods prints helpful welcome info, then has the user enter a decimal or DMS coordinate, or an "X" to exit! Depending upon the input, the DMS or decimal coordinate is converted and then printed to the terminal.

L

latitude - Variable in class DecimalCoordinate
 
longitude - Variable in class DecimalCoordinate
 

M

main(String[]) - Static method in class ConverterMain
 
main(String[]) - Static method in class ConverterTests
 
minutesLat - Variable in class DMSCoordinate
 
minutesLong - Variable in class DMSCoordinate
 

S

secondsLat - Variable in class DMSCoordinate
 
secondsLong - Variable in class DMSCoordinate
 
setLatitude(double) - Method in class DecimalCoordinate
Sets latitude value.
setLatitude(String) - Method in class DMSCoordinate
Takes in a String and assigns the latitude class variables based upon their position in the String.
setLongitude(double) - Method in class DecimalCoordinate
Sets longitude value.
setLongitude(String) - Method in class DMSCoordinate
Takes in a String and assigns the longitude class variables based upon their position in the String.

T

testDecimalConverter() - Static method in class ConverterTests
 
testDecimalCoordConstruction1() - Static method in class ConverterTests
 
testDecimalCoordConstruction2() - Static method in class ConverterTests
 
testDMSConverter() - Static method in class ConverterTests
 
testDMSCoordConstruction1() - Static method in class ConverterTests
 
testDMSCoordConstruction2() - Static method in class ConverterTests
 
toString() - Method in class DecimalCoordinate
Creates a String with both the Latitude and Longitude, seperated by a space.
toString() - Method in class DMSCoordinate
Converts both latitude and longitude to their String formats and appends them to eachother with a space in between then returns full String.
C D G L M S T 
All Classes and Interfaces|All Packages