es.ucm.look.data.remote.restful
Interface RemoteDataHandler

All Known Implementing Classes:
RemoteDataHandler.Stub

public interface RemoteDataHandler


Nested Class Summary
static class RemoteDataHandler.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 void addElement(java.lang.String type, float x, float y, float z, java.util.Map properties)
          Adds an entity to the world in a position
 void doLogin(java.lang.String username, java.lang.String password)
          For to do a Login, need to the username and password
 java.util.List getElementsUpdated(float x, float y, float z, float radius, java.lang.String date)
          For to do a Login, need to the username and password
 void registerCallback(IRemoteServiceCallback cb)
           
 void updateElementPosition(int id, float x, float y, float z)
          Updates an element position
 void updateOrAddProperty(int id, java.lang.String propertyName, java.lang.String propertyValue)
          Updates or add a property
 

Method Detail

addElement

void addElement(java.lang.String type,
                float x,
                float y,
                float z,
                java.util.Map properties)
                throws android.os.RemoteException
Adds an entity to the world in a position

Parameters:
type - type of the entity
x - x coordinate
y - y coordinate
z - z coordinate
properties - Map with the properties of the entity
Throws:
android.os.RemoteException

doLogin

void doLogin(java.lang.String username,
             java.lang.String password)
             throws android.os.RemoteException
For to do a Login, need to the username and password

Parameters:
username - username
propertyName - password
Throws:
android.os.RemoteException

getElementsUpdated

java.util.List getElementsUpdated(float x,
                                  float y,
                                  float z,
                                  float radius,
                                  java.lang.String date)
                                  throws android.os.RemoteException
For to do a Login, need to the username and password

Parameters:
username - username
propertyName - password
Throws:
android.os.RemoteException

registerCallback

void registerCallback(IRemoteServiceCallback cb)
                      throws android.os.RemoteException
Throws:
android.os.RemoteException

updateElementPosition

void updateElementPosition(int id,
                           float x,
                           float y,
                           float z)
                           throws android.os.RemoteException
Updates an element position

Parameters:
id - element's id
x - x coordinate
y - y coordinate
z - z coordinate
Throws:
android.os.RemoteException

updateOrAddProperty

void updateOrAddProperty(int id,
                         java.lang.String propertyName,
                         java.lang.String propertyValue)
                         throws android.os.RemoteException
Updates or add a property

Parameters:
id - elemnt's id
propertyName - property name
propertyValue - property value
Throws:
android.os.RemoteException