com.ltu.smd116.containers
Class WeatherContainer


public class WeatherContainer

WeatherContainer is a container for keeping track of the weather for a
certain date

Author:
Veronica Backlund

Field Summary
 private Datedate
           
 private Stringdescription
           
 private inthighTemp
           
 private inthighWind
           
 private intlowTemp
           
 private intlowWind
           
 private Stringtype
           
 private StringwindDirection
           

Constructor Summary
WeatherContainer()
          The constructor for a certain weather includes all the facts about that
weather.

Method Summary
 DategetDate()
          This method gets the date for this weather
 StringgetDescription()
          This method gets the description for this weather
 intgetHighTemp()
          This method gets the highest temperature for this weather
 intgetHighWind()
          This method gets the highest wind for this weather
 intgetLowTemp()
          This method gets the lowest temerature for this weather
 intgetLowWind()
          This method gets the lowest wind for this weather
 StringgetType()
          This method gets the type for this weather
 StringgetWindDirection()
          This method gets the wind direction for this weather
 voidsetDate(Date date)
          This method sets a new date to this weather
 voidsetDescription(String description)
          This method sets a new description to this weather
 voidsetHighTemp(int highTemp)
          This method sets a new highest temperature to this weather
 voidsetHighWind(int highWind)
          This method sets a new highest wind to this weather
 voidsetLowTemp(int lowTemp)
          This method sets a new lowest temerature to this weather
 voidsetLowWind(int lowWind)
          This method sets a new lowest wind to this weather
 voidsetType(String type)
          This method sets a new type to this weather
 voidsetWindDirection(String windDirection)
          This method sets a new wind direction to this weather

Field Detail

date

private Date date

description

private String description

highTemp

private int highTemp

highWind

private int highWind

lowTemp

private int lowTemp

lowWind

private int lowWind

type

private String type

windDirection

private String windDirection
Constructor Detail

WeatherContainer

public WeatherContainer()
The constructor for a certain weather includes all the facts about that
weather.
Parameters:
date - The date for the weather
lowTemp - The lowest temperature
highTemp - The highest temerature
lowWind - The lowest wind
highWind - The highest wind
windDirection - The direction for the weather
type - One specific word describing the weather, e.g. cloudy, sunny
description - A short description of the weather
Method Detail

getDate

public Date getDate()
This method gets the date for this weather
Returns: the date

getDescription

public String getDescription()
This method gets the description for this weather
Returns: the description

getHighTemp

public int getHighTemp()
This method gets the highest temperature for this weather
Returns: the highest temerature

getHighWind

public int getHighWind()
This method gets the highest wind for this weather
Returns: the highest wind

getLowTemp

public int getLowTemp()
This method gets the lowest temerature for this weather
Returns: the lowest temperature

getLowWind

public int getLowWind()
This method gets the lowest wind for this weather
Returns: the lowest wind

getType

public String getType()
This method gets the type for this weather
Returns: the type

getWindDirection

public String getWindDirection()
This method gets the wind direction for this weather
Returns: the wind direction

setDate

public void setDate(Date date)
This method sets a new date to this weather
Parameters:
date - The date we want to set

setDescription

public void setDescription(String description)
This method sets a new description to this weather
Parameters:
description - The description we want to set

setHighTemp

public void setHighTemp(int highTemp)
This method sets a new highest temperature to this weather
Parameters:
highTemp - The temperature we want to set

setHighWind

public void setHighWind(int highWind)
This method sets a new highest wind to this weather
Parameters:
highWind - The wind we want to set

setLowTemp

public void setLowTemp(int lowTemp)
This method sets a new lowest temerature to this weather
Parameters:
lowTemp - The temperature we want to set

setLowWind

public void setLowWind(int lowWind)
This method sets a new lowest wind to this weather
Parameters:
lowWind - The wind we want to set

setType

public void setType(String type)
This method sets a new type to this weather
Parameters:
type - The type we want to set

setWindDirection

public void setWindDirection(String windDirection)
This method sets a new wind direction to this weather
Parameters:
windDirection - The wind direction we want to set

Association Links

to Class java.util.Date

to Class java.lang.String

to Class java.lang.String

to Class java.lang.String