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

net.sf.marineapi.nmea.sentence.ZDASentence Maven / Gradle / Ivy

The newest version!
/*
 * ZDASentence.java
 * Copyright (C) 2010 Kimmo Tuukkanen
 *
 * This file is part of Java Marine API.
 * 
 *
 * Java Marine API is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or (at your
 * option) any later version.
 *
 * Java Marine API is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Java Marine API. If not, see .
 */
package net.sf.marineapi.nmea.sentence;

import java.util.Date;

import net.sf.marineapi.nmea.util.Time;

/**
 * UTC time and date with local time zone offset.
 * 

* Example:
* $GPZDA,032915,07,08,2004,00,00*4D * * @author Kimmo Tuukkanen */ public interface ZDASentence extends TimeSentence, DateSentence { /** * Get offset to local time zone in hours, from 0 to +/- 13 hours. * * @return Time zone offset * @throws net.sf.marineapi.nmea.parser.DataNotAvailableException If the data is * not available. * @throws net.sf.marineapi.nmea.parser.ParseException If the field contains * unexpected or illegal value. */ int getLocalZoneHours(); /** * Get offset to local time zone in minutes, from 0 to +/- 59. * * @return Time zone offset * @throws net.sf.marineapi.nmea.parser.DataNotAvailableException If the data is * not available. * @throws net.sf.marineapi.nmea.parser.ParseException If the field contains * unexpected or illegal value. */ int getLocalZoneMinutes(); /** * Set offset to local time zone in hours. * * @param hours Offset, from 0 to +/- 13 hours. */ void setLocalZoneHours(int hours); /** * Set offset to local time zone in minutes. * * @param minutes Offset, from 0 to +/- 59 minutes. */ void setLocalZoneMinutes(int minutes); /** * Set time and local time zone hours and minutes. * * @param t Time to be inserted in sentence. */ void setTimeAndLocalZone(Time t); /** * Get date and time as {@link java.util.Date}. * * @return {@link java.util.Date} * @throws net.sf.marineapi.nmea.parser.DataNotAvailableException If any of the * date/time values is not available. * @throws net.sf.marineapi.nmea.parser.ParseException If the any of the * date/time fields contains invalid value. */ Date toDate(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy