SunSPOT host API V4.0


com.sun.spot.client.command
Class HelloResult

java.lang.Object
  extended by com.sun.spot.client.command.HelloResult
All Implemented Interfaces:
Serializable

public class HelloResult
extends Object
implements Serializable

HelloResult: helper class for HelloCommand that represents the data obtained from one SPOT responding to a hello command.

See Also:
Serialized Form

Field Summary
 float altitude
           
 int batteryLevel
           
 String hardwareMajorRevision
           
 int hardwareMinorRevision
           
 boolean hasLocation
           
 boolean hasPublicKey
           
 int helloCommandMinorVersion
           
 int helloCommandVersion
           
 boolean isCharging
           
 boolean isExternallyPowered
           
static int LAT_LONG_ALTITUDE
           
 float latitude
           
 int libraryHash
           
 int locationType
           
 float longitude
           
 String name
           
static int NO_LOCATION
           
 byte[] ownerId
           
 long remoteAddress
           
 long skew
           
 String spotSDKVersion
           
 long spotTime
           
 int vBatt
           
 float x
           
static int X_Y_Z
           
 float y
           
 float z
           
 
Constructor Summary
HelloResult(Datagram receivedDatagram, long timeBeforeSend)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_LOCATION

public static final int NO_LOCATION
See Also:
Constant Field Values

LAT_LONG_ALTITUDE

public static final int LAT_LONG_ALTITUDE
See Also:
Constant Field Values

X_Y_Z

public static final int X_Y_Z
See Also:
Constant Field Values

remoteAddress

public final long remoteAddress

helloCommandVersion

public final int helloCommandVersion

helloCommandMinorVersion

public final int helloCommandMinorVersion

spotSDKVersion

public final String spotSDKVersion

libraryHash

public final int libraryHash

ownerId

public final byte[] ownerId

spotTime

public final long spotTime

hardwareMajorRevision

public final String hardwareMajorRevision

hardwareMinorRevision

public final int hardwareMinorRevision

isExternallyPowered

public final boolean isExternallyPowered

vBatt

public final int vBatt

skew

public final long skew

name

public final String name

hasPublicKey

public final boolean hasPublicKey

isCharging

public boolean isCharging

batteryLevel

public int batteryLevel

hasLocation

public boolean hasLocation

locationType

public int locationType

latitude

public float latitude

longitude

public float longitude

altitude

public float altitude

x

public float x

y

public float y

z

public float z
Constructor Detail

HelloResult

public HelloResult(Datagram receivedDatagram,
                   long timeBeforeSend)
            throws IOException
Parameters:
receivedDatagram - the datagram received from a remote SPOT in response to a hellow command
timeBeforeSend - the local system time before the hello command was sent
Throws:
IOException

SunSPOT host API V4.0


Copyright © 2006-2008 Sun Microsystems, Inc. All Rights Reserved.