Class ScreenServer

java.lang.Object
com.softwaremining.ui.ScreenServer
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
TextUIServer, ThreadMultiplexor

public abstract class ScreenServer extends Object implements Runnable
Screen server side interface to Application. It starts the first Application Launcher Program within a Thread. Then it opens a socket listening to communication (DISPLAY and ACCEPT) from the program. It continues to loops listening for communication until a termination request (QuitRequest) is recieved. The following messages may be received:
DisplayRequest : Display information line/column number
AcceptRequest : Accept incoming requests at line/column number
SendRequest : send the buffered display/accept information to the Screen
QuitRequest : terminate this session
  • Constructor Details

  • Method Details

    • run

      public void run()
      Main method ... for more information please see the class documentation above
      Specified by:
      run in interface Runnable
    • getReturnCode

      public int getReturnCode()
    • getServiceName

      public String getServiceName()
    • getAcceptResponse

      public AcceptResponse getAcceptResponse()
    • getScreen

      public AbstractScreen getScreen()
    • wakeUpToProgram

      public abstract void wakeUpToProgram()
    • switchToUser

      public abstract void switchToUser()
    • getTargetInstance

      public abstract Service getTargetInstance()
      create an instance of the class to be run .
      Returns:
    • hasQuitedCics

      public boolean hasQuitedCics()
      For benefit of conversational CICS
      Returns: