public abstract class RFIDController extends MustThread
Modifier and Type | Field and Description |
---|---|
protected boolean |
alive |
protected java.lang.String |
bookedUser |
protected java.util.HashSet<java.lang.String> |
ids |
protected de.must.applet.RFIDController.RFIDListener |
listener |
static int |
OPEN_RESULT_OK |
static int |
OPEN_WAIT_MILLIES |
protected int |
openResult |
protected de.must.applet.RFIDController.RFIDListener |
priorityUserIdListener |
protected java.util.HashSet<java.lang.String> |
recognizedItems |
static int |
STANDARD_WAIT_MILLIES |
static int |
SUSPENDED_WAIT_MILLIES |
threadDoneListeners
Constructor and Description |
---|
RFIDController() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
checkinMedia(java.util.Vector<java.lang.String> labels) |
protected abstract void |
checkoutMedia(java.util.Vector<java.lang.String> labels) |
void |
close() |
protected boolean |
containsPackageUnrecognizedItems(RFIDPackage pack) |
abstract boolean |
gotAPI() |
protected void |
handlePackage(RFIDPackage pack) |
abstract boolean |
isOpen() |
boolean |
isToRun()
Returns true if the thread is to be continued.
|
void |
start() |
void |
startReadingIfNotDoneYet() |
void |
writeItemId(java.lang.String id) |
abstract void |
writeItemId(java.lang.String id,
java.lang.String medArtKb) |
addThreadDoneListener, fireThreadDone, fireThreadDone, getEventMessage, getFinalState, idle, logDebug, logError, logError, logInfo, setEventErrorMessage, setEventMessage, setFinalState
activeCount, checkAccess, clone, 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, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield
public static final int OPEN_RESULT_OK
public static final int OPEN_WAIT_MILLIES
public static final int SUSPENDED_WAIT_MILLIES
public static final int STANDARD_WAIT_MILLIES
protected int openResult
protected de.must.applet.RFIDController.RFIDListener listener
protected de.must.applet.RFIDController.RFIDListener priorityUserIdListener
protected java.util.HashSet<java.lang.String> ids
protected java.lang.String bookedUser
protected java.util.HashSet<java.lang.String> recognizedItems
protected boolean alive
public abstract boolean gotAPI()
public void writeItemId(java.lang.String id)
public void startReadingIfNotDoneYet()
public void start()
start
in class java.lang.Thread
public abstract boolean isOpen()
public abstract void writeItemId(java.lang.String id, java.lang.String medArtKb)
protected void handlePackage(RFIDPackage pack) throws java.lang.Exception
java.lang.Exception
protected boolean containsPackageUnrecognizedItems(RFIDPackage pack)
protected abstract void checkinMedia(java.util.Vector<java.lang.String> labels)
protected abstract void checkoutMedia(java.util.Vector<java.lang.String> labels)
public boolean isToRun()
MustThread
isToRun
in class MustThread
public void close()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de