fi.hu.cs.ttk91
Interface TTK91Application

All Known Implementing Classes:
Application

public interface TTK91Application


Method Summary
 java.lang.String readCrt()
           
 java.lang.String readStdOut()
           
 void setKbd(java.lang.String input)
          sets the keyboard input for the program.
 void setStdIn(java.lang.String fileContent)
          sets the stdin input for the program This input survives the run, so if run again program will use the same input again.
 

Method Detail

readStdOut

public java.lang.String readStdOut()
Returns:
returns the program output in stdout and empties it

readCrt

public java.lang.String readCrt()
Returns:
returns the program output in crt and empties it

setKbd

public void setKbd(java.lang.String input)
sets the keyboard input for the program. This input survives the run, so if run again program will use the same input again. input string must be feed of integers delimeted with ' ', '\t', '\r', '\n', ',', '.', ':' or ';'. if flawed no arguments contained are used.

Throws:
java.lang.IllegalArgumentException - if input string is invalid.

setStdIn

public void setStdIn(java.lang.String fileContent)
sets the stdin input for the program This input survives the run, so if run again program will use the same input again. input string must be feed of integers delimeted with ' ', '\t', '\r', '\n', ',', '.', ':' or ';'. if flawed no arguments contained are used.

Throws:
java.lang.IllegalArgumentException - if input string is invalid.