standup.clouds
Class Scanner

java.lang.Object
  extended by java.lang.Thread
      extended by standup.clouds.Scanner
All Implemented Interfaces:
Runnable

public class Scanner
extends Thread

Author:
Ruli Manurung

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int currentItem
           
(package private)  int delay
           
private  boolean doneWithInitialDelay
           
(package private)  CloudFrontend frontend
           
(package private)  int initialDelay
           
private  Object lock
           
(package private)  EntityAnimatedInteractive[] scanItems
           
private  boolean threadSuspended
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Scanner()
           
 
Method Summary
(package private)  void clickScanner()
           
(package private)  boolean isPaused()
           
(package private)  void pauseScanner()
           
(package private)  void repoll()
          This should only be called when the scannable items has changed.
(package private)  void resumeScanner()
           
 void run()
           
(package private)  void setParameters(CloudFrontend cf, int id, int del)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

threadSuspended

private boolean threadSuspended

doneWithInitialDelay

private boolean doneWithInitialDelay

lock

private Object lock

frontend

CloudFrontend frontend

delay

int delay

initialDelay

int initialDelay

scanItems

EntityAnimatedInteractive[] scanItems

currentItem

int currentItem
Constructor Detail

Scanner

public Scanner()
Method Detail

setParameters

void setParameters(CloudFrontend cf,
                   int id,
                   int del)

isPaused

boolean isPaused()

pauseScanner

void pauseScanner()

resumeScanner

void resumeScanner()

clickScanner

void clickScanner()

repoll

void repoll()
This should only be called when the scannable items has changed. Note that it now resets doneWithInitialDelay to false!


run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread