jcolibri.test.recommenders.travelData
Class TravelDescription

java.lang.Object
  extended by 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.

Nested Class Summary
static class TravelDescription.AccommodationTypes
           
static class TravelDescription.Seasons
           
 
Constructor Summary
TravelDescription()
           
 
Method Summary
 TravelDescription.AccommodationTypes getAccommodation()
           
 java.lang.String getCaseId()
           
 java.lang.Integer getDuration()
           
 java.lang.String getHolidayType()
           
 Attribute getIdAttribute()
          Returns the attribute that identifies the component.
 java.lang.Integer getNumberOfPersons()
           
 java.lang.Integer getPrice()
           
 Instance getRegion()
           
 TravelDescription.Seasons getSeason()
           
 java.lang.String getTransportation()
           
 void setAccommodation(TravelDescription.AccommodationTypes accomodation)
           
 void setCaseId(java.lang.String caseId)
           
 void setDuration(java.lang.Integer duration)
           
 void setHolidayType(java.lang.String holidayType)
           
 void setNumberOfPersons(java.lang.Integer numberOfPersons)
           
 void setPrice(java.lang.Integer price)
           
 void setRegion(Instance region)
           
 void setSeason(TravelDescription.Seasons season)
           
 void setTransportation(java.lang.String transportation)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TravelDescription

public TravelDescription()
Method Detail

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

GAIA - Group for Artificial Intelligence Applications
http://gaia.fdi.ucm.es