|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcsp.net2.mobile.MobileChannelInput
public final class MobileChannelInput
| Constructor Summary | |
|---|---|
MobileChannelInput()
|
|
MobileChannelInput(NetworkMessageFilter.FilterTx encoder,
NetworkMessageFilter.FilterRx decoder)
|
|
| Method Summary | |
|---|---|
void |
destroy()
Destroys the Networked construct |
void |
endRead()
End an extended rendezvous. |
NetLocation |
getLocation()
Gets the networked location of the Networked construct |
void |
poison(int strength)
This injects poison into the channel. |
Object |
read()
Read an Object from the channel. |
void |
setDecoder(NetworkMessageFilter.FilterRx decoder)
Sets the underlying decoder for the channel |
Object |
startRead()
Begin an extended rendezvous read from the channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MobileChannelInput()
public MobileChannelInput(NetworkMessageFilter.FilterTx encoder,
NetworkMessageFilter.FilterRx decoder)
| Method Detail |
|---|
public void endRead()
ChannelInputstartRead.
endRead in interface ChannelInputpublic Object read()
ChannelInput
read in interface ChannelInputpublic Object startRead()
ChannelInputendRead.
Only then will the writer be released (from its
write method).
The writer is unaware of the extended nature of the communication.
The reader process must call
at some point after this function, otherwise the writer will not
be freed and deadlock will probably follow.
endRead
The reader process may perform any actions between calling
and
startRead, including communications
on other channels. Further communications on this channel, of course,
should not be made.
endRead
An extended rendezvous may be started after the channel's Guard
has been selected by an Alternative (i.e.
instead of
startRead).
read
startRead in interface ChannelInputpublic void poison(int strength)
Poisonable
poison in interface Poisonablestrength - the strength of the poison (must be >= 0).public void destroy()
Networked
destroy in interface Networkedpublic NetLocation getLocation()
Networked
getLocation in interface Networkedpublic void setDecoder(NetworkMessageFilter.FilterRx decoder)
NetChannelInput
setDecoder in interface NetChannelInputdecoder - The new decoder to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||