public class ReflectComposite extends TypedCompositeActor implements HandlesInternalLinks
| Red (neuendor) |
| Yellow (eal) |
| Modifier and Type | Class and Description |
|---|---|
static class |
ReflectComposite.ReflectCompositeContents
This is a specialized composite actor for use in ReflectComposite.
|
CompositeEntity.ContainedObjectsIterator| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_inAddPort
Flag indicating that we are executing _addPort().
|
protected boolean |
_inRemoveEntity
Flag indicating that we are executing _removeEntity().
|
protected boolean |
_mirrorParameterPorts
Flag indicating whether to mirror instances of ParameterPort.
|
_actorFiringListeners, _causalityInterface, _derivedPiggybacks, _initializables, _notifyingActorFiring, _piggybacks, _publishedPorts, _publisherRelations, _stopRequested, _subscribedPorts_levelCrossingLinks_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSCOMPLETED, NOT_READY, STOP_ITERATING| Constructor and Description |
|---|
ReflectComposite(CompositeEntity container,
java.lang.String name)
Create an actor with a name and a container.
|
ReflectComposite(CompositeEntity container,
java.lang.String name,
boolean mirrorParameterPorts)
Create an actor with a name and a container that optionally
mirrors the ports that are instances of ParameterPort.
|
ReflectComposite(Workspace workspace)
Construct a ReflectComposite in the specified workspace with
no container and an empty string as a name.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
_addEntity(ComponentEntity entity)
Override the base class to queue a change request to remove
any previously contained entity and its mirrored ports, and
to mirror the ports of the added entity.
|
protected void |
_addPort(Port port)
Add a port to this actor.
|
protected void |
_exportMoMLContents(java.io.Writer output,
int depth)
Override the base class to describe contained entities,
attributes, and ports, but not inside links or relations.
|
protected void |
_removeEntity(ComponentEntity entity)
Override the base class to remove the ports and inside relations
of this actor.
|
protected void |
_removePort(Port port)
Override the base class to remove the associated port on the
inside entity and the link to it, if there is one.
|
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace.
|
Port |
newParameterPort(java.lang.String name)
Create a new ParameterMirrorPort.
|
Port |
newPort(java.lang.String name)
Override the base class to return a specialized port.
|
_addRelation, _checkTypesFromTo, _destinationTypeConstraints, attributeChanged, attributeTypeChanged, isBackwardTypeInferenceEnabled, newRelation, resolveTypes, typeConstraintList, typeConstraints_actorFiring, _actorFiring, _finishedAddEntity, _setDirector, _transferPortParameterInputs, addActorFiringListener, addInitializable, addPiggyback, connectionsChanged, createReceivers, createSchedule, fire, getCausalityInterface, getDirector, getExecutiveDirector, getManager, getPublishedPort, getPublishedPortChannel, getPublishedPorts, getSubscribedPortChannel, inferringWidths, inferWidths, initialize, inputPortList, isFireFunctional, isOpaque, isPublishedPort, isStrict, iterate, linkToPublishedPort, linkToPublishedPort, linkToPublishedPort, linkToPublishedPort, needsWidthInference, newInsideReceiver, newReceiver, notifyConnectivityChange, outputPortList, postfire, prefire, preinitialize, recordFiring, registerPublisherPort, registerPublisherPort, removeActorFiringListener, removeInitializable, removePiggyback, requestChange, setContainer, setDirector, setManager, stop, stopFire, terminate, unlinkToPublishedPort, unlinkToPublishedPort, unlinkToPublishedPort, unlinkToPublishedPort, unregisterPublisherPort, unregisterPublisherPort, wrapup_adjustDeferrals, _containedDecorators, _deepOpaqueEntityList, _description, _removeRelation, _validateSettables, allAtomicEntityList, allowLevelCrossingConnect, classDefinitionList, connect, connect, containedObjectsIterator, deepCompositeEntityList, deepEntityList, deepGetEntities, deepNamedObjList, deepOpaqueEntityList, deepRelationSet, entityList, entityList, exportLinks, exportMoML, getAttribute, getEntities, getEntity, getPort, getRelation, getRelations, isAtomic, lazyAllAtomicEntityList, lazyAllCompositeEntityList, lazyAllCompositeTransparentAndOpaqueEntityList, lazyClassDefinitionList, lazyDeepEntityList, lazyEntityList, lazyRelationList, numberOfEntities, numberOfRelations, numEntities, numRelations, relationList, removeAllEntities, removeAllRelations, setClassDefinition, statistics, uniqueName_checkContainer, _getContainedObject, _propagateExistence, getContainer, instantiate, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setNameconnectedPortList, connectedPorts, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts_setParent, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeDeleted, attributeList, attributeList, clone, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getFullName, getModelErrorHandler, getName, getName, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspaceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateReceivers, getCausalityInterface, getDirector, getExecutiveDirector, getManager, inputPortList, newReceiver, outputPortListfire, isFireFunctional, isStrict, iterate, postfire, prefire, stop, stopFire, terminateaddInitializable, initialize, preinitialize, removeInitializable, wrapupdescription, getContainer, getDisplayName, getFullName, getName, getName, setNamegetDerivedLevel, getDerivedList, propagateValueprotected boolean _inAddPort
protected boolean _inRemoveEntity
protected boolean _mirrorParameterPorts
public ReflectComposite(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container - The container actor.name - The name of this actor.IllegalActionException - If the container is incompatible
with this actor.NameDuplicationException - If the name coincides with
an actor already in the container.public ReflectComposite(Workspace workspace)
workspace - The workspace that will list the actor.public ReflectComposite(CompositeEntity container, java.lang.String name, boolean mirrorParameterPorts) throws IllegalActionException, NameDuplicationException
container - The container actor.name - The name of this actor.mirrorParameterPorts - If false, then ports that are instances of
ParameterPort are not mirrored.IllegalActionException - If the container is incompatible
with this actor.NameDuplicationException - If the name coincides with
an actor already in the container.public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone in class CompositeActorworkspace - The workspace for the new object.java.lang.CloneNotSupportedException - If any of the attributes
cannot be cloned.CompositeEntity.exportMoML(Writer, int, String)public Port newPort(java.lang.String name) throws NameDuplicationException
newPort in class TypedCompositeActorname - The name of the port to create.NameDuplicationException - If the container already has a port
with this name.public Port newParameterPort(java.lang.String name) throws NameDuplicationException
name - The name of the port to create.NameDuplicationException - If the container already has a port
with this name.protected void _addEntity(ComponentEntity entity) throws IllegalActionException, NameDuplicationException
_addEntity in class TypedCompositeActorentity - Entity to contain.IllegalActionException - If the entity has no name, or the
action would result in a recursive containment structure, or the
argument does not implement the TypedActor interface.NameDuplicationException - If the name collides with a name
already on the actor contents list, or if the added element is a
class definition.protected void _addPort(Port port) throws IllegalActionException, NameDuplicationException
_addPort in class TypedCompositeActorport - The TypedIOPort to add to this actor.IllegalActionException - If the port is not an instance
of IteratePort, or the port has no name.NameDuplicationException - If the port name collides with a
name already in the actor.protected void _exportMoMLContents(java.io.Writer output,
int depth)
throws java.io.IOException
_exportMoMLContents in class CompositeEntityoutput - The output to write to.depth - The depth in the hierarchy, to determine indenting.java.io.IOException - If an I/O error occurs.NamedObj.exportMoML(Writer, int)protected void _removeEntity(ComponentEntity entity)
_removeEntity in class CompositeEntityentity - The entity being removed from this entity.protected void _removePort(Port port)
_removePort in class Entityport - The port being removed from this entity.