|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--de.tubs.macs.control.floor.Floor
MacsApplications perform Floor-actions through objects of this class. An object of this class is instantiated for every resource that an application wishes to apply floor control upon.
| Field Summary | |
static int |
CATEGORY_ALL
|
static int |
CATEGORY_EXPLICIT
|
static int |
CATEGORY_FREE
|
static int |
CATEGORY_IMPLICIT
|
| Constructor Summary | |
Floor(Session session,
MacsApplication app,
java.lang.String res_name)
Construct a new Floor-object for the specified
Session, MacsApplication and resource, allowing all policies. |
|
Floor(Session session,
MacsApplication app,
java.lang.String res_name,
boolean isAudio)
Construct a new Floor-object for the specified
Session, MacsApplication and resource, specifying it as an audio-resource. |
|
Floor(Session session,
MacsApplication app,
java.lang.String res_name,
int policyFilter)
Construct a new Floor-object for the specified
Session, MacsApplication and resource, filtering out certain policies. |
|
Floor(Session session,
MacsApplication app,
java.lang.String res_name,
int policyFilter,
boolean isAudio)
Construct a new Floor-object for the specified
Session, MacsApplication and resource, specifying it as an audio-resource
and filtering out certain policies. |
|
| Method Summary | |
void |
exit()
Deregister the resource this Floor-object has been created for. |
java.util.Vector |
getCurrentHolder()
Returns the Users who are the current Floor-holders for the resource this Floor-object has been created for. |
long |
getId()
Returns the numerical id of this Floor-object. |
long |
getRemainingTime()
Returns the remaining time for the current Floor Holder to keep the floor for this resource. |
void |
release()
Release the floor for the resource this Floor-object has
been created for. |
void |
request()
Request the floor for the resource this Floor-object has
been created for. |
void |
resetTimeout()
Reset the timeout for this resource to indicate that it's still being used. |
void |
setActive()
Declare that this application is able to write to this resource. |
void |
setInactive()
Declare that this application is not (any longer?) able to write to this resource. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final int CATEGORY_FREE
public static final int CATEGORY_EXPLICIT
public static final int CATEGORY_IMPLICIT
public static final int CATEGORY_ALL
| Constructor Detail |
public Floor(Session session,
MacsApplication app,
java.lang.String res_name)
Floor-object for the specified
Session, MacsApplication and resource, allowing all policies.
public Floor(Session session,
MacsApplication app,
java.lang.String res_name,
int policyFilter)
Floor-object for the specified
Session, MacsApplication and resource, filtering out certain policies.
public Floor(Session session,
MacsApplication app,
java.lang.String res_name,
boolean isAudio)
Floor-object for the specified
Session, MacsApplication and resource, specifying it as an audio-resource.
public Floor(Session session,
MacsApplication app,
java.lang.String res_name,
int policyFilter,
boolean isAudio)
Floor-object for the specified
Session, MacsApplication and resource, specifying it as an audio-resource
and filtering out certain policies.| Method Detail |
public void setActive()
public void setInactive()
public void exit()
Floor-object has been created for.public void resetTimeout()
public long getId()
Floor-object.public java.util.Vector getCurrentHolder()
Floor-object has been created for.public long getRemainingTime()
public void request()
Floor-object has
been created for.public void release()
Floor-object has
been created for.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||