triptracker.core
Class Route

java.lang.Object
  extended by triptracker.core.Route

public class Route
extends Object

Route represents a stored route on the server with a route ID, user ID and description. Data in a Route object is immutable.


Constructor Summary
Route(int routeId)
           
Route(int routeId, int userId, String description)
           
Route(int routeId, int userId, String description, boolean active, boolean visible, Date date)
           
Route(int routeId, int userId, String description, boolean active, Date date)
           
 
Method Summary
 String getDescription()
           
 Date getLastUpdate()
          Returns the date and time of the last
 String getLastUpdateString()
           
 int getRouteId()
           
 int getUserId()
           
 boolean getVisible()
           
 boolean isActive()
          Returns the active state of the route.
 void setActive(boolean active)
          Set route state to activated or deactivated.
 void setVisible(boolean visibility)
          Set the visibility of the route to other clients.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Route

public Route(int routeId)

Route

public Route(int routeId,
             int userId,
             String description)

Route

public Route(int routeId,
             int userId,
             String description,
             boolean active,
             Date date)

Route

public Route(int routeId,
             int userId,
             String description,
             boolean active,
             boolean visible,
             Date date)
Method Detail

getDescription

public String getDescription()

getRouteId

public int getRouteId()

getUserId

public int getUserId()

getLastUpdateString

public String getLastUpdateString()

getLastUpdate

public Date getLastUpdate()
Returns the date and time of the last

Returns:
date of last update

isActive

public boolean isActive()
Returns the active state of the route.

Returns:
active state of route

setActive

public void setActive(boolean active)
Set route state to activated or deactivated.

Parameters:
active - true to activate, false to deactivate

getVisible

public boolean getVisible()

setVisible

public void setVisible(boolean visibility)
Set the visibility of the route to other clients.

Parameters:
visibility -

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2006 Team Trip Tracker. All Rights Reserved.