Package org.jcsp.net
Interface NetConnectionFactory
- All Known Implementing Classes:
StandardNetConnectionFactory
public interface NetConnectionFactory
This class should be implemented by classes wishing to act
as factories for creating Networked ConnectionServer
and ConnectionClient objects.
An implementation is provided, see
.
StandardNetConnectionFactory
-
Method Summary
Modifier and TypeMethodDescriptioncreateAny2Net(NetChannelLocation serverLoc) Constructs aNetSharedAltingConnectionClientobject.Constructs aNetSharedConnectionServerobject.Constructs aNetAltingConnectionServerobject.createOne2Net(NetChannelLocation serverLoc) Constructs aNetAltingConnectionClientobject.
-
Method Details
-
createNet2One
NetAltingConnectionServer createNet2One()Constructs a
NetAltingConnectionServerobject.- Returns:
- the constructed
NetAltingConnectionServerobject.
-
createNet2Any
NetSharedConnectionServer createNet2Any()Constructs a
NetSharedConnectionServerobject.- Returns:
- the constructed
NetSharedConnectionServerobject.
-
createOne2Net
Constructs a
NetAltingConnectionClientobject.- Returns:
- the constructed
NetAltingConnectionClientobject.
-
createAny2Net
Constructs a
NetSharedAltingConnectionClientobject.- Returns:
- the constructed
NetSharedAltingConnectionClientobject.
-