|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--simulator.locale.LocationMapping
Module: simulator.locale
Copyright: UMASS - MASL 1999
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 |
public LocationMapping()
| Method Detail |
public Locale mapLocationToLocale(java.lang.String loc)
loc - some location string (ignored)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||