module_standard.wSerial
Class AbstractMS1204

Object
  extended by Thread
      extended by module_standard.wSerial.AbstractMS1204
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
Ms1204

public abstract class AbstractMS1204
extends Thread


A_doc
Licence.


Nested Class Summary
 
Nested classes/interfaces inherited from class Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int cbOpen
           
 String codeCb
           
(package private)  int envParam
           
(package private)  Serial serial
           
 
Fields inherited from class Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractMS1204(Serial serial)
           
 
Method Summary
protected  boolean cbBeep()
           
 void close()
           
protected  boolean enable2TO5(boolean beep)
           
 long getSleepSerial()
           
protected abstract  boolean initCB()
           
 boolean isCbInitInit()
           
 boolean isCbOpen()
           
 boolean isWaitCodeCb()
           
 String readCodeCb()
           
 void run()
           
 boolean sendTx(int opCode, int[] mess)
           
 boolean setCbOff(boolean beep)
           
 boolean setCbOn(boolean beep)
           
 void setDebug(boolean enable)
           
 void setParamTrame(int prefix, int length, int suffix1, int suffix2)
           
 void setWaitCodeCb(boolean waitCodeCb)
           
 void stopWaitCodeCb()
           
 boolean waitCodeCb()
           
 
Methods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serial

Serial serial

envParam

int envParam

cbOpen

int cbOpen

codeCb

public String codeCb
Constructor Detail

AbstractMS1204

public AbstractMS1204(Serial serial)
Method Detail

run

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

isCbInitInit

public boolean isCbInitInit()

isCbOpen

public boolean isCbOpen()

initCB

protected abstract boolean initCB()

sendTx

public boolean sendTx(int opCode,
                      int[] mess)

setDebug

public void setDebug(boolean enable)

close

public void close()

enable2TO5

protected boolean enable2TO5(boolean beep)

setParamTrame

public void setParamTrame(int prefix,
                          int length,
                          int suffix1,
                          int suffix2)

waitCodeCb

public boolean waitCodeCb()

stopWaitCodeCb

public void stopWaitCodeCb()

readCodeCb

public String readCodeCb()

setCbOn

public boolean setCbOn(boolean beep)

setCbOff

public boolean setCbOff(boolean beep)

cbBeep

protected boolean cbBeep()

getSleepSerial

public long getSleepSerial()

setWaitCodeCb

public void setWaitCodeCb(boolean waitCodeCb)

isWaitCodeCb

public boolean isWaitCodeCb()