类 HeadingProvider
- 所有已实现的接口:
EventListener,SentenceListener
Heading provider reports the vessel's current heading. Data is captured from
HDT, HDM or HDG sentences.
- 作者:
- Kimmo Tuukkanen
- 另请参阅:
-
字段概要
从类继承的字段 net.sf.marineapi.provider.AbstractProvider
DEFAULT_TIMEOUT -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected HeadingEventCreates aProviderEventof typeT.protected booleanisReady()Tells if provider has captured the required sentences for creating new ProviderEvent.protected booleanisValid()Tells if the captured sentence events contain valid data to be dispatched to ProviderListeners.从类继承的方法 net.sf.marineapi.provider.AbstractProvider
addListener, getSentences, hasAll, hasOne, readingPaused, readingStarted, readingStopped, removeListener, sentenceRead, setTimeout
-
构造器详细资料
-
HeadingProvider
Creates a new intance of HeadingProvider.- 参数:
reader- Reader for capturing heading sentences.
-
-
方法详细资料
-
createProviderEvent
从类复制的说明:AbstractProviderCreates aProviderEventof typeT.- 指定者:
createProviderEvent在类中AbstractProvider<HeadingEvent>- 返回:
- Created event, or null if failed.
-
isReady
protected boolean isReady()从类复制的说明:AbstractProviderTells if provider has captured the required sentences for creating new ProviderEvent.- 指定者:
isReady在类中AbstractProvider<HeadingEvent>- 返回:
- true if ready to create ProviderEvent, otherwise false.
-
isValid
protected boolean isValid()从类复制的说明:AbstractProviderTells if the captured sentence events contain valid data to be dispatched to ProviderListeners.- 指定者:
isValid在类中AbstractProvider<HeadingEvent>- 返回:
- true if valid, otherwise false.
-