public class Channel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Port |
_port
The downstream actor port.
|
protected IORelation |
_relation
The relation that connects the two actors.
|
Constructor and Description |
---|
Channel(Port port,
IORelation relation)
Construct a new Channel from the relation and the input port of an actor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Return true if the argument is an instance of Channel
and wraps the same port and relation.
|
int |
hashCode()
Return a hash code value for the channel.
|
protected Port _port
protected IORelation _relation
public Channel(Port port, IORelation relation)
port
- The input port of the downstream actor.relation
- The relation that connects the output port of the upstream
actor and the input port of the downstream actor.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other channel.public int hashCode()
hashCode
in class java.lang.Object