public class SyntacticPort extends ComponentPort
red |
red (shaver) |
Modifier and Type | Class and Description |
---|---|
static class |
SyntacticPort.IOType
Represent IO type for ports.
|
NamedObj.ContainedObjectsIterator
_insideLinks, _relationsList
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
SyntacticPort()
Construct SyntacticPort.
|
SyntacticPort(SyntacticNode container,
Port port,
boolean direction,
java.lang.String name)
Construct SyntacticPort with given container and name.
|
SyntacticPort(Workspace workspace)
Construct SyntacticPort with given workspace.
|
Modifier and Type | Method and Description |
---|---|
int |
getChannel()
Get the channel of the represented port.
|
SyntacticPort |
getConnectedPort()
Get the connected port from a given port.
|
SyntacticNode |
getNode()
Get node in which port is contained.
|
Port |
getRepresentedPort()
Get the port represented by the Syntactic Port.
|
SyntacticPort.IOType |
getType()
Gets the IOType of the port.
|
boolean |
isEmpty()
Decide whether the port is disconnected.
|
boolean |
isInput()
Decide whether the port is representationally an input port.
|
boolean |
isOutput()
Decide whether the port is representationally an output port.
|
static boolean |
isPortExterior(Port port,
CompositeEntity entity)
Decide whether a port is exterior in the given entity.
|
boolean |
isRepresentative()
Decide whether the port represents an actual port.
|
static SyntacticPort.IOType |
portType(Port port)
Gets the IOType of a given port.
|
static SyntacticPort.IOType |
portType(Port port,
CompositeEntity entity)
Gets the IOType of a given port with reference to a composite entity.
|
static java.lang.Integer |
portWidth(Port port)
Gets the width of a Port.
|
void |
setChannel(int channel)
Set the channel of the represented port.
|
_checkContainer, _checkLiberalLink, _checkLink, _deepConnectedPortList, _deepConnectedPorts, _deepInsidePortList, _deepInsidePorts, _description, _isInsideLinkable, clone, deepConnectedPortList, deepConnectedPorts, deepInsidePortList, deepInsidePorts, insertInsideLink, insertLink, insidePortList, insidePorts, insideRelationList, insideRelations, isDeeplyConnected, isInsideGroupLinked, isInsideLinked, isOpaque, liberalLink, link, numInsideLinks, setContainer, unlink, unlinkAll, unlinkAllInside, unlinkInside, unlinkInside
_getContainedObject, _propagateExistence, connectedPortList, connectedPorts, getContainer, isGroupLinked, isLinked, linkedRelationList, linkedRelations, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, numLinks, setName, unlink
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public SyntacticPort()
public SyntacticPort(Workspace workspace)
workspace
- Workspace to add SyntacticPort to.public SyntacticPort(SyntacticNode container, Port port, boolean direction, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- SyntacticNode in which this port is added.port
- Port referred to by this SyntacticPort.direction
- True if input, false if output.name
- Name of this port.IllegalActionException
NameDuplicationException
public SyntacticPort getConnectedPort()
public SyntacticNode getNode()
public void setChannel(int channel)
channel
- The channel of the represented port.getChannel()
public Port getRepresentedPort()
public int getChannel()
setChannel(int)
public boolean isRepresentative()
public boolean isInput()
public boolean isOutput()
public boolean isEmpty()
public SyntacticPort.IOType getType()
public static SyntacticPort.IOType portType(Port port)
port
- Port to find the type of.public static boolean isPortExterior(Port port, CompositeEntity entity)
port
- Port to check for exteriority.entity
- Entity to check inside of.public static SyntacticPort.IOType portType(Port port, CompositeEntity entity)
port
- Port to find the type of.entity
- Entity to check inside of.public static java.lang.Integer portWidth(Port port) throws IllegalActionException
port
- Port to find the width of.IllegalActionException