org.universAAL.middleware.ui.impl
Class UIStrategyHandler
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
- All Implemented Interfaces:
- Runnable, SharedObjectListener, AALSpaceListener
- Direct Known Subclasses:
- UIStrategyCaller
public abstract class UIStrategyHandler
- extends UIStrategyCoordinatorMng
This part of the UIStrategy Stack deals only with communications between the UIHandler
s
and the IDialogManager
.
the messages exchaged are:
- userLogOn: notifies the
IDialogManager
when a user has logOn at a handler.
- NotifyHandler: the
IDialogManager
is sending a new UIRequest
or updating an
existing one.
- FinishDialog: the
UIHandler
notifies the IDialogManager
a user has finishied a dialog, the UIResponse
goes in this message.
- CutCall: this is a synchronous call, the bus is telling the
UIHandler
to derenderize a certain dialog, and it is expecting
(and waiting) for the dataRoot
of the Form
.
- 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 |
LAST_USED_HANDLER_MATCH_LEVEL_ADDITION
public static final int LAST_USED_HANDLER_MATCH_LEVEL_ADDITION
- Last used handler weight is same as the dialog privacy's one.
- See Also:
- Constant Field Values
lastUsedHandler
protected Map<String,String> lastUsedHandler
- To keep track of the last used handler per user.
runningDialogs
protected RunningDialogsManager runningDialogs
- The Dialogs Manager keeps track of which dialog is where
and what dialog is handling each handler.
UIStrategyHandler
public UIStrategyHandler(CommunicationModule commModule,
String name)
- Parameters:
commModule
- name
-
UIStrategyHandler
public UIStrategyHandler(CommunicationModule commModule)
- Parameters:
commModule
-
start
public void start()
-
- Overrides:
start
in class CoordinatedRegistrationManagement
cutDialog
protected Resource cutDialog(String handlerID,
String dialogID)
notifyCallerDialogSubmitted
protected abstract void notifyCallerDialogSubmitted(UIResponse response)
- check sender and if local send it if not send message.
- Parameters:
response
-
close
public void close()
-
- Overrides:
close
in class CoordinatedRegistrationManagement
peerLost
public void peerLost(PeerCard peer)
-
- Specified by:
peerLost
in interface AALSpaceListener
- Overrides:
peerLost
in class CoordinatedStrategy
lostCoordinator
protected void lostCoordinator()
- on Coordination lost: reschedule reRegistration.
- Overrides:
lostCoordinator
in class CoordinatedStrategy
Copyright © 2014 universAAL Consortium. All Rights Reserved.