|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.slides.DiscoverableScreenObject
public class DiscoverableScreenObject
Class DiscoverableScreenObject provides an exported discoverable screen
object in the Slides application. A discoverable screen object is a screen
object that can be discovered dynamically by other devices. See interface
ScreenDiscovery
for a description of the
screen discovery process.
An instance of class DiscoverableScreenObject performs periodic
report() method invocations and handles request() method
invocations on behalf of a certain theatre. The theatre is specified by a
multihandle for interface Screen
.
Field Summary |
---|
Fields inherited from interface edu.rit.slides.ScreenDiscovery |
---|
LEASE_TIME |
Constructor Summary | |
---|---|
DiscoverableScreenObject()
Construct a new discoverable screen object. |
Method Summary | |
---|---|
void |
associate(Screen theHandle,
String theName)
Associate this discoverable screen object with the given theatre. |
void |
report(Screen theHandle,
String theName)
Report that a theatre exists. |
void |
request()
Request that theatres report their presence quickly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscoverableScreenObject()
ScreenDiscovery
or interface
DiscoverableScreen
. Initially, this
discoverable screen object is not associated with a theatre.
Method Detail |
---|
public void associate(Screen theHandle, String theName)
Screen
multihandle for the theatre, and this discoverable
screen object starts reporting that theatre's presence. If
theHandle is null, this discoverable screen object stops
reporting the theatre's presence.
theHandle
- The
Screen
multihandle used for
performing method calls on all screen objects in the theatre.theName
- Theatre name.
NullPointerException
- (unchecked exception) Thrown if theHandle is not null and
theName is null.public void report(Screen theHandle, String theName)
report
in interface ScreenDiscovery
theHandle
- The
Screen
multihandle used for
performing method calls on all screen objects in the theatre.theName
- Theatre name.public void request()
request
in interface DiscoverableScreen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |