<commit_before>/******************************************************************************
* Copyright (c) 2015 <NAME>
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*  <NAME>
*  <NAME>
*  <NAME>
*  <NAME>
******************************************************************************/


package com.kyloth.serleenacloud.datamodel.business;

import com.kyloth.serleenacloud.datamodel.geometry.IRect;

import java.util.Date;

public class WeatherForecast implements IWeatherForecast {

    private WeatherCondition forecast;
    private IRect boundingRect;
    private double temperature;
    private Date time;

    public WeatherForecast(Date time, IRect boundingRect, double temperature, WeatherCondition forecast) {
        this.time = time;
        this.boundingRect = boundingRect;
        this.temperature = temperature;
        this.forecast = forecast;
    }

    public WeatherCondition getForecast() {
        return forecast;
    }

    public double getTemperature() {
        return temperature;
    }

    public IRect getBoundingRect() {
        return boundingRect;
    }

    public Date getTime() {
        return time;
    }
}<commit_msg>JAVADOC: aggiungi javadoc a WeatherForecast<commit_after>/******************************************************************************
* Copyright (c) 2015 <NAME>
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*  <NAME>
*  <NAME>
*  <NAME>
*  <NAME>
******************************************************************************/


/**
 * Name: WeatherForecast.java
 * Package: com.kyloth.serleenacloud.datamodel.business
 * Author: <NAME>
 *
 * History:
 * Version  Programmer      Changes
 * 1.0.0    <NAME>  Creazione file, codice e javadoc iniziali
 */

package com.kyloth.serleenacloud.datamodel.business;

import com.kyloth.serleenacloud.datamodel.geometry.IRect;

import java.util.Date;

/**
 * Classe che concretizza IWeatherForecast.
 *
 * @author <NAME> <<EMAIL>>
 * @version 1.0
 */

public class WeatherForecast implements IWeatherForecast {

    /**
     * Rappresenta la condizione meteo prevista.
     */

    private WeatherCondition forecast;

    /**
     * Rappresenta l'area geografica associata alla previsione meteo.
     */

    private IRect boundingRect;

    /**
     * Rappresenta la temperatura prevista.
     */

    private double temperature;

    /**
     * Data associata alla previsione meteo.
     */

    private Date time;

    /**
     * Crea una nuova previsione meteo inizializzandone i campi dati.
     */

    public WeatherForecast(Date time, IRect boundingRect, double temperature, WeatherCondition forecast) {
        this.time = time;
        this.boundingRect = boundingRect;
        this.temperature = temperature;
        this.forecast = forecast;
    }

    /**
     * Metodo "getter" che permette di ottenere le condizioni meteo previste.
     *
     * @return Restituisce un valore WeatherCondition che rappresenta una condizione meteo.
     */

    public WeatherCondition getForecast() {
        return forecast;
    }

    /**
     * Metodo "getter" che permette di ottenere la temperatura prevista.
     *
     * @return Restituisce un valore double che rappresenta la temperatura prevista.
     */

    public double getTemperature() {
        return temperature;
    }

    /**
     * Metodo "getter" che permette di ottenere l'area geografica relativa alle previsioni.
     *
     * @return Restituisce un oggetto di tipo IRect che rappresenta l'area geografica relativa alle previsioni meteo.
     */

    public IRect getBoundingRect() {
        return boundingRect;
    }

    /**
     * Metodo "getter" che permette di ottenere la data alla quale le previsioni sono relative.
     *
     * @return Restituisce un oggetto Date che rappresenta la data alla quale le previsioni sono relative.
     */

    public Date getTime() {
        return time;
    }
}
{'fraction_non_alphanumeric': 0.15091711167866265, 'fraction_numerical': 0.00487578360807987, 'mean_word_length': 3.178467507274491, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3439538', 'n_tokens_mistral': 1275, 'n_tokens_neox': 1202, 'n_words': 355}