public class GiottoCodeGenerator extends Attribute
The Giotto Code Generator has been changed from the earlier generator implemented by Haiyang and Steve in the following respect :-
Any and all unconnected ports are ignored. This includes :
Red (johnr) |
Red (eal) |
Modifier and Type | Class and Description |
---|---|
protected class |
GiottoCodeGenerator.GiottoEditorFactory
An attribute that can create an Giotto code editor for a Giotto model.
|
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
GiottoCodeGenerator()
Construct a factory with the default workspace and "" as name.
|
GiottoCodeGenerator(NamedObj container,
java.lang.String name)
Construct a factory with the specified container and name.
|
Modifier and Type | Method and Description |
---|---|
protected void |
_instantiateEditorFactoryClass()
Method to instantiate the Editor Factory class called from the
constructor.
|
java.lang.String |
generateGiottoCode(TypedCompositeActor model)
Generate Giotto code for the given Giotto model.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _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
public GiottoCodeGenerator() throws IllegalActionException, NameDuplicationException
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.public GiottoCodeGenerator(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of the factory.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.public java.lang.String generateGiottoCode(TypedCompositeActor model) throws IllegalActionException
model
- The given Giotto model.IllegalActionException
- If code can not be generated.protected void _instantiateEditorFactoryClass() throws IllegalActionException, NameDuplicationException
IllegalActionException
- If the editor factory can not be
created.NameDuplicationException
- If there is already another editor
factory with the same name.