Package org.jcsp.net
Interface NetChannelOutput
-
- All Superinterfaces:
ChannelOutput,Networked,Poisonable
- All Known Subinterfaces:
MigratableChannelOutput,NetSharedChannelOutput
- All Known Implementing Classes:
Any2NetChannel,MigratableChannelOutputImpl,One2NetChannel
public interface NetChannelOutput extends ChannelOutput, Networked
An interface that should be implemented by
ChannelOutputobjects which are used for transmitting over the network.As well as usefully combining the
NetworkedandChannelOutputinterfaces, this interface adds arecreate()that requests the implementing class should reinitialize itself.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddestroyWriter()Destroys the channel writer end and frees all the underlying JCSP.NET resources.java.lang.ClassgetFactoryClass()Returns the factory class used for constructing this channel end object.voidrecreate()Requests that the instance of the implementing class should reinitialize itself.voidrecreate(NetChannelLocation newLoc)Requests that the instance of the implementing class should reinitialize itself with a new location.-
Methods inherited from interface org.jcsp.lang.ChannelOutput
write
-
Methods inherited from interface org.jcsp.net.Networked
getChannelLocation
-
Methods inherited from interface org.jcsp.lang.Poisonable
poison
-
-
-
-
Method Detail
-
recreate
void recreate()
Requests that the instance of the implementing class should reinitialize itself.
-
recreate
void recreate(NetChannelLocation newLoc)
Requests that the instance of the implementing class should reinitialize itself with a new location.
- Parameters:
newLoc- the new location.
-
destroyWriter
void destroyWriter()
Destroys the channel writer end and frees all the underlying JCSP.NET resources.
-
getFactoryClass
java.lang.Class getFactoryClass()
Returns the factory class used for constructing this channel end object.
- Returns:
- the
Classof the
-
-