public static class Profile.Port
extends java.lang.Object
Constructor and Description |
---|
Port(java.lang.String name,
boolean publisher,
boolean subscriber,
int width,
int rate,
int type,
boolean input,
boolean output,
boolean multiport,
java.lang.String pubSubChannelName)
Create the port.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPubSubChannelName()
Get the channel name for the publisher/subscriber pattern.
|
boolean |
input()
Return whether the port is an input.
|
boolean |
multiport()
Return whether the port is a multiport.
|
java.lang.String |
name()
Return the name of the port.
|
boolean |
output()
Return whether the port is an output.
|
boolean |
publisher()
Return whether the port is an publisher port.
|
int |
rate()
Return whether the rate of the port.
|
boolean |
subscriber()
Return whether the port is an subscriber port.
|
int |
type()
Return whether the rate of the port.
|
int |
width()
Return whether the width of the port.
|
public Port(java.lang.String name, boolean publisher, boolean subscriber, int width, int rate, int type, boolean input, boolean output, boolean multiport, java.lang.String pubSubChannelName)
name
- The name of the port.publisher
- A flag that specifies whether it is a subscriber.subscriber
- A flag that specifies whether it is a publisher.width
- The width of the port.rate
- The rate of the porttype
- The code type of the port that can be mapped back to ptolemy typeinput
- A flag that specifies whether the port is an input port.output
- A flag that specifies whether the port is an output port.multiport
- A flag that specifies whether the port is multiportpubSubChannelName
- The namepublic java.lang.String getPubSubChannelName()
public boolean input()
public boolean multiport()
public java.lang.String name()
public boolean output()
public boolean publisher()
public boolean subscriber()
public int width()
public int rate()
public int type()