de.fhg.igd.gps
Class GPSParserEvent

java.lang.Object
  extended byde.fhg.igd.event.Event
      extended byde.fhg.igd.gps.GPSParserEvent
All Implemented Interfaces:
Implication, Serializable

public final class GPSParserEvent
extends Event

This class represents a gps parser event.

Version:
"$Id: GPSParserEvent.java 1913 2007-08-08 02:41:53Z jpeters $"
Author:
Jan Peters
See Also:
Serialized Form

Field Summary
private  Exception e_
           
static int ERROR
           
private  GPSData gpsData_
           
private  int mask_
          The bit mask of those parameters this event refers to.
static int NMEA183
           
private  NMEA183Sentence nmea183_
           
static int NMEA183_GGA
           
static int NMEA183_GLL
           
static int NMEA183_GSA
           
static int NMEA183_GSV
           
static int NMEA183_RMC
           
static int NMEA183_VTG
           
private static String[] op_id_
          The tokens which specify event parameters.
private static int[] op_mask_
          Each event parameter corresponds to a bit mask which is used for quick implication testing.
static int RUNNING
           
static int TERMINATED
           
 
Fields inherited from class de.fhg.igd.event.Event
millis
 
Constructor Summary
GPSParserEvent(String action)
          Creates an instance.
GPSParserEvent(String action, Exception e)
          Creates an instance.
GPSParserEvent(String action, NMEA183Sentence nmea183)
          Creates an instance.
 
Method Summary
 boolean equals(Object o)
          Tests if this object is equal to the given one which is true iff their classes match, their masks match and their agent names match.
 Exception getException()
          Returns the entry of the database which is subject of this event.
 GPSData getGPSData()
           
 int getMask()
          Returns the mask of this object.
 NMEA183Sentence getNMEA183Sentence()
          Returns the entry of the database which is subject of this event.
 String toString()
          Returns a string representation of this object.
 
Methods inherited from class de.fhg.igd.event.Event
implies
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

TERMINATED

public static final int TERMINATED
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

NMEA183

public static final int NMEA183
See Also:
Constant Field Values

NMEA183_GGA

public static final int NMEA183_GGA
See Also:
Constant Field Values

NMEA183_GLL

public static final int NMEA183_GLL
See Also:
Constant Field Values

NMEA183_GSA

public static final int NMEA183_GSA
See Also:
Constant Field Values

NMEA183_GSV

public static final int NMEA183_GSV
See Also:
Constant Field Values

NMEA183_RMC

public static final int NMEA183_RMC
See Also:
Constant Field Values

NMEA183_VTG

public static final int NMEA183_VTG
See Also:
Constant Field Values

op_id_

private static final String[] op_id_
The tokens which specify event parameters.


op_mask_

private static final int[] op_mask_
Each event parameter corresponds to a bit mask which is used for quick implication testing.


nmea183_

private transient NMEA183Sentence nmea183_

e_

private transient Exception e_

gpsData_

private transient GPSData gpsData_

mask_

private int mask_
The bit mask of those parameters this event refers to.

Constructor Detail

GPSParserEvent

public GPSParserEvent(String action)
Creates an instance.

Parameters:
action - The event's actions.

GPSParserEvent

public GPSParserEvent(String action,
                      Exception e)
Creates an instance.

Parameters:
action - The event's actions.
e - The exception which has been occured.

GPSParserEvent

public GPSParserEvent(String action,
                      NMEA183Sentence nmea183)
Creates an instance.

Parameters:
action - The event's actions.
nmea183 - The NMEA183 Sentence which has successfully been parsed.
Method Detail

equals

public boolean equals(Object o)
Tests if this object is equal to the given one which is true iff their classes match, their masks match and their agent names match.

Parameters:
o - The object which is tested for equality.

getMask

public int getMask()
Returns the mask of this object.

Returns:
The mask.

getNMEA183Sentence

public NMEA183Sentence getNMEA183Sentence()
Returns the entry of the database which is subject of this event.

Returns:
The database entry.

getException

public Exception getException()
Returns the entry of the database which is subject of this event.

Returns:
The database entry.

getGPSData

public GPSData getGPSData()

toString

public String toString()
Returns a string representation of this object.

Returns:
The String representation.


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.