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
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 |
Floor | getData() This method gets the floor's representation |
String | getDescription() This method gets the description of the floor |
int | getFloor() This method gets the floor's number |
void | setDescription(String description) This method sets the description of the floor |
data
private Floor data
description
private String description
floor
private int floor
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
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
to Class com.ltu.smd116.containers.Floor
to Class java.lang.String