net.sf.marineapi.nmea.event
Class SentenceEvent

java.lang.Object
  extended by java.util.EventObject
      extended by 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

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
SentenceEvent(Object src, Sentence s)
          Creates a new SentenceEvent object.
 
Method Summary
 Sentence getSentence()
          Gets the Sentence object that triggered the event.
 long getTimeStamp()
          Get system time when this event was created.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SentenceEvent

public SentenceEvent(Object src,
                     Sentence s)
Creates a new SentenceEvent object.

Parameters:
src - Object that fired the event
s - Sentence that triggered the event
Throws:
IllegalArgumentException - If specified sentence is null
Method Detail

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.