public class AtomicComponent extends ComponentEntity implements Component
run()
method or by the
MethodCallPort.call(TupleToken)
method of contained ports
that are providers.Entity.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
AtomicComponent(CompositeEntity container,
java.lang.String name)
Construct an entity with the given name contained by the specified
entity.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_addPort(Port port)
Add a port to this entity.
|
void |
initialize()
Initialize the component, which in this base class means
doing nothing and returning immediately.
|
Port |
newPort(java.lang.String name)
Create a new port with the specified name.
|
void |
preinitialize()
Preinitialize the component, which in this base class means doing
nothing and returning immediately.
|
void |
run()
Execute the component, which in this base class means doing
nothing and returning immediately.
|
void |
wrapup()
Wrap up an execution, which in this base class means doing
nothing and returning immediately.
|
_adjustDeferrals, _checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, instantiate, isAtomic, isOpaque, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, propagateExistence, setContainer, setName
_description, _exportMoMLContents, _removePort, _validateSettables, connectedPortList, connectedPorts, connectionsChanged, containedObjectsIterator, getAttribute, getPort, getPorts, linkedRelationList, linkedRelations, portList, removeAllPorts, setClassDefinition, uniqueName
_setParent, exportMoML, getChildren, getElementName, getParent, getPrototypeList, isClassDefinition, isWithinClassDefinition
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _executeChangeRequests, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, 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, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, propagateValue
description, getDisplayName, getFullName, getName, getName
public AtomicComponent(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container entity.name
- The name of the entity.IllegalActionException
- If the entity cannot be contained
by the proposed container.NameDuplicationException
- If the name coincides with
an entity already in the container.public void initialize() throws IllegalActionException
initialize
in interface Component
IllegalActionException
- If initialization
cannot be completed (not thrown in this base class).public Port newPort(java.lang.String name) throws IllegalActionException, NameDuplicationException
newPort
in class ComponentEntity
name
- The new port name.IllegalActionException
- If the argument is null.NameDuplicationException
- If this entity already has a
port with the specified name.public void preinitialize() throws IllegalActionException
preinitialize
in interface Component
IllegalActionException
- If preinitialization
cannot be completed (not thrown in this base class).public void run() throws IllegalActionException
run
in interface Component
IllegalActionException
- If the run cannot be completed
(not thrown in this base class).public void wrapup() throws IllegalActionException
wrapup
in interface Component
IllegalActionException
- If wrapup fails.protected void _addPort(Port port) throws IllegalActionException, NameDuplicationException
_addPort
in class Entity
port
- The port to add to this entity.IllegalActionException
- If the port class is not
acceptable to this entity, or the port has no name.NameDuplicationException
- If the port name collides with a
name already in the entity.