Package ptolemy.kernel.test
Class TestComponentRelation
- java.lang.Object
-
- ptolemy.kernel.util.NamedObj
-
- ptolemy.kernel.Relation
-
- ptolemy.kernel.ComponentRelation
-
- ptolemy.kernel.test.TestComponentRelation
-
- All Implemented Interfaces:
java.lang.Cloneable
,Changeable
,Debuggable
,DebugListener
,Derivable
,ModelErrorHandler
,MoMLExportable
,Moveable
,Nameable
public class TestComponentRelation extends ComponentRelation
This class is used to test protected method(s) in ComponentRelation- Since:
- Ptolemy II 5.2
- Version:
- $Id$
- Author:
- Christopher Hylands
- Pt.AcceptedRating:
- Red (cxh)
- Pt.ProposedRating:
- Yellow (cxh)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj
NamedObj.ContainedObjectsIterator
-
-
Field Summary
-
Fields inherited from class ptolemy.kernel.util.NamedObj
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
-
-
Constructor Summary
Constructors Constructor Description TestComponentRelation(CompositeEntity container, java.lang.String name)
Construct a TestComponentRelation
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedObj
testGetContainedObject(NamedObj container, java.lang.String relativeName)
NamedObj
testPropagateExistence(NamedObj container)
Test _propagateExistence()-
Methods inherited from class ptolemy.kernel.ComponentRelation
_checkContainer, _checkPort, _checkRelation, _propagateExistence, clone, deepLinkedPortList, deepLinkedPorts, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, unlinkAll
-
Methods inherited from class ptolemy.kernel.Relation
_description, _getContainedObject, link, linkedObjectsList, linkedPortList, linkedPortList, linkedPorts, linkedPorts, numLinks, relationGroupList, unlink
-
Methods inherited from class ptolemy.kernel.util.NamedObj
_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
-
-
-
-
Constructor Detail
-
TestComponentRelation
public TestComponentRelation(CompositeEntity container, java.lang.String name) throws IllegalActionException, NameDuplicationException
Construct a TestComponentRelation- Parameters:
container
- The container entity.name
- The name of the port.- Throws:
IllegalActionException
- If the port is not of an acceptable class for the container.NameDuplicationException
- If the name coincides with a port already in the container.
-
-
Method Detail
-
testGetContainedObject
public NamedObj testGetContainedObject(NamedObj container, java.lang.String relativeName) throws IllegalActionException
- Throws:
IllegalActionException
-
testPropagateExistence
public NamedObj testPropagateExistence(NamedObj container) throws IllegalActionException
Test _propagateExistence()- Parameters:
container
- The container.- Returns:
- What ever _propagateExistence(container) returns.
- Throws:
IllegalActionException
- If the object cannot be cloned.
-
-