|
|||||||||||
| 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.
| Constructor Summary | |
SessionVt(java.lang.String name)
Creates a new session. |
|
SessionVt(java.lang.String name,
java.lang.String host)
Creates a new session. |
|
| Method Summary | |
boolean |
isLedOn(int led)
Determines if an LED is on or not. |
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 100 millisecond intervals) for the value to appear at the given coordinates. |
boolean |
waitForPosition(Location location,
java.lang.String value,
int mainTimeout,
int trailingTimeout)
Waits (in 100 millisecond intervals) for the value to appear at the given location. |
boolean |
waitForPosition(java.lang.String propertyPrefix,
int mainTimeout,
int trailingTimeout)
Waits (in 100 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 100 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 100 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 100 millisecond intervals) for the value to appear at the given coordinates. |
| 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.| Method Detail |
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(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 | ||||||||||