edu.ntnu.cikmr.services.location
Class LocationSensorResource
java.lang.Object
edu.ntnu.cikmr.services.AbstractService
edu.ntnu.cikmr.services.resources.AbstractResourceService
edu.ntnu.cikmr.services.location.LocationSensorResource
- All Implemented Interfaces:
- Service
public class LocationSensorResource
- extends AbstractResourceService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationSensorResource
public LocationSensorResource()
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