public class MetroIIPtidesPort extends MirrorPort
This class is identical to PtidesPort except Ptides director is mapped to MetroIIPtidesDirector.
TypedIOPort.RunTimeTypeCheckException
NamedObj.ContainedObjectsIterator
Modifier and Type | Field and Description |
---|---|
Parameter |
actuateAtEventTimestamp
Actuate at event timestamp parameter that defaults to the boolean value
TRUE.
|
Parameter |
deviceDelay
Device delay parameter that defaults to the double value 0.0.
|
Parameter |
deviceDelayBound
Device delay bound parameter that defaults to the double value 0.0.
|
Parameter |
isNetworkPort
Flag that is true if the port is a network receiver or transmitter.
|
Parameter |
networkDelayBound
Network delay bound parameter that defaults to the double value 0.0.
|
Parameter |
platformDelayBound
Platform delay bound parameter that defaults to the double value 0.0.
|
Parameter |
sourcePlatformDelayBound
Source platform delay bound parameter that defaults to the double value
0.0.
|
_resolvedType, TYPE
_constantLimit, _constantToken, _constantTokensSent, _hasPortEventListeners, _portEventListeners, CONFIGURATION, defaultValue, RECEIVERS, REMOTERECEIVERS
_insideLinks, _relationsList
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
MetroIIPtidesPort(CompositeEntity container,
java.lang.String name)
Creates a new PtidesPort with a given container and a name.
|
Modifier and Type | Method and Description |
---|---|
boolean |
actuateAtEventTimestamp()
Return true if actuation should happen at event timestamp and false if
actuation can happen sooner.
|
void |
attributeChanged(Attribute attribute)
React to a change in an attribute.
|
int |
getMicrostepForToken(Token t)
Get the microstep of the event that contained the token.
|
java.lang.Object[] |
getTimeStampForToken(Token t)
Return the timestamp and sourceTimestamp for a specific token.
|
boolean |
isActuatorPort()
Returns true if this object is actuator port.
|
boolean |
isNetworkReceiverPort()
Returns true if this object is network receiver port.
|
boolean |
isNetworkTransmitterPort()
Returns true if this object is network transmitter port.
|
boolean |
isSensorPort()
Returns true if this object is sensor port.
|
void |
send(int channelIndex,
Token token)
Save token and remember timestamp of the token.
|
void |
setInput(boolean isInput)
Override the base class to also set the associated port,
if there is one.
|
void |
setOutput(boolean isInput)
Override the base class to also set the associated port,
if there is one.
|
clone, getAssociatedPort, setAssociatedPort, setContainer, setMultiport, setName
_checkContainer, _checkLiberalLink, _checkLink, _checkType, _checkTypedIOPortContainer, _description, addTypeListener, broadcast, broadcast, convert, getAutomaticTypeConversion, getType, getTypeTerm, isTypeAcceptable, removeTypeListener, send, sendInside, setAutomaticTypeConversion, setTypeAtLeast, setTypeAtLeast, setTypeAtMost, setTypeEquals, setTypeSameAs, typeConstraintList, typeConstraints
_checkLiberalLink, _exportMoMLContents, _getInsideWidth, _getOutsideWidth, _getReceiversLinkedToGroup, _newInsideReceiver, _newInsideReceiver, _newReceiver, _newReceiver, _notifyPortEventListeners, _removeReceivers, _setConstant, _wrapReceiver, addIOPortEventListener, broadcastClear, checkWidthConstraints, createReceivers, deepConnectedInPortList, deepConnectedInPorts, deepConnectedOutPortList, deepConnectedOutPorts, deepGetReceivers, get, get, getChannelForReceiver, getCommunicationAspects, getCurrentTime, getDefaultWidth, getInside, getInsideReceivers, getIOPortEventListeners, getModelTime, getModelTime, getReceivers, getReceivers, getReceivers, getRelationIndex, getRemoteReceivers, getRemoteReceivers, getWidth, getWidthFromConstraints, getWidthInside, hasNewToken, hasNewTokenInside, hasRoom, hasRoomInside, hasToken, hasToken, hasTokenInside, hasWidthConstraints, insertLink, insideSinkPortList, insideSourcePortList, invalidateCommunicationAspects, isInput, isInsideConnected, isKnown, isKnown, isKnownInside, isMultiport, isOutput, isOutsideConnected, liberalLink, link, numberOfSinks, numberOfSources, removeIOPortEventListener, reset, sendClear, sendClearInside, setDefaultWidth, setWidthEquals, setWidthEquals, sinkPortList, sourcePortList, transferInputs, transferOutputs, unlink, unlink, unlinkAll, unlinkAllInside, unlinkInside, unlinkInside
_deepConnectedPortList, _deepConnectedPorts, _deepInsidePortList, _deepInsidePorts, _isInsideLinkable, deepConnectedPortList, deepConnectedPorts, deepInsidePortList, deepInsidePorts, insertInsideLink, insidePortList, insidePorts, insideRelationList, insideRelations, isDeeplyConnected, isInsideGroupLinked, isInsideLinked, isOpaque, numInsideLinks
_getContainedObject, _propagateExistence, connectedPortList, connectedPorts, getContainer, isGroupLinked, isLinked, linkedRelationList, linkedRelations, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, numLinks
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, 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 Parameter actuateAtEventTimestamp
public Parameter deviceDelay
public Parameter deviceDelayBound
public Parameter isNetworkPort
public Parameter networkDelayBound
public Parameter platformDelayBound
public Parameter sourcePlatformDelayBound
public MetroIIPtidesPort(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container of the port.name
- The name of the port.IllegalActionException
- If parameters cannot be set.NameDuplicationException
- If name already exists.public boolean actuateAtEventTimestamp()
public void attributeChanged(Attribute attribute) throws IllegalActionException
attributeChanged
in class TypedIOPort
attribute
- The attribute that changed.IllegalActionException
- If the change is not acceptable to this container.public java.lang.Object[] getTimeStampForToken(Token t)
t
- The token.public int getMicrostepForToken(Token t)
t
- The token.public boolean isActuatorPort()
public boolean isSensorPort()
public boolean isNetworkReceiverPort()
public boolean isNetworkTransmitterPort()
public void setInput(boolean isInput) throws IllegalActionException
MirrorPort
setInput
in class MirrorPort
isInput
- True to make this an input port.IllegalActionException
- If changing the port status is
not permitted.public void setOutput(boolean isInput) throws IllegalActionException
MirrorPort
setOutput
in class MirrorPort
isInput
- True to make this an output port.IllegalActionException
- If changing the port status is
not permitted.public void send(int channelIndex, Token token) throws IllegalActionException, NoRoomException
send
in class TypedIOPort
channelIndex
- The index of the channel, from 0 to width-1.token
- The token to send, or null to send no token.IllegalActionException
- If the token to be sent cannot be converted to the type of
this port, or if the token is null.NoRoomException
- If there is no room in the receiver.