net.sf.marineapi.provider
Class SatelliteInfoProvider

java.lang.Object
  extended by net.sf.marineapi.provider.AbstractProvider<SatelliteInfoEvent>
      extended by net.sf.marineapi.provider.SatelliteInfoProvider
All Implemented Interfaces:
EventListener, SentenceListener

public class SatelliteInfoProvider
extends AbstractProvider<SatelliteInfoEvent>

SatelliteInfoProvider collects GPS satellite information from sequence of GSV sentences and reports all the information in a single event.

Author:
Kimmo Tuukkanen

Constructor Summary
SatelliteInfoProvider(SentenceReader reader)
          Creates a new instance of SatelliteInfoProvider with specified reader.
 
Method Summary
protected  SatelliteInfoEvent createProviderEvent()
          Creates a ProviderEvent of type T.
protected  boolean isReady()
          Tells if provider has captured the required sentences for creating new ProviderEvent.
protected  boolean isValid()
          Tells if the captured sentence events contain valid data to be dispatched to ProviderListeners.
 
Methods inherited from class net.sf.marineapi.provider.AbstractProvider
addListener, getSentences, hasAll, hasOne, readingPaused, readingStarted, readingStopped, removeListener, sentenceRead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SatelliteInfoProvider

public SatelliteInfoProvider(SentenceReader reader)
Creates a new instance of SatelliteInfoProvider with specified reader.

Parameters:
reader - Reader to scan for GSV sentences.
Method Detail

createProviderEvent

protected SatelliteInfoEvent createProviderEvent()
Description copied from class: AbstractProvider
Creates a ProviderEvent of type T.

Specified by:
createProviderEvent in class AbstractProvider<SatelliteInfoEvent>
Returns:
Created event, or null if failed.

isReady

protected boolean isReady()
Description copied from class: AbstractProvider
Tells if provider has captured the required sentences for creating new ProviderEvent.

Specified by:
isReady in class AbstractProvider<SatelliteInfoEvent>
Returns:
true if ready to create ProviderEvent, otherwise false.

isValid

protected boolean isValid()
Description copied from class: AbstractProvider
Tells if the captured sentence events contain valid data to be dispatched to ProviderListeners.

Specified by:
isValid in class AbstractProvider<SatelliteInfoEvent>
Returns:
true if valid, otherwise false.


Copyright (C) 2010-2014 Java Marine API authors. All Rights Reserved.