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
ConstructorDescriptionScreenClient
(int taskId, List<IScreenInteraction> incomingQueue, List<IScreenInteraction> outgoingQueue) -
Method Summary
Modifier and TypeMethodDescriptionvoid
called at the end of the program termination.int
void
quit()
end program sessionreceiveAcceptResponse
(String serviceName) method used internally by softwaremining framework read data from screen clientvoid
sendDisplayRequest
(DisplayRequest displayRequest) serialalize the displayRequest, and send it (thru tcp sockets) to the (web) server.void
sendException
(ExceptionRequest exceptionRequest) void
sendReportFrame
(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:
sendDisplayRequest
in interfaceIScreenClient
- Parameters:
displayRequest
-
-
receiveAcceptResponse
method used internally by softwaremining framework read data from screen client- Specified by:
receiveAcceptResponse
in interfaceIScreenClient
- Parameters:
serviceName
- : full path of the BaseService: e.g. com.softwareMining.examples.Loan
-
quit
public void quit()Description copied from interface:IScreenClient
end program session- Specified by:
quit
in interfaceIScreenClient
-
sendException
- Specified by:
sendException
in interfaceIScreenClient
-
sendReportFrame
- Specified by:
sendReportFrame
in 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.
-