com.lamatek.tags.google.beans
Class TrafficEventBean

java.lang.Object
  extended by com.lamatek.tags.google.beans.TrafficEventBean

public class TrafficEventBean
extends java.lang.Object


Constructor Summary
TrafficEventBean()
          Empty constructor for a traffic event.
 
Method Summary
 java.lang.String getContent()
          Returns the display content to show in the traffic event's info window which is displayed when the marker is clicked.
 java.lang.String getDescription()
          Returns the text description for this traffic event.
 java.lang.String getDirection()
          Returns the direction of the event (if it's an incident that affects one direction of a road, or null.
 java.util.Date getEnding()
          Returns the expected ending date for this traffic event or null if the expected ending date is unknown.
 double getLatitude()
          Returns the longitude location for this traffic event.
 double getLongitude()
          Returns the longitude location for this traffic event.
 java.util.Date getReported()
          Returns the date this traffic event was reported.
 int getSeverity()
          Returns the severity of the traffic event, ranging from 1 (least) to 5 (most severe).
 java.lang.String getTitle()
          Returns a descriptive title of this traffic event.
 java.lang.String getType()
          Returns the traffic event type.
 java.util.Date getUpdated()
          Returns the date the event was last updated.
 void setDescription(java.lang.String description)
          Sets the text description for this traffic event.
 void setDirection(java.lang.String direction)
          Sets the direction of traffic (NB, SB, EB or WB) affected by the incident.
 void setEnding(java.util.Date ending)
          Sets the expected ending date for this traffic event.
 void setLatitude(double latitude)
          Sets the longitude location for this traffic event.
 void setLongitude(double longitude)
          Sets the longitude location for this traffic event.
 void setReported(java.util.Date reported)
          Sets the date this traffic event was reported.
 void setSeverity(int severity)
          Sets the severity of this event.
 void setTitle(java.lang.String title)
          Sets the descriptive title of this traffic event.
 void setType(java.lang.String type)
          Sets the type of traffic event.
 void setUpdated(java.util.Date updated)
          Sets the date the event was last updated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrafficEventBean

public TrafficEventBean()
Empty constructor for a traffic event. All valid traffic events must have a longitude, latitude and description defined to be displayed.

Method Detail

getContent

public java.lang.String getContent()
Returns the display content to show in the traffic event's info window which is displayed when the marker is clicked.

Returns:
An HTML formatted string description of the traffic event.

getDescription

public java.lang.String getDescription()
Returns the text description for this traffic event.

Returns:
The text description for this traffic event.

setDescription

public void setDescription(java.lang.String description)
Sets the text description for this traffic event.

Parameters:
String - The text description for this traffic event.

getLatitude

public double getLatitude()
Returns the longitude location for this traffic event.

Returns:
The longitude for this traffoc event.

setLatitude

public void setLatitude(double latitude)
Sets the longitude location for this traffic event.

Parameters:
double - Denotes the longitude for this traffoc event.

getLongitude

public double getLongitude()
Returns the longitude location for this traffic event.

Returns:
The longitude for this traffoc event.

setLongitude

public void setLongitude(double longitude)
Sets the longitude location for this traffic event.

Parameters:
double - Denotes the longitude for this traffoc event.

getType

public java.lang.String getType()
Returns the traffic event type. Valid values are incident and construction.

Returns:
The type of traffic event.

setType

public void setType(java.lang.String type)
Sets the type of traffic event. Valid values are incident and construction.

Parameters:
String - The event type.

getSeverity

public int getSeverity()
Returns the severity of the traffic event, ranging from 1 (least) to 5 (most severe).

Returns:
The event severity as an int.

setSeverity

public void setSeverity(int severity)
Sets the severity of this event. Valid values are 1 (least severe) to 5 (most severe).

Parameters:
int - The event severity.

getTitle

public java.lang.String getTitle()
Returns a descriptive title of this traffic event.

Returns:
The title of this traffic event.

setTitle

public void setTitle(java.lang.String title)
Sets the descriptive title of this traffic event.

Parameters:
String - Descriptive title of the event.

getDirection

public java.lang.String getDirection()
Returns the direction of the event (if it's an incident that affects one direction of a road, or null.


setDirection

public void setDirection(java.lang.String direction)
Sets the direction of traffic (NB, SB, EB or WB) affected by the incident.

Parameters:
String - The traffic direction affected.

getEnding

public java.util.Date getEnding()
Returns the expected ending date for this traffic event or null if the expected ending date is unknown.

Returns:
The expected ending date as a Date object.

setEnding

public void setEnding(java.util.Date ending)
Sets the expected ending date for this traffic event.

Parameters:
ending - Expected ending date

getReported

public java.util.Date getReported()
Returns the date this traffic event was reported.

Returns:
The date the event was reported.

setReported

public void setReported(java.util.Date reported)
Sets the date this traffic event was reported.

Parameters:
reported - The date the event was reported.

getUpdated

public java.util.Date getUpdated()
Returns the date the event was last updated.

Returns:
The date the event was last updated.

setUpdated

public void setUpdated(java.util.Date updated)
Sets the date the event was last updated.

Parameters:
updated - The date the event was last updated.