Package com.softwaremining.ui
Class ScreenClient
java.lang.Object
com.softwaremining.ui.ScreenClient
- All Implemented Interfaces:
IScreenClient
This class is used by program logic to communicate with standalone
screen server through network socket
-
Constructor Summary
ConstructorsConstructorDescriptionScreenClient(int taskId, List<IScreenInteraction> incomingQueue, List<IScreenInteraction> outgoingQueue) -
Method Summary
Modifier and TypeMethodDescriptionvoidcalled at the end of the program termination.intvoidquit()end program sessionreceiveAcceptResponse(String serviceName) method used internally by softwaremining framework read data from screen clientvoidsendDisplayRequest(DisplayRequest displayRequest) serialalize the displayRequest, and send it (thru tcp sockets) to the (web) server.voidsendException(ExceptionRequest exceptionRequest) voidsendReportFrame(ReportFrame reportFrame)
-
Constructor Details
-
ScreenClient
public ScreenClient(int taskId, List<IScreenInteraction> incomingQueue, List<IScreenInteraction> outgoingQueue)
-
-
Method Details
-
getTaskId
public int getTaskId() -
sendDisplayRequest
serialalize the displayRequest, and send it (thru tcp sockets) to the (web) server.- Specified by:
sendDisplayRequestin interfaceIScreenClient
-
receiveAcceptResponse
method used internally by softwaremining framework read data from screen client- Specified by:
receiveAcceptResponsein interfaceIScreenClient- Parameters:
serviceName- : full path of the BaseService: e.g. com.softwareMining.examples.Loan
-
quit
public void quit()Description copied from interface:IScreenClientend program session- Specified by:
quitin interfaceIScreenClient
-
sendException
- Specified by:
sendExceptionin interfaceIScreenClient
-
sendReportFrame
- Specified by:
sendReportFramein interfaceIScreenClient
-
forwardOnCompletionSendRequest
public void forwardOnCompletionSendRequest()called at the end of the program termination. Outstanding request is one created by psuedo-conversational application such as CICS ... a SendRequest is needed once the program completes.
-