com.ltu.smd116.containers
Class ResultContainer

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

public class ResultContainer
extends SortableContainer

This class describes a ResultContainer which contains
the result of a search

Author:
Marie Larsson

Field Summary
 private intbookingId
          A bookingId that is used for booking activities
 private HotSpotContainerhotspot
          The hotspot contains the coordinates for
the hotspot
 private Stringinfo
          A String that contains the information of
a place at the CruiseLiner
 private Stringname
          The name of the place at the CruiseLiner

Constructor Summary
ResultContainer(String name, HotSpotContainer hotspot, String info, int bookingId)
          Constructs a ResultContainer with

Method Summary
 intgetBookingId()
          This method gets the bookingId for booking activities at
the CruiseLiner
 HotSpotContainergetHotspot()
          This method gets the hotspot
 StringgetInfo()
          This method gets the info of the place at the CruiseLiner
 StringgetName()
          This method gets the name of the place at the CruiseLiner

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

Field Detail

bookingId

private int bookingId
A bookingId that is used for booking activities

hotspot

private HotSpotContainer hotspot
The hotspot contains the coordinates for
the hotspot

info

private String info
A String that contains the information of
a place at the CruiseLiner

name

private String name
The name of the place at the CruiseLiner
Constructor Detail

ResultContainer

public ResultContainer(String name, HotSpotContainer hotspot, String info, int bookingId)
Constructs a ResultContainer with
Parameters:
name - The name of the place at the CruiseLiner
hotspot - The hotspot which contains the coordinates
for the hotspot
info - The information of the place at the CruiseLiner
bookingId - A bookingid that is used for booking activities
Method Detail

getBookingId

public int getBookingId()
This method gets the bookingId for booking activities at
the CruiseLiner
Returns: the bookingId

getHotspot

public HotSpotContainer getHotspot()
This method gets the hotspot
Returns: the hotspot

getInfo

public String getInfo()
This method gets the info of the place at the CruiseLiner
Returns: the info

getName

public String getName()
This method gets the name of the place at the CruiseLiner
Returns: the name

Association Links

to Class java.lang.String

The name of the place at the CruiseLiner

to Class com.ltu.smd116.containers.HotSpotContainer

The hotspot contains the coordinates for
the hotspot

to Class java.lang.String

A String that contains the information of
a place at the CruiseLiner