类 AISListenerExample
java.lang.Object
net.sf.marineapi.nmea.event.AbstractSentenceListener<AISSentence>
net.sf.marineapi.ais.event.AbstractAISMessageListener<AISMessage01>
net.sf.marineapi.example.AISListenerExample
- 所有已实现的接口:
EventListener,SentenceListener
Simple example application that takes a filename as command-line argument and
prints position from VDM sentences.
- 作者:
- Jozéph Lázár
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidMain method takes one command-line argument, the name of the file to read.voidonMessage(AISMessage01 msg) Invoked when AIS message has been received.从类继承的方法 net.sf.marineapi.ais.event.AbstractAISMessageListener
readingPaused, readingStarted, readingStopped, sentenceRead从类继承的方法 net.sf.marineapi.nmea.event.AbstractSentenceListener
sentenceRead
-
构造器详细资料
-
AISListenerExample
Creates a new instance of AISExample- 参数:
file- File containing NMEA data- 抛出:
IOException
-
-
方法详细资料
-
onMessage
从类复制的说明:AbstractAISMessageListenerInvoked when AIS message has been received.- 指定者:
onMessage在类中AbstractAISMessageListener<AISMessage01>- 参数:
msg- AISMessage of typeT
-
main
Main method takes one command-line argument, the name of the file to read.- 参数:
args- Command-line arguments
-