|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jagacy.AbstractSession
com.jagacy.SessionVt
Supports a VT screen-scraping session.
Field Summary |
Fields inherited from class com.jagacy.AbstractSession |
INTERNAL_WAIT |
Constructor Summary | |
SessionVt(java.lang.String name)
Creates a new session. |
|
SessionVt(java.lang.String name,
java.lang.String host)
Creates a new session. |
|
SessionVt(java.lang.String name,
java.lang.String host,
int port)
Creates a new session. |
|
SessionVt(java.lang.String name,
java.lang.String host,
int port,
java.lang.String terminal)
Creates a new session. |
|
SessionVt(java.lang.String name,
java.lang.String host,
java.lang.String terminal)
Creates a new session. |
Method Summary | |
protected UserInterface |
createUi()
Creates a user interface. |
boolean |
isLedOn(int led)
Determines if an LED is on or not. |
void |
open(java.lang.String answerback)
Opens the session. |
boolean |
waitForChange(int mainTimeout,
int trailingTimeout)
Waits for the screen to change and the keyboard to unlock. |
boolean |
waitForChange(int mainTimeout,
int trailingTimeout,
java.lang.String tag)
Waits for the tag to be received and the keyboard to unlock. |
boolean |
waitForChange(int timeout,
java.lang.String tag)
Waits for the tag to be received and the keyboard to unlock. |
boolean |
waitForChange(java.lang.String mainTimeoutProperty,
java.lang.String trailingTimeoutProperty)
Waits for the screen to change and the keyboard to unlock. |
boolean |
waitForChange(java.lang.String mainTimeoutProperty,
java.lang.String trailingTimeoutProperty,
java.lang.String tagProperty)
Waits for the tag to be received and the keyboard to unlock. |
boolean |
waitForChangeProperty(java.lang.String timeoutProperty,
java.lang.String tagProperty)
Waits for the tag to be received and the keyboard to unlock. |
boolean |
waitForPosition(int row,
int column,
java.lang.String value,
int mainTimeout,
int trailingTimeout)
Waits (in INTERNAL_WAIT millisecond intervals) for the value to appear at the given coordinates. |
boolean |
waitForPosition(com.jagacy.Location location,
java.lang.String value,
int mainTimeout,
int trailingTimeout)
Waits (in INTERNAL_WAIT millisecond intervals) for the value to appear at the given location. |
boolean |
waitForPosition(java.lang.String propertyPrefix,
int mainTimeout,
int trailingTimeout)
Waits (in INTERNAL_WAIT millisecond intervals) for the value to appear at the given coordinates. |
boolean |
waitForPosition(java.lang.String propertyPrefix,
java.lang.String value,
int mainTimeout,
int trailingTimeout)
Waits (in INTERNAL_WAIT millisecond intervals) for the value to appear at the given coordinates. |
boolean |
waitForPosition(java.lang.String propertyPrefix,
java.lang.String value,
java.lang.String mainTimeoutProperty,
java.lang.String trailingTimeoutProperty)
Waits (in INTERNAL_WAIT millisecond intervals) for the value to appear at the given coordinates. |
boolean |
waitForPositionProperty(java.lang.String propertyPrefix,
java.lang.String mainTimeoutProperty,
java.lang.String trailingTimeoutProperty)
Waits (in INTERNAL_WAIT millisecond intervals) for the value to appear at the given coordinates. |
Methods inherited from class com.jagacy.AbstractSession |
abort, close, createLocation, createLocation, finalize, getAttributeForPosition, getHeight, getLoggable, getLogger, getName, getProperties, getWidth, isInsertOn, logoff, logon, open, read, read, readAlarmCount, readCursor, readCursorLocation, readPosition, readPosition, readPosition, readRow, readScreen, readScreenText, waitForChange, waitForChange, waitForPosition, waitForPosition, waitForPosition, waitForPosition, waitForPosition, waitForPosition, waitForUnlock, waitForUnlock, writeAfterLabel, writeAfterLabel, writeAfterLabelProperty, writeCursor, writeCursor, writeCursor, writeKey, writeKey, writePosition, writePosition, writePosition, writePosition, writeProperty, writeString |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SessionVt(java.lang.String name) throws JagacyException
name
- The session name (also the name of the .properties file).
JagacyException
- If an error occurs.public SessionVt(java.lang.String name, java.lang.String host) throws JagacyException
name
- The session name (also the name of the .properties file).host
- The session's host.
JagacyException
- If an error occurs.public SessionVt(java.lang.String name, java.lang.String host, int port, java.lang.String terminal) throws JagacyException
name
- The session name (also the name of the .properties file).host
- The session's host.port
- The session's port number.terminal
- The session's terminal type.
JagacyException
- If an error occurs.public SessionVt(java.lang.String name, java.lang.String host, java.lang.String terminal) throws JagacyException
name
- The session name (also the name of the .properties file).host
- The session's host.terminal
- The session's terminal type.
JagacyException
- If an error occurs.public SessionVt(java.lang.String name, java.lang.String host, int port) throws JagacyException
name
- The session name (also the name of the .properties file).host
- The session's host.port
- The session's port number.
JagacyException
- If an error occurs.Method Detail |
protected UserInterface createUi() throws JagacyException
com.jagacy.AbstractSession
JagacyException
- If an error occurs.public void open(java.lang.String answerback) throws JagacyException
answerback
- The session's answerback string.
JagacyException
- If an error occurs.public boolean waitForChange(int mainTimeout, int trailingTimeout) throws JagacyException
mainTimeout
- Amount of time to wait (in milliseconds).trailingTimeout
- Amount of time to wait for trailing characters (in
milliseconds).
JagacyException
- If an error occurs.public boolean waitForChange(java.lang.String mainTimeoutProperty, java.lang.String trailingTimeoutProperty) throws JagacyException
mainTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).trailingTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).
JagacyException
- If an error occurs.public boolean waitForChange(int timeout, java.lang.String tag) throws JagacyException
timeout
- Amount of time to wait (in milliseconds).tag
- Tag to be received.
JagacyException
- If an error occurs.public boolean waitForChangeProperty(java.lang.String timeoutProperty, java.lang.String tagProperty) throws JagacyException
timeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).tagProperty
- Property to lookup.
JagacyException
- If an error occurs.public boolean waitForChange(int mainTimeout, int trailingTimeout, java.lang.String tag) throws JagacyException
mainTimeout
- Amount of time to wait (in milliseconds).trailingTimeout
- Amount of time to wait for trailing characters (in
milliseconds).tag
- Tag to be received.
JagacyException
- If an error occurs.public boolean waitForChange(java.lang.String mainTimeoutProperty, java.lang.String trailingTimeoutProperty, java.lang.String tagProperty) throws JagacyException
mainTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).trailingTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).tagProperty
- Property to lookup.
JagacyException
- If an error occurs.public boolean waitForPosition(int row, int column, java.lang.String value, int mainTimeout, int trailingTimeout) throws JagacyException
row
- Row (indexed from 0).column
- Column (indexed from 0).value
- Value to appear.mainTimeout
- Amount of time to wait (in milliseconds).trailingTimeout
- Amount of time to wait for trailing characters (in
milliseconds).
JagacyException
- If an error occurs.public boolean waitForPosition(com.jagacy.Location location, java.lang.String value, int mainTimeout, int trailingTimeout) throws JagacyException
location
- The location of the value.value
- Value to appear.mainTimeout
- Amount of time to wait (in milliseconds).trailingTimeout
- Amount of time to wait for trailing characters (in
milliseconds).
JagacyException
- If an error occurs.public boolean waitForPositionProperty(java.lang.String propertyPrefix, java.lang.String mainTimeoutProperty, java.lang.String trailingTimeoutProperty) throws JagacyException
<propertyPrefix>.row
<propertyPrefix>.column
<propertyPrefix>.value
propertyPrefix
- Prefix used to lookup properties.mainTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).trailingTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).
JagacyException
- If an error occurs.public boolean waitForPosition(java.lang.String propertyPrefix, int mainTimeout, int trailingTimeout) throws JagacyException
<propertyPrefix>.row
<propertyPrefix>.column
<propertyPrefix>.value
propertyPrefix
- Prefix used to lookup properties.mainTimeout
- Amount of time to wait (in milliseconds).trailingTimeout
- Amount of time to wait for trailing characters (in
milliseconds).
JagacyException
- If an error occurs.public boolean waitForPosition(java.lang.String propertyPrefix, java.lang.String value, java.lang.String mainTimeoutProperty, java.lang.String trailingTimeoutProperty) throws JagacyException
<propertyPrefix>.row
<propertyPrefix>.column
propertyPrefix
- Prefix used to lookup properties.value
- Value to appear.mainTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).trailingTimeoutProperty
- Property to lookup (if property ends with
'.seconds', value will be converted to milliseconds).
JagacyException
- If an error occurs.public boolean waitForPosition(java.lang.String propertyPrefix, java.lang.String value, int mainTimeout, int trailingTimeout) throws JagacyException
<propertyPrefix>.row
<propertyPrefix>.column
propertyPrefix
- Prefix used to lookup properties.value
- Value to appear.mainTimeout
- Amount of time to wait (in milliseconds).trailingTimeout
- Amount of time to wait for trailing characters (in
milliseconds).
JagacyException
- If an error occurs.public boolean isLedOn(int led) throws JagacyException
led
- The LED to check.
JagacyException
- If an error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |