jcolibri.test.recommenders.travelData
Class TravelDescription
java.lang.Object
jcolibri.test.recommenders.travelData.TravelDescription
- All Implemented Interfaces:
- CaseComponent
public class TravelDescription
- extends java.lang.Object
- implements CaseComponent
Bean that stores the description of the case.
- Version:
- 1.0
- Author:
- Juan A. Recio-Garcia, Developed at University College Cork (Ireland) in collaboration with Derek Bridge.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TravelDescription
public TravelDescription()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getAccommodation
public TravelDescription.AccommodationTypes getAccommodation()
- Returns:
- the accomodation
setAccommodation
public void setAccommodation(TravelDescription.AccommodationTypes accomodation)
- Parameters:
accomodation
- the accomodation to set
getCaseId
public java.lang.String getCaseId()
- Returns:
- the caseId
setCaseId
public void setCaseId(java.lang.String caseId)
- Parameters:
caseId
- the caseId to set
getDuration
public java.lang.Integer getDuration()
- Returns:
- the duration
setDuration
public void setDuration(java.lang.Integer duration)
- Parameters:
duration
- the duration to set
getHolidayType
public java.lang.String getHolidayType()
- Returns:
- the holidayType
setHolidayType
public void setHolidayType(java.lang.String holidayType)
- Parameters:
holidayType
- the holidayType to set
getNumberOfPersons
public java.lang.Integer getNumberOfPersons()
- Returns:
- the numberOfPersons
setNumberOfPersons
public void setNumberOfPersons(java.lang.Integer numberOfPersons)
- Parameters:
numberOfPersons
- the numberOfPersons to set
getRegion
public Instance getRegion()
- Returns:
- the region
setRegion
public void setRegion(Instance region)
- Parameters:
region
- the region to set
getSeason
public TravelDescription.Seasons getSeason()
- Returns:
- the season
setSeason
public void setSeason(TravelDescription.Seasons season)
- Parameters:
season
- the season to set
getTransportation
public java.lang.String getTransportation()
- Returns:
- the transportation
setTransportation
public void setTransportation(java.lang.String transportation)
- Parameters:
transportation
- the transportation to set
getPrice
public java.lang.Integer getPrice()
- Returns:
- Returns the price.
setPrice
public void setPrice(java.lang.Integer price)
- Parameters:
price
- The price to set.
getIdAttribute
public Attribute getIdAttribute()
- Description copied from interface:
CaseComponent
- Returns the attribute that identifies the component.
An id-attribute must be unique for each component.
- Specified by:
getIdAttribute
in interface CaseComponent