cad.simcad.worldsimulator.objects.parts
Class GPS

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--cad.simcad.worldsimulator.objects.parts.GPS
All Implemented Interfaces:
GPSSim, java.rmi.Remote, java.io.Serializable

public class GPS
extends java.rmi.server.UnicastRemoteObject
implements GPSSim

GPS object for a SimAmbulance

Version:
1.0
Author:
Charles-Philip Bentley, pfernand
See Also:
Serialized Form

Field Summary
static int PERIOD
          Period used by a timer for checking GPSs
static java.lang.String PORT
          Port used by the GPS server
static java.lang.String SERVER
          Location of the GPS server localhost or xxx.xxx.xxx.xxx
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
GPS(EmergencyVehicule ev)
          Creates a new instance of GPS
GPS(SimObject so, EmergencyVehicule ev)
          Creates a new instance of GPS
 
Method Summary
 void emitSignal(GPSPosition po)
          Emit a simulated GPS signal in the world
 GPSPosition getSignal()
          Emit a simulated GPS signal in the world
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SERVER

public static java.lang.String SERVER
Location of the GPS server localhost or xxx.xxx.xxx.xxx


PORT

public static java.lang.String PORT
Port used by the GPS server


PERIOD

public static int PERIOD
Period used by a timer for checking GPSs

Constructor Detail

GPS

public GPS(EmergencyVehicule ev)
    throws java.rmi.RemoteException
Creates a new instance of GPS


GPS

public GPS(SimObject so,
           EmergencyVehicule ev)
    throws java.rmi.RemoteException
Creates a new instance of GPS

Method Detail

emitSignal

public void emitSignal(GPSPosition po)
Description copied from interface: GPSSim
Emit a simulated GPS signal in the world

Specified by:
emitSignal in interface GPSSim
Parameters:
po -

getSignal

public GPSPosition getSignal()
Description copied from interface: GPSSim
Emit a simulated GPS signal in the world

Specified by:
getSignal in interface GPSSim
Returns:
a GPSPosition object

Logo

With the help of www.sourceforge.net and www.info.ucl.ac.be