simulator.locale
Class LocationMapping

java.lang.Object
  |
  +--simulator.locale.LocationMapping
Direct Known Subclasses:
SimpleLocationMapping

public class LocationMapping
extends java.lang.Object

Module: simulator.locale

Copyright: UMASS - MASL 1999

Version:
$Revision: 1.2 $
Author:
Peter Amstutz (amstutz@cs.umass.edu)

Description: This is a fairly simple class whose purpose is to provide an easy way to map some arbitrary location system onto the locale tree. This base class does essentially nothing, throwing everything into the global locale, but can be subclassed for more useful effects. An example might be to map the IHome x,y location coordinates onto the background picture of the house and figure out the proper locale from that.


Constructor Summary
LocationMapping()
           
 
Method Summary
 Locale mapLocationToLocale(java.lang.String loc)
          Override this with an application-specific coodinate->locale translation function (for example, mapping x,y coordinates to locales)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocationMapping

public LocationMapping()
Method Detail

mapLocationToLocale

public Locale mapLocationToLocale(java.lang.String loc)
Override this with an application-specific coodinate->locale translation function (for example, mapping x,y coordinates to locales)
Parameters:
loc - some location string (ignored)
Returns:
the global locale