es.ucm.look.data
Class LookData

java.lang.Object
  extended by es.ucm.look.data.LookData

public class LookData
extends java.lang.Object

A class holding all the information required across all activities


Method Summary
 java.util.Map<java.lang.String,java.lang.String> getAllProperties(int id)
           
 DataHandler getDataHandler()
           
 LookFilesManager getFilesManager()
           
 int getId()
           
static LookData getInstance()
           
 Point3 getLocation()
          Returns the current location
 java.lang.String getPropertyValue(int id, java.lang.String propertyName)
           
 ServiceManager getServiceManager()
           
 World getWorld()
           
 void setDataHandler(DataHandler dataHandler)
           
 void setDistance(float distance)
          Sets the maximum distance for an element to be added into the world
 void setId(int id)
           
 void setServiceManager(ServiceManager servicemanager)
           
 void setWorld(World w)
           
 void setWorldEntityFactory(WorldEntityFactory factory)
           
 void startLocation(int time, boolean inertial, boolean wifi)
          Starts the location provider
 void stopLocation()
          Stops location
 void updateData()
          Updates the data for the world
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAllProperties

public java.util.Map<java.lang.String,java.lang.String> getAllProperties(int id)

getDataHandler

public DataHandler getDataHandler()

getFilesManager

public LookFilesManager getFilesManager()

getId

public int getId()

getInstance

public static LookData getInstance()

getLocation

public Point3 getLocation()
Returns the current location

Returns:
the current location

getPropertyValue

public java.lang.String getPropertyValue(int id,
                                         java.lang.String propertyName)

getServiceManager

public ServiceManager getServiceManager()

getWorld

public World getWorld()

setDataHandler

public void setDataHandler(DataHandler dataHandler)

setDistance

public void setDistance(float distance)
Sets the maximum distance for an element to be added into the world

Parameters:
distance - the distance

setId

public void setId(int id)

setServiceManager

public void setServiceManager(ServiceManager servicemanager)

setWorld

public void setWorld(World w)

setWorldEntityFactory

public void setWorldEntityFactory(WorldEntityFactory factory)

startLocation

public void startLocation(int time,
                          boolean inertial,
                          boolean wifi)
Starts the location provider

Parameters:
time - time between updats
inertial - if the inertial system must be used
wifi - if the wifi system must be used

stopLocation

public void stopLocation()
Stops location


updateData

public void updateData()
Updates the data for the world