net.sf.marineapi.nmea.event
Class SentenceEvent
java.lang.Object
java.util.EventObject
net.sf.marineapi.nmea.event.SentenceEvent
- All Implemented Interfaces:
- Serializable
public class SentenceEvent
- extends EventObject
Sentence events occur when a valid NMEA 0183 sentence has been read from the
data source.
- Version:
- $Revision: 92 $
- Author:
- Kimmo Tuukkanen
- See Also:
SentenceListener
,
SentenceReader
,
Serialized Form
SentenceEvent
public SentenceEvent(Object src,
Sentence s)
- Creates a new SentenceEvent object.
- Parameters:
src
- Object that fired the events
- Sentence that triggered the event
- Throws:
IllegalArgumentException
- If specified sentence is
null
getSentence
public Sentence getSentence()
- Gets the Sentence object that triggered the event.
- Returns:
- Sentence object
getTimeStamp
public long getTimeStamp()
- Get system time when this event was created.
- Returns:
- Milliseconds timestamp
Copyright (C) 2010-2011 Java Marine API author(s). All Rights Reserved.