com.jagacy
Class AbstractModel

java.lang.Object
  extended bycom.jagacy.AbstractModel

public abstract class AbstractModel
extends java.lang.Object

TODO Description of class

Author:
Robert M. Preston

Field Summary
protected  long myAlarmCount
           
protected  AbstractConduit myConduit
           
protected  int myCursor
           
protected  boolean myIsExtended
           
protected  boolean myIsLocked
           
protected  Logger myLogger
           
protected  long myPositionCount
           
protected  JagacyProperties myProperties
           
protected  byte[] myScreen
           
protected  long myUpdateCount
           
 
Constructor Summary
protected AbstractModel(JagacyProperties properties, Logger logger)
           
 
Method Summary
protected  void checkOpen()
           
 void close()
           
 long getAlarmCount()
           
abstract  int getAttrFor(int[] pos)
           
protected abstract  java.lang.String getConduitClass()
           
 int getCursor()
           
 int getHeight()
           
 JagacyProperties getProperties()
           
 long getUpdateCount()
           
 int getWidth()
           
 boolean hasChanged()
           
protected  void init()
           
 boolean isKeyboardLocked()
           
protected abstract  boolean isUnsupportedKey(Key key)
           
protected abstract  void logScreen(java.lang.String message)
           
 void open()
           
 java.lang.String read(int pos, int len)
           
protected abstract  java.lang.String readData(int pos, int len)
           
 void resetAlarmCount()
           
 void resetChanged()
           
protected abstract  boolean resetLocked(Key key)
           
protected  void send(com.jagacy.util.ByteBuffer b)
           
 void sendKey(Key key)
           
protected abstract  void sendKeyData(Key key)
           
 void setCursor(int newPos)
           
 void wait(int timeout)
           
 void wait(int beginTimeout, int endTimeout)
           
 void wait(int beginTimeout, int endTimeout, java.lang.String match)
           
protected abstract  int waitForData(int beginTimeout, int endTimeout, java.lang.String match)
           
 void write(java.lang.String text)
           
protected abstract  void writeData(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLogger

protected Logger myLogger

myProperties

protected JagacyProperties myProperties

myScreen

protected byte[] myScreen

myConduit

protected AbstractConduit myConduit

myCursor

protected int myCursor

myIsLocked

protected boolean myIsLocked

myPositionCount

protected long myPositionCount

myAlarmCount

protected long myAlarmCount

myUpdateCount

protected long myUpdateCount

myIsExtended

protected boolean myIsExtended
Constructor Detail

AbstractModel

protected AbstractModel(JagacyProperties properties,
                        Logger logger)
                 throws JagacyException
Method Detail

logScreen

protected abstract void logScreen(java.lang.String message)
                           throws JagacyException
Throws:
JagacyException

getConduitClass

protected abstract java.lang.String getConduitClass()

init

protected void init()

open

public void open()
          throws JagacyException
Throws:
JagacyException

checkOpen

protected void checkOpen()
                  throws JagacyException
Throws:
JagacyException

getWidth

public int getWidth()

getHeight

public int getHeight()

getProperties

public JagacyProperties getProperties()

getUpdateCount

public long getUpdateCount()

isUnsupportedKey

protected abstract boolean isUnsupportedKey(Key key)

send

protected void send(com.jagacy.util.ByteBuffer b)
             throws JagacyException
Throws:
JagacyException

resetLocked

protected abstract boolean resetLocked(Key key)
                                throws JagacyException
Throws:
JagacyException

sendKeyData

protected abstract void sendKeyData(Key key)
                             throws JagacyException
Throws:
JagacyException

sendKey

public void sendKey(Key key)
             throws JagacyException
Throws:
JagacyException

waitForData

protected abstract int waitForData(int beginTimeout,
                                   int endTimeout,
                                   java.lang.String match)
                            throws JagacyException
Throws:
JagacyException

wait

public void wait(int timeout)
          throws JagacyException
Throws:
JagacyException

wait

public void wait(int beginTimeout,
                 int endTimeout)
          throws JagacyException
Throws:
JagacyException

wait

public void wait(int beginTimeout,
                 int endTimeout,
                 java.lang.String match)
          throws JagacyException
Throws:
JagacyException

isKeyboardLocked

public boolean isKeyboardLocked()
                         throws JagacyException
Throws:
JagacyException

hasChanged

public boolean hasChanged()
                   throws JagacyException
Throws:
JagacyException

resetChanged

public void resetChanged()
                  throws JagacyException
Throws:
JagacyException

getAlarmCount

public long getAlarmCount()
                   throws JagacyException
Throws:
JagacyException

resetAlarmCount

public void resetAlarmCount()
                     throws JagacyException
Throws:
JagacyException

readData

protected abstract java.lang.String readData(int pos,
                                             int len)
                                      throws JagacyException
Throws:
JagacyException

read

public java.lang.String read(int pos,
                             int len)
                      throws JagacyException
Throws:
JagacyException

writeData

protected abstract void writeData(java.lang.String text)
                           throws JagacyException
Throws:
JagacyException

write

public void write(java.lang.String text)
           throws JagacyException
Throws:
JagacyException

getCursor

public int getCursor()
              throws JagacyException
Throws:
JagacyException

setCursor

public void setCursor(int newPos)
               throws JagacyException
Throws:
JagacyException

getAttrFor

public abstract int getAttrFor(int[] pos)
                        throws JagacyException
Throws:
JagacyException

close

public void close()
           throws JagacyException
Throws:
JagacyException