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

Field Summary
 private Datedate
           
 private doublelatitude
           
 private doublelongitude
           

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) DategetDate()
          This method gets the date for this point
 (package private) doublegetLatitude()
          This method gets the latitude for this point
 (package private) doublegetLongitude()
          This method gets the longitude for this point
 (package private) voidsetDate(Date date)
          This method sets the date for this point
 (package private) voidsetLatitude(double latitude)
          This method sets the latitude for this point
 (package private) voidsetLongitude()
          This method gets the longitude for this point

Methods inherited from class com.ltu.smd116.containers.SortableContainer
compare, getElement, getId, setId

Field Detail

date

private Date date

latitude

private double latitude

longitude

private double longitude
Constructor Detail

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
Method Detail

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

Association Links

to Class java.util.Date