com.ltu.smd116.containers
Class WaypointContainer
com.ltu.smd116.misc.SortableItem
|
+--com.ltu.smd116.containers.SortableContainer
|
+--com.ltu.smd116.containers.WaypointContainer
- public class WaypointContainer
- extends SortableContainer
WaypointContainer is a container for keeping track of the different waypoints, the points
where the cruise liner will pass.
- Author:
- Veronica Backlund
Constructor Summary |
WaypointContainer(Date date, double longitude, double latitude) The constructor for a certain waypoint, a point which the cruise liner will pass |
Method Summary |
(package private) Date | getDate() This method gets the date for this point |
(package private) double | getLatitude() This method gets the latitude for this point |
(package private) double | getLongitude() This method gets the longitude for this point |
(package private) void | setDate(Date date) This method sets the date for this point |
(package private) void | setLatitude(double latitude) This method sets the latitude for this point |
(package private) void | setLongitude() This method gets the longitude for this point |
date
private Date date
latitude
private double latitude
longitude
private double longitude
WaypointContainer
public WaypointContainer(Date date, double longitude, double latitude)
- The constructor for a certain waypoint, a point which the cruise liner will pass
- Parameters:
- date - The date the cruise liner will pass the point
- longitude - The longitude for the certain point, north-south direction
- latitude - The latitude for the certain point, east-west direction
getDate
Date getDate()
- This method gets the date for this point
- Returns: the date
getLatitude
double getLatitude()
- This method gets the latitude for this point
- Returns: the latitude
getLongitude
double getLongitude()
- This method gets the longitude for this point
- Returns: the longitude
setDate
void setDate(Date date)
- This method sets the date for this point
- Parameters:
- date
setLatitude
void setLatitude(double latitude)
- This method sets the latitude for this point
- Parameters:
- latitude
setLongitude
void setLongitude()
- This method gets the longitude for this point
- Parameters:
- longitude
to Class java.util.Date