ptolemy.domains.tdl.kernel
Class TDLCodeGenerator
java.lang.Object
ptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.domains.tdl.kernel.TDLCodeGenerator
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Changeable, Debuggable, DebugListener, Derivable, ModelErrorHandler, MoMLExportable, Moveable, Nameable
public class TDLCodeGenerator
- extends Attribute
Generates the TDL code for a given TDL module.
- Since:
- Ptolemy II 8.0
- Version:
- $Id: TDLCodeGenerator.java 57044 2010-01-27 22:41:05Z cxh $
- Author:
- Patricia Derler
- See Also:
- Serialized Form
Fields inherited from class ptolemy.kernel.util.NamedObj |
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
Constructor Summary |
TDLCodeGenerator()
Construct a factory with the default workspace and "" as name. |
TDLCodeGenerator(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name. |
Methods inherited from class ptolemy.kernel.util.Attribute |
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
Methods inherited from class ptolemy.kernel.util.NamedObj |
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _debug, _debug, _debug, _debug, _debug, _description, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _propagateValue, _recordDecoratedAttributes, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, attributeChanged, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, 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, propagateExistence, propagateValue, propagateValues, removeChangeListener, removeDebugListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TDLCodeGenerator
public TDLCodeGenerator()
throws IllegalActionException,
NameDuplicationException
- Construct a factory with the default workspace and "" as name.
- Throws:
IllegalActionException
- If the factory is not of an acceptable attribute for the
container.
NameDuplicationException
- If the name coincides with an attribute already in the
container.
TDLCodeGenerator
public TDLCodeGenerator(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
- Construct a factory with the specified container and name.
- Parameters:
container
- The container.name
- The name of the factory.
- Throws:
IllegalActionException
- If the factory is not of an acceptable attribute for the
container.
NameDuplicationException
- If the name coincides with an attribute already in the
container.
generateTDLCode
public java.lang.String generateTDLCode(TypedCompositeActor model)
throws IllegalActionException
- Generate TDL code for the given TDL model.
- Parameters:
model
- The given TDL model.
- Returns:
- The TDL code.
- Throws:
IllegalActionException
- If code can not be generated.
_instantiateEditorFactoryClass
protected void _instantiateEditorFactoryClass()
throws IllegalActionException,
NameDuplicationException
- Method to instantiate the Editor Factory class called from the
constructor. The reason for having this is that it can be overridden by
subclasses
- Throws:
IllegalActionException
- If the editor factory can not be created.
NameDuplicationException
- If there is already another editor factory with the same
name.
_init
private void _init()
throws IllegalActionException,
NameDuplicationException
- Throws:
IllegalActionException
NameDuplicationException