All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mivek.facade.IWeatherCodeFacade Maven / Gradle / Ivy

package io.github.mivek.facade;

import java.io.IOException;
import java.net.URISyntaxException;

import io.github.mivek.exception.ParseException;
import io.github.mivek.model.AbstractWeatherCode;

/**
 * Interface for facade.
 * @author mivek
 * @param  a concrete sub-class of {@link AbstractWeatherCode}
 */
public interface IWeatherCodeFacade {
    /**
     * Decode method.
     * @param pCode the code to decode.
     * @return the decoded object corresponding to the message.
     * @throws ParseException when an error occurs during the parsing.
     */
    T decode(String pCode) throws ParseException;

    /**
     * Retrieve code and decoded object from airport with icao.
     * @param pIcao the icao of the airport
     * @return the decoded object
     * @throws IOException When an error occurs
     * @throws URISyntaxException When an error occurs.
     * @throws ParseException when an error occurs during the parsing.
     */
    T retrieveFromAirport(String pIcao) throws ParseException, IOException, URISyntaxException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy