com.ltu.smd116.containers
Class FloorContainer

com.ltu.smd116.misc.SortableItem
  |
  +--com.ltu.smd116.containers.SortableContainer
        |
        +--com.ltu.smd116.containers.FloorContainer

public class FloorContainer
extends SortableContainer

FloorContainer is a container for keeping track of the different
floors on board the cruise liner

Author:
Veronica Backlund

Field Summary
 private Floordata
           
 private Stringdescription
           
 private intfloor
           

Constructor Summary
FloorContainer(int floor, Floor data, String description)
          The constructor for a certain waypoint, a point which the cruise liner will pass

Method Summary
 FloorgetData()
          This method gets the floor's representation
 StringgetDescription()
          This method gets the description of the floor
 intgetFloor()
          This method gets the floor's number
 voidsetDescription(String description)
          This method sets the description of the floor

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

Field Detail

data

private Floor data

description

private String description

floor

private int floor
Constructor Detail

FloorContainer

public FloorContainer(int floor, Floor data, String description)
The constructor for a certain waypoint, a point which the cruise liner will pass
Parameters:
floor - The floor's number
data - The floor
description - Description of the floor
Method Detail

getData

public Floor getData()
This method gets the floor's representation
Returns: the floor

getDescription

public String getDescription()
This method gets the description of the floor
Returns: the description

getFloor

public int getFloor()
This method gets the floor's number
Returns: the latitude

setDescription

public void setDescription(String description)
This method sets the description of the floor
Parameters:
description

Association Links

to Class com.ltu.smd116.containers.Floor

to Class java.lang.String