|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--de.tubs.macs.control.floor.FloorPolicy
|
+--de.tubs.macs.control.floor.FPAgenda
This is a floor control policy that passes the floor on in a fixed order
that is determined by the floor chair who passes a list of users to
this policy.
It's called "Agenda".
| Constructor Summary | |
FPAgenda()
|
|
| Method Summary | |
(package private) void |
exit()
Shutdown the policy. |
(package private) int |
getCapabilities()
Returns the capabilities of the policy. |
(package private) int |
getCategory()
Returns the category of the policy. |
(package private) Group |
getCurrentHolder()
Return current floor-holder. |
(package private) java.lang.String |
getDescription()
Return description of current floor passing policy. |
(package private) java.lang.String |
getName()
Return name of current floor passing policy. |
(package private) Group |
getNextHolder()
Return probable next floor-holder. |
(package private) java.util.Vector |
getUserRequests()
Returns a list of users that have requested the floor for this resource. |
(package private) void |
init(Session session,
FloorResource res,
Group users,
long res_id)
Initialise the policy with the specified information. |
(package private) boolean |
isCurrentHolder(ObjectID user)
Returns whether the specified user holds the floor. |
(package private) boolean |
maySetHolder(ObjectID user)
Returns whether the specified user may set a new floor holder. |
(package private) void |
passOn()
Perform action to pass on floor, according to policy. |
(package private) void |
release(ObjectID userid)
The specified user has released the floor. |
(package private) int |
request(ObjectID userid)
The specified user has requested the floor. |
(package private) boolean |
requestHolder(ObjectID user)
Request a new floor holder. |
(package private) boolean |
setHolder(ObjectID user)
Set user to be the new floor holder. |
(package private) boolean |
setUserlist(java.util.Vector ulist)
Set floor-queue for this policy. |
(package private) void |
userAdded()
Notify policy that a user has been added to end of users-group. |
(package private) void |
userRemoved(int index)
Notify policy that the user with the specified index will be removed from users-Vector immediately. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public FPAgenda()
| Method Detail |
void init(Session session,
FloorResource res,
Group users,
long res_id)
void exit()
int getCapabilities()
int getCategory()
boolean maySetHolder(ObjectID user)
boolean isCurrentHolder(ObjectID user)
Group getCurrentHolder()
Group getNextHolder()
java.lang.String getName()
java.lang.String getDescription()
boolean setUserlist(java.util.Vector ulist)
boolean requestHolder(ObjectID user)
boolean setHolder(ObjectID user)
void passOn()
void userAdded()
void userRemoved(int index)
java.util.Vector getUserRequests()
int request(ObjectID userid)
void release(ObjectID userid)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||