Package se.sics.kompics
Class JavaPort<P extends PortType>
java.lang.Object
se.sics.kompics.PortCore<P>
se.sics.kompics.JavaPort<P>
public class JavaPort<P extends PortType> extends PortCore<P>
The
PortCore
class.- Version:
- $Id$
- Author:
- Cosmin Arad <[email protected]>, Jim Dowling <[email protected]>, Lars Kroll <[email protected]>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addChannel(ChannelCore<P> channel)
void
addChannel(ChannelCore<P> channel, ChannelSelector<?,?> selector)
void
cleanChannels()
void
cleanEvents()
<E extends KompicsEvent>
voiddoSubscribe(Handler<E> handler)
void
doSubscribe(MatchedHandler<?,?,?> handler)
void
doTrigger(KompicsEvent event, int wid, ChannelCore<?> channel)
trigger event on this portvoid
doTrigger(KompicsEvent event, int wid, ComponentCore component)
trigger event on this portvoid
enqueue(KompicsEvent event)
boolean
equals(Object obj)
List<Channel<P>>
findChannelsTo(PortCore<P> port)
PortCore<P>
getPair()
void
removeChannel(ChannelCore<P> channel)
void
setPair(PortCore<P> pair)
-
Constructor Details
-
Method Details
-
setPair
- Parameters:
pair
- complement port
-
addChannel
-
addChannel
-
removeChannel
-
doSubscribe
-
doSubscribe
-
doTrigger
Description copied from interface:Port
trigger event on this port- Parameters:
event
- to be triggeredwid
- ?channel
- that triggered the event
-
doTrigger
Description copied from interface:Port
trigger event on this port- Parameters:
event
- to be triggeredwid
- ?component
- that triggered the event
-
enqueue
-
equals
-
getPair
- Returns:
- complement port this one is connected to (if any)
-
cleanChannels
- Specified by:
cleanChannels
in classPortCore<P extends PortType>
-
cleanEvents
- Specified by:
cleanEvents
in classPortCore<P extends PortType>
-
findChannelsTo
- Specified by:
findChannelsTo
in classPortCore<P extends PortType>
-