com.wrq.vhi.script.api.command
Class WriteVariableToTerminal

java.lang.Object
  extended by com.wrq.vhi.script.api.command.Command
      extended by com.wrq.vhi.script.api.command.WriteVariableToTerminal

public class WriteVariableToTerminal
extends Command

A class that represents a VHI WriteVariableToTerminal command.

See Also:
CommandList, HostSession.executeCommandList(com.wrq.vhi.script.api.command.CommandList), HostSession.writeVariableToTerminal(java.lang.String, int, boolean, int)

Constructor Summary
WriteVariableToTerminal(java.lang.String variable, int maxLength, boolean erase, int waitForEcho)
          Constructs a new WriteVarToTerminal command.
 
Method Summary
 int getMaxLength()
          Gets the max length.
 java.lang.String getName()
          Gets the command name.
 java.lang.String getVariable()
          Gets the variable name.
 int getWaitForEcho()
          Gets the wait for echo mode.
 boolean isErase()
          Gets the erase flag.
 
Methods inherited from class com.wrq.vhi.script.api.command.Command
isValidEchoType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteVariableToTerminal

public WriteVariableToTerminal(java.lang.String variable,
                               int maxLength,
                               boolean erase,
                               int waitForEcho)
Constructs a new WriteVarToTerminal command.

Parameters:
variable - name of variable to be read.
maxLength - the maximum number of characters to write
erase - if true and if the maxLength of the string contained in variable is less than maxLength, pad the value written with spaces until maxLength characters have been written.
waitForEcho - type of wait for echo to perform. See HostSession.writeVariableToTerminal(java.lang.String, int, boolean, int) for values.
Method Detail

getVariable

public java.lang.String getVariable()
Gets the variable name.

Returns:
name of variable to be read

getMaxLength

public int getMaxLength()
Gets the max length.

Returns:
the maximum number of characters to write

isErase

public boolean isErase()
Gets the erase flag.

Returns:
if true and if the maxLength of the string contained in variable is less than maxLength, pad the value written with spaces until maxLength characters have been written.

getWaitForEcho

public int getWaitForEcho()
Gets the wait for echo mode.

Returns:
type of wait for echo to perform. See HostSession.transmit(java.lang.String).

getName

public java.lang.String getName()
Gets the command name.

Specified by:
getName in class Command
Returns:
the command name