|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--DE.purple_sunshine.bigbro.SuspendableThread
|
+--DE.purple_sunshine.bigbro.PositionLoader
The PositionLoader loads the current real world position for each Person from a server. If the file cannot be loaded, random positions are used and a message is shown. When the applet is stopped and started again, it tries loading the positions from the server again.
| Field Summary | |
static java.lang.String[] |
areaNames
|
static long |
DEFAULT_REFRESH_DELAY
|
static long |
TIMEOUT
Timeout after which the applet gives up loading from the server. |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
PositionLoader(java.util.Vector persons,
java.net.URL positionFileURL,
long refreshDelay,
Animator animator)
Constructs a new PositionLoader. |
|
| Method Summary | |
java.net.URL |
getPositionFileURL()
|
long |
getRefreshDelay()
|
void |
run()
Loads the new positions every refreshDelay ms. |
void |
setPositionFileURL(java.net.URL positionFileURL)
|
void |
setRefreshDelay(long refreshDelay)
|
| Methods inherited from class DE.purple_sunshine.bigbro.SuspendableThread |
finish, isFinished, resume_, suspend_ |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final long DEFAULT_REFRESH_DELAY
public static final long TIMEOUT
public static final java.lang.String[] areaNames
| Constructor Detail |
public PositionLoader(java.util.Vector persons,
java.net.URL positionFileURL,
long refreshDelay,
Animator animator)
persons - the Vector of Persons postions should be loaded forpositionFileURL - the URL of the file (or script) where the positions
are updated inrefreshDelay - the amount of ms between two updatesanimator - the animator that needs to be updated when the positions
are updated| Method Detail |
public void run()
refreshDelay ms.run in class java.lang.Threadpublic java.net.URL getPositionFileURL()
public void setPositionFileURL(java.net.URL positionFileURL)
public long getRefreshDelay()
public void setRefreshDelay(long refreshDelay)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||