org.universAAL.samples.uibus
Class OPublisher

Package class diagram package OPublisher
java.lang.Object
  extended by org.universAAL.middleware.bus.member.BusMember
      extended by org.universAAL.middleware.bus.member.Caller
          extended by org.universAAL.middleware.ui.UICaller
              extended by org.universAAL.samples.uibus.OPublisher

public class OPublisher
extends UICaller


Field Summary
 
Fields inherited from class org.universAAL.middleware.bus.member.BusMember
busResourceURI, owner, theBus
 
Constructor Summary
protected OPublisher(ModuleContext context)
           
 
Method Summary
 void communicationChannelBroken()
          Method to be called when the communication of the UICaller with the IDialogManager is lost.
 void dialogAborted(String dialogID, Resource data)
          Dialog aborted.
 Form getAllRespForm(String[] formsNames, String[] formsResults)
           
 void handleUIResponse(UIResponse event)
          Handle UIResponse - that comes from UIHandler carrying user input.
 void showAllRespDialog(User user, String[] formsNames, String[] formsResults)
           
 long showDynamicDialog(User user, int size)
           
 long showRandomBurst(User user, int size)
           
 void showRandomDialog(User user)
           
 
Methods inherited from class org.universAAL.middleware.ui.UICaller
abortDialog, adaptationParametersChanged, busDyingOut, dialogSuspended, getMyID, handleReply, resumeDialog, sendUIRequest
 
Methods inherited from class org.universAAL.middleware.bus.member.BusMember
close, getType, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OPublisher

protected OPublisher(ModuleContext context)
Method Detail

communicationChannelBroken

public void communicationChannelBroken()
Description copied from class: UICaller
Method to be called when the communication of the UICaller with the IDialogManager is lost. Any pending request might be resend at this point. All affected pending dialogs will be aborted right after this call (with null data).

Specified by:
communicationChannelBroken in class UICaller

showRandomDialog

public void showRandomDialog(User user)

showRandomBurst

public long showRandomBurst(User user,
                            int size)

showDynamicDialog

public long showDynamicDialog(User user,
                              int size)

showAllRespDialog

public void showAllRespDialog(User user,
                              String[] formsNames,
                              String[] formsResults)

getAllRespForm

public Form getAllRespForm(String[] formsNames,
                           String[] formsResults)

dialogAborted

public void dialogAborted(String dialogID,
                          Resource data)
Description copied from class: UICaller
Dialog aborted.

Specified by:
dialogAborted in class UICaller
Parameters:
dialogID - the dialog id
data - the data collected up until abortion, it might be null if the data could not be retrieved.

handleUIResponse

public void handleUIResponse(UIResponse event)
Description copied from class: UICaller
Handle UIResponse - that comes from UIHandler carrying user input.

Specified by:
handleUIResponse in class UICaller
Parameters:
event - the UIResponse


Copyright © 2014 universAAL Consortium. All Rights Reserved.