# Deprecated API

## Contents

- Interfaces
- Classes
- Exception Classes
- Methods

Deprecated Interfaces
Interface
Description
org.jcsp.lang.BufferedChannelArrayFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.BufferedChannelFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.BufferedChannelIntArrayFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.BufferedChannelIntFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.ChannelArrayFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.ChannelFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.ChannelIntArrayFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.ChannelIntFactory
These channel factories are deprecated in favour of the new one2one() methods in the Channel class.
org.jcsp.lang.RejectableChannel
This channel is superceded by the poison mechanisms, please see `PoisonException`. It remains only because it is used by some of the networking features.
org.jcsp.lang.RejectableChannelInput
This channel is superceded by the poison mechanisms, please see `PoisonException`. It remains only because it is used by some of the networking features.
org.jcsp.lang.RejectableChannelOutput
This channel is superceded by the poison mechanisms, please see `PoisonException`. It remains only because it is used by some of the networking features.

Deprecated Classes
Class
Description
org.jcsp.lang.AltingChannelInputWrapper
There is no longer any need to use this class, after the 1.1 class reorganisation. Note that usually you do not need the absolute guarantee that this class provides - you can usually just cast the channel to an AltingChannelInput, which prevents you from accidentally writing to the channel. This class mainly exists for use by some of the org.jcsp.net classes, where the absolute guarantee that you cannot write to it is important.
org.jcsp.lang.ChannelInputWrapper
There is no longer any need to use this class, after the 1.1 class reorganisation.
org.jcsp.lang.ChannelInt
To create integer channels, use the methods in the Channel class.
org.jcsp.lang.ChannelOutputWrapper
There is no longer any need to use this class, after the 1.1 class reorganisation.
org.jcsp.lang.RejectableAltingChannelInput
This channel is superceded by the poison mechanisms, please see `PoisonException`
org.jcsp.lang.RejectableBufferedOne2AnyChannel
This channel is superceded by the poison mechanisms, please see `PoisonException`
org.jcsp.lang.RejectableBufferedOne2OneChannel
This channel is superceded by the poison mechanisms, please see `PoisonException`
org.jcsp.lang.RejectableOne2AnyChannel
This channel is superceded by the poison mechanisms, please see `PoisonException`. It remains only because it is used by some of the networking features.
org.jcsp.lang.RejectableOne2OneChannel
This channel is superceded by the poison mechanisms, please see `PoisonException`. It remains only because it is used by some of the networking features.

Deprecated Exception Classes
Exception Class
Description
org.jcsp.util.filter.PoisonFilterException
Use poison directly instead

Deprecated Methods
Method
Description
org.jcsp.lang.Channel.createAny2Any()
Use the `Channel.any2any()` method instead.
org.jcsp.lang.Channel.createAny2Any(int)
Use the `Channel.any2anyArray(int)` method instead.
org.jcsp.lang.Channel.createAny2Any(ChannelDataStore)
Use the `Channel.any2any(ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createAny2Any(ChannelDataStore, int)
Use the `Channel.any2anyArray(int,ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createAny2One()
Use the `Channel.any2one()` method instead.
org.jcsp.lang.Channel.createAny2One(int)
Use the `Channel.any2oneArray(int)` method instead.
org.jcsp.lang.Channel.createAny2One(ChannelDataStore)
Use the `Channel.any2one(ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createAny2One(ChannelDataStore, int)
Use the `Channel.any2oneArray(int,ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createOne2Any()
Use the `Channel.one2any()` method instead.
org.jcsp.lang.Channel.createOne2Any(int)
Use the `Channel.one2anyArray(int)` method instead.
org.jcsp.lang.Channel.createOne2Any(ChannelDataStore)
Use the `Channel.one2any(ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createOne2Any(ChannelDataStore, int)
Use the `Channel.one2anyArray(int,ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createOne2One()
Use the `Channel.one2one()` method instead.
org.jcsp.lang.Channel.createOne2One(int)
Use the `Channel.one2oneArray(int)` method instead.
org.jcsp.lang.Channel.createOne2One(ChannelDataStore)
Use the `Channel.one2one(ChannelDataStore)` method instead.
org.jcsp.lang.Channel.createOne2One(ChannelDataStore, int)
Use the `Channel.one2oneArray(int,ChannelDataStore)` method instead.
org.jcsp.lang.CSTimer.set(long)
Use `CSTimer.setAlarm(long)` - this name caused confusion with the idea of setting the current time (a concept that is not supported).
org.jcsp.lang.ProcessManager.stop()
org.jcsp.net.NodeAddressID.getStringForm()
This is going to be removed from the API. The purpose of this mechanism was so that channel information could be encoded into anonymous channels' channel names.