Interface IPlotRMI

All Superinterfaces:
PlotService, Remote
All Known Implementing Classes:
RMIPlotServer

public interface IPlotRMI extends Remote, PlotService
  • Method Summary

    Modifier and Type
    Method
    Description
    getData(String guiName)
    This method should return the plotData which is currently connected to a particular GUI
    Return a list of all the names known to the plot server.
    This method allows for interested parties to get relevant GUI information about a particular GUI panel
    boolean
     
    void
    setData(String guiName, DataBean plotData)
    This method should set the data that is to be plotted on the client of a specific name
    void
    updateData(String guiName)
    This method should report to all observers that there is some data available on the server for plotting.
    void
    updateGui(String guiName, GuiBean guiData)
    This method should be called whenever some GUI information changes, this will then set the GUI's bean which contains all the state information, so that it can be obtained from other GUIs and interested parties.
  • Method Details

    • updateGui

      void updateGui(String guiName, GuiBean guiData) throws Exception
      Description copied from interface: PlotService
      This method should be called whenever some GUI information changes, this will then set the GUI's bean which contains all the state information, so that it can be obtained from other GUIs and interested parties. This also fires off a message to all observers to let them know there has been a change of the GUI data, and this information is also sent with the update
      Specified by:
      updateGui in interface PlotService
      Parameters:
      guiName - The name of the GUI which is being updated
      guiData - The data which specifies that GUI panel
      Throws:
      Exception - If there is a problem with communication with the object.
    • setData

      void setData(String guiName, DataBean plotData) throws Exception
      Description copied from interface: PlotService
      This method should set the data that is to be plotted on the client of a specific name
      Specified by:
      setData in interface PlotService
      Parameters:
      guiName - The name of the GUI panel to plot to
      plotData - The data which requires plotting (can be null to reset server's cached data)
      Throws:
      Exception - If there is a problem with communication with the object.
    • updateData

      void updateData(String guiName) throws Exception
      Description copied from interface: PlotService
      This method should report to all observers that there is some data available on the server for plotting. It just sends out the name of the panel for which additional data is available, and it is up to the specific observers as to whether they try to retrieve that data or not using the getPlotData method
      Specified by:
      updateData in interface PlotService
      Parameters:
      guiName -
      Throws:
      Exception
    • getGuiState

      GuiBean getGuiState(String guiName) throws Exception
      Description copied from interface: PlotService
      This method allows for interested parties to get relevant GUI information about a particular GUI panel
      Specified by:
      getGuiState in interface PlotService
      Parameters:
      guiName - The name of the GUI panel from which the data is to be retrieved
      Returns:
      The data which specifies the requested GUI panels attributes
      Throws:
      Exception - If there is a problem with communication with the object.
    • isServerLocal

      boolean isServerLocal() throws Exception
      Specified by:
      isServerLocal in interface PlotService
      Returns:
      true if plot server is local (i.e. sees the same file system)
      Throws:
      Exception - If there is a problem with communication with the object.
    • getGuiNames

      String[] getGuiNames() throws Exception
      Description copied from interface: PlotService
      Return a list of all the names known to the plot server. That is any guiName that has a data or gui bean
      Specified by:
      getGuiNames in interface PlotService
      Returns:
      the list of names
      Throws:
      Exception - If there is a problem with communication with the object.
    • getData

      DataBean getData(String guiName) throws Exception
      Description copied from interface: PlotService
      This method should return the plotData which is currently connected to a particular GUI
      Specified by:
      getData in interface PlotService
      Parameters:
      guiName - the name of the GUI which is requesting the data, or the GUI name of the data which a third party is trying to look at
      Returns:
      The GUI data for the named GUI
      Throws:
      Exception - If there is a problem with communication with the object.