Package se.sics.kompics.network.virtual
Class VirtualNetworkChannel
java.lang.Object
se.sics.kompics.network.virtual.VirtualNetworkChannel
- All Implemented Interfaces:
Channel<Network>
,ChannelCore<Network>
public class VirtualNetworkChannel extends Object implements ChannelCore<Network>
A network channel that allows switching on a virtual node id.
- Author:
- Lars Kroll <[email protected]>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VirtualNetworkChannel.DefaultDeadLetterComponent
-
Field Summary
-
Method Summary
Modifier and Type Method Description void
addConnection(byte[] id, Negative<Network> destinationPort)
static VirtualNetworkChannel
connect(Positive<Network> sourcePort, ChannelSelector<?,?> selector, ComponentProxy parent)
static VirtualNetworkChannel
connect(Positive<Network> sourcePort, ComponentProxy parent)
static VirtualNetworkChannel
connect(Positive<Network> sourcePort, Negative<Network> deadLetterBox)
static VirtualNetworkChannel
connect(Positive<Network> sourcePort, Negative<Network> deadLetterBox, ChannelSelector<?,?> selector)
void
disconnect()
void
forwardToNegative(KompicsEvent event, int wid)
void
forwardToPositive(KompicsEvent event, int wid)
Network
getPortType()
boolean
hasNegativePort(Port<Network> port)
boolean
hasPositivePort(Port<Network> port)
boolean
isDestroyed()
void
removeConnection(byte[] id, Negative<Network> destinationPort)
-
Method Details
-
hasPositivePort
- Specified by:
hasPositivePort
in interfaceChannelCore<Network>
-
hasNegativePort
- Specified by:
hasNegativePort
in interfaceChannelCore<Network>
-
disconnect
- Specified by:
disconnect
in interfaceChannel<Network>
-
connect
-
connect
-
connect
public static VirtualNetworkChannel connect(Positive<Network> sourcePort, ChannelSelector<?,?> selector, ComponentProxy parent) -
connect
public static VirtualNetworkChannel connect(Positive<Network> sourcePort, Negative<Network> deadLetterBox, ChannelSelector<?,?> selector) -
addConnection
-
removeConnection
-
isDestroyed
- Specified by:
isDestroyed
in interfaceChannelCore<Network>
-
forwardToNegative
- Specified by:
forwardToNegative
in interfaceChannelCore<Network>
-
forwardToPositive
- Specified by:
forwardToPositive
in interfaceChannelCore<Network>
-
getPortType
- Specified by:
getPortType
in interfaceChannel<Network>
-