org.universAAL.middleware.ui.impl
Class UIStrategyCaller
java.lang.Object
java.lang.Thread
org.universAAL.middleware.bus.model.BusStrategy
org.universAAL.middleware.ui.impl.generic.EventBasedStrategy
org.universAAL.middleware.ui.impl.generic.CallBasedStrategy
org.universAAL.middleware.ui.impl.generic.CoordinatedStrategy
org.universAAL.middleware.ui.impl.generic.CoordinatedRegistrationManagement
org.universAAL.middleware.ui.impl.UIStrategyCoordinatorMng
org.universAAL.middleware.ui.impl.UIStrategyHandler
org.universAAL.middleware.ui.impl.UIStrategyCaller
- All Implemented Interfaces:
- Runnable, SharedObjectListener, AALSpaceListener
public class UIStrategyCaller
- extends UIStrategyHandler
This part of the UIStrategy Stack deals only with communications between the UICaller
s
and the IDialogManager
.
the messages exchaged are:
- Request: the
UICaller
notifies the IDialogManager
there is a new UIRequest
it
whants to display to a user. When ready a UIResponse will be delivered.
- suspend a dialog: the
UICaller
notifies the IDialogManager
a dialog should be suspendend for later resume.
- resume a dialog: a notification for resuming a previously suspended dialog.
- abort a dialog: a dialog is no longer valid the
UICaller
calls for its removal, the data inputed until cancelation
will be delibered. Aborts may also be instructed by the IDialogManager
in representation of the user.
- Author:
- amedrano
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
UIStrategyCaller
public UIStrategyCaller(CommunicationModule commModule,
String name)
- Parameters:
commModule
- name
-
UIStrategyCaller
public UIStrategyCaller(CommunicationModule commModule)
- Parameters:
commModule
-
start
public void start()
-
- Overrides:
start
in class UIStrategyHandler
notifyCallerDialogSubmitted
protected void notifyCallerDialogSubmitted(UIResponse response)
-
- Specified by:
notifyCallerDialogSubmitted
in class UIStrategyHandler
close
public void close()
-
- Overrides:
close
in class UIStrategyHandler
abortAllPendingRequestsFor
public void abortAllPendingRequestsFor(UICaller caller)
- A caller is unregistering, and it will be no more reachable, all of its
pending requests must be aborted.
- Parameters:
caller
-
peerLost
public void peerLost(PeerCard peer)
- Coordinator will abort all pending request of the lost peer
- Specified by:
peerLost
in interface AALSpaceListener
- Overrides:
peerLost
in class UIStrategyHandler
lostCoordinator
protected void lostCoordinator()
- Peer will notify that communication channel is broken
and then notify an abort on all pending requests, for all local
UICaller
s
- Overrides:
lostCoordinator
in class UIStrategyHandler
Copyright © 2014 universAAL Consortium. All Rights Reserved.