public interface IUIRequestPool
UIRequest
s. The pool consists of 2 sets, one of active
UIRequest
s and a second with suspended UIRequest
s. Different
implementations will influence on the Next UIRequest
selection,
implementing for example priority queues.Modifier and Type | Method and Description |
---|---|
void |
add(UIRequest UIReq)
Add a new
UIRequest . |
void |
close(String UIReqID)
Remove the
UIRequest corresponding with UIReqID from any set it
belongs to. |
UIRequest |
get(String UIReqID)
get the
UIRequest corresponding to the UIReqID. |
UIRequest |
getCurrent()
Get the currently selected
UIRequest . |
UIRequest |
getNextUIRequest()
If
hasToChange() then get the next
UIRequest , updating the current. |
boolean |
hasToChange()
Whether the current
UIRequest has to change. |
Collection<UIRequest> |
listAllActive()
Get the Active
UIRequest set. |
Collection<UIRequest> |
listAllSuspended()
Get the Suspended
UIRequest set. |
void |
removeAll()
Remove all entries in all sets.
|
void |
suspend(String UIReqID)
Move a
UIRequest from the active set to the suspendend one. |
void |
unsuspend(String UIReqID)
Move a
UIRequest from the suspendend set to the active one. |
void close(String UIReqID)
UIRequest
corresponding with UIReqID from any set it
belongs to. if the UIRequest
is the current request, then after
this call getCurrent()
== null.UIReqID
- UIRequest getCurrent()
UIRequest
.UIRequest
null if sets are empty.UIRequest getNextUIRequest()
hasToChange()
then get the next
UIRequest
, updating the current. After this call
getNextUIRequest()
==
getCurrent()
UIRequest
to be current.boolean hasToChange()
UIRequest
has to change.Collection<UIRequest> listAllActive()
UIRequest
set.UIRequest
sCollection<UIRequest> listAllSuspended()
UIRequest
set.UIRequest
void removeAll()
void suspend(String UIReqID)
UIRequest
from the active set to the suspendend one. If
current is suspended then getCurrent()
== nullUIReqID
- void unsuspend(String UIReqID)
UIRequest
from the suspendend set to the active one.UIReqID
- Copyright © 2018 universAAL Consortium. All rights reserved.