public class KeplerCompositeIOPort extends KeplerVirtualIOPort
A compoiste port may only be contained within an entity (e.g., an actor). A virtual port must have a name.
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
KeplerCompositeIOPort(NamedObj container,
java.lang.String name)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addEncapsulatedPort(IOPort port)
Assigns the given ptolemy port reference to the current set of
encapsulated ports.
|
void |
addEncapsulatedPort(KeplerVirtualIOPort port)
Assigns the given virtual port to the current set of encapsulated ports.
|
java.util.Vector |
getEncapsulatedPortReferences() |
Type |
getType()
Returns a record type of the encapsulated ports, where the labels are the
port names.
|
boolean |
isInput() |
boolean |
isOutput() |
void |
setName(java.lang.String name)
Set the name of the attribute.
|
java.lang.String |
toString()
Return the class name and the full name of the object,
with syntax "className {fullName}".
|
setContainer
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _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, uniqueName, validateSettables, workspace
public KeplerCompositeIOPort(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Description of the Parametername
- The value of the propertyIllegalActionException
- Description of the ExceptionNameDuplicationException
- Description of the Exceptionpublic void setName(java.lang.String name) throws IllegalActionException, NameDuplicationException
Attribute
setName
in interface Nameable
setName
in class Attribute
name
- The new name.IllegalActionException
- If the name contains a period.NameDuplicationException
- If there is already an
attribute with the same name in the container.NamedObj.getName()
,
NamedObj.getName(NamedObj)
public java.util.Vector getEncapsulatedPortReferences()
public void addEncapsulatedPort(IOPort port) throws IllegalActionException, NameDuplicationException
port
- The ptolemy port to encapsulate.IllegalActionException
NameDuplicationException
public void addEncapsulatedPort(KeplerVirtualIOPort port) throws IllegalActionException, NameDuplicationException
vport
- The virtual port to encapsulate.IllegalActionException
NameDuplicationException
public boolean isOutput()
isOutput
in class KeplerVirtualIOPort
public boolean isInput()
isInput
in class KeplerVirtualIOPort
public Type getType()
getType
in class KeplerVirtualIOPort