Package org.jcsp.net
Class NetAltingChannelInput
java.lang.Object
org.jcsp.lang.Guard
org.jcsp.lang.AltingChannelInput
org.jcsp.lang.AltingChannelInputWrapper
org.jcsp.net.NetAltingChannelInput
- All Implemented Interfaces:
ChannelInput,Poisonable,NetChannelInput,Networked
- Direct Known Subclasses:
MigratableAltingChannelInput
public abstract class NetAltingChannelInput
extends AltingChannelInputWrapper
implements NetChannelInput
An abstract class that is sub-classed by classes whose instances
should be networked channel ends that can be used as an
objects.
AltingChannelInput
This class does not need to be sub-classed by JCSP users.
- Author:
- Quickstone Technologies Limited
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructs a channel end without supplying the actual channel to use.protectedNetAltingChannelInput(AltingChannelInput channel) Constructs a channel end and takes the actual channel to use to deliver the data. -
Method Summary
Methods inherited from class org.jcsp.lang.AltingChannelInputWrapper
endRead, getChannel, pending, poison, read, setChannel, startReadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jcsp.lang.ChannelInput
endRead, read, startReadMethods inherited from interface org.jcsp.net.NetChannelInput
destroyReader, getFactoryClassMethods inherited from interface org.jcsp.net.Networked
getChannelLocationMethods inherited from interface org.jcsp.lang.Poisonable
poison
-
Constructor Details
-
NetAltingChannelInput
Constructs a channel end and takes the actual channel to use to deliver the data.
- Parameters:
channel- the actual channel used to deliver data to the user.
-
NetAltingChannelInput
protected NetAltingChannelInput()Constructs a channel end without supplying the actual channel to use.
setChannel(AltingChannelInput)should be called before the channel end is actually used.
-