|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kaom.importer.ptolemy.PtolemyHelper
public class PtolemyHelper
Helper methods to inspect Ptolemy models. Could be used from Xtend transformations.
Constructor Summary | |
---|---|
PtolemyHelper()
Constructs a new instance. |
Method Summary | |
---|---|
List<Port> |
getPorts(List<EObject> entities)
Returns a list of all the ports of the given entity types or class types. |
List<Port> |
getPorts(NamedObj actor)
Returns a list of ports of the given actor. |
NamedObj |
instantiatePtolemyEntity(ClassType classType)
Instanciate a Ptolemy Entity for a given ClassType model object. |
NamedObj |
instantiatePtolemyEntity(EntityType entity)
Instanciate a Ptolemy Entity for a given EntityType model object. |
NamedObj |
instantiatePtolemyEntity(String className)
Instantiate a Ptolemy entity with the given class name. |
void |
setExecutionContext(org.eclipse.xtend.expression.ExecutionContext context)
Execution context is set by Xtend component from outside. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PtolemyHelper()
Method Detail |
---|
public List<Port> getPorts(List<EObject> entities) throws ClassNotFoundException
entities
- the entity or class types whose ports to return.
ClassNotFoundException
- if the actor could not be resolved.public List<Port> getPorts(NamedObj actor) throws ClassNotFoundException
instantiatePtolemyEntity(...)
methods.
actor
- the actor whose ports to return.
ClassNotFoundException
- if the actor could not be resolved.public NamedObj instantiatePtolemyEntity(EntityType entity) throws Exception
entity
- given EMF EntityType model object
Exception
- may throw different Exceptions during parsingpublic NamedObj instantiatePtolemyEntity(ClassType classType) throws Exception
classType
- given EMF ClassType model object
Exception
- may throw different Exceptions during parsingpublic NamedObj instantiatePtolemyEntity(String className) throws Exception
className
- the class name of the actor to instantiate.
Exception
- may throw different exceptions during parsing.public void setExecutionContext(org.eclipse.xtend.expression.ExecutionContext context)
This implementation currently does nothing since the execution context is not used at the moment.
setExecutionContext
in interface org.eclipse.xtend.expression.IExecutionContextAware
context
- the execution context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |