edu.ntnu.cikmr.services.location
Class LocationSensorResource

java.lang.Object
  extended by edu.ntnu.cikmr.services.AbstractService
      extended by edu.ntnu.cikmr.services.resources.AbstractResourceService
          extended by edu.ntnu.cikmr.services.location.LocationSensorResource
All Implemented Interfaces:
Service

public class LocationSensorResource
extends AbstractResourceService


Field Summary
 
Fields inherited from class edu.ntnu.cikmr.services.AbstractService
listenerList
 
Constructor Summary
LocationSensorResource()
           
 
Method Summary
 java.lang.String getLocation()
           
 int getLocationX()
           
 int getLocationY()
           
 int getLocationZ()
           
 ResourceDescription getResourceDescription()
           
 void init(ServiceManager manager)
          init
 boolean isStarted()
          isStarted
 void setLocation(java.lang.String location)
           
 void setLocationX(int x)
           
 void setLocationY(int y)
           
 void setLocationZ(int z)
           
 void start(PeerGroup peerGroup)
          start
 void stop()
          stop
 
Methods inherited from class edu.ntnu.cikmr.services.resources.AbstractResourceService
invokeMethods, startResource, stopResource
 
Methods inherited from class edu.ntnu.cikmr.services.AbstractService
addServiceListener, fireServiceStarted, fireServiceStopped, removeServiceListner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationSensorResource

public LocationSensorResource()
Method Detail

init

public void init(ServiceManager manager)
init

Parameters:
manager - ServiceManager

getLocationX

public int getLocationX()

getLocationY

public int getLocationY()

getLocationZ

public int getLocationZ()

getLocation

public java.lang.String getLocation()

setLocationX

public void setLocationX(int x)

setLocationY

public void setLocationY(int y)

setLocationZ

public void setLocationZ(int z)

setLocation

public void setLocation(java.lang.String location)

isStarted

public boolean isStarted()
isStarted

Returns:
boolean

start

public void start(PeerGroup peerGroup)
           throws java.io.IOException
start

Parameters:
peerGroup - PeerGroup
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
stop

Throws:
java.io.IOException

getResourceDescription

public ResourceDescription getResourceDescription()
Specified by:
getResourceDescription in class AbstractResourceService