shared
Class StandardUserExtended

java.lang.Object
  extended by shared.StandardUserExtended
All Implemented Interfaces:
java.io.Serializable

public class StandardUserExtended
extends java.lang.Object
implements java.io.Serializable

extends the StandardUser to include the online status and distance from another user.

Since:
1.5
Version:
%I%, %G%
Author:
Karl Tschetschonig
See Also:
Serialized Form
Matrikelnummer:
0525983
Studienkennzahl:
033 526

Constructor Summary
StandardUserExtended(StandardUser user, float distance, java.lang.String distanceUnit, boolean isOnline)
          constructs a new StandardUser including distance and onlinestate
 
Method Summary
 float getDistance()
           
 java.lang.String getDistanceUnit()
           
 StandardUser getUser()
           
 boolean isOnline()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardUserExtended

public StandardUserExtended(StandardUser user,
                            float distance,
                            java.lang.String distanceUnit,
                            boolean isOnline)
constructs a new StandardUser including distance and onlinestate

Parameters:
user - references to the user
distance - value of distance to user
distanceUnit - unit of distance(KM, MI)
isOnline - is the user online or not
Method Detail

getUser

public StandardUser getUser()
Returns:
the user

getDistance

public float getDistance()
Returns:
the distance

getDistanceUnit

public java.lang.String getDistanceUnit()
Returns:
the distance unit

isOnline

public boolean isOnline()
Returns:
the online state