|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.ptalon.AbstractPtalonEvaluator
ptolemy.actor.ptalon.PtalonEvaluator
ptolemy.actor.ptalon.gt.TransformationEvaluator
public class TransformationEvaluator
Parse transformation actor or values and set parameters of actors.
Red (tfeng) |
Red (tfeng) |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ptolemy.actor.ptalon.AbstractPtalonEvaluator |
---|
AbstractPtalonEvaluator.IfTree, AbstractPtalonEvaluator.PtalonExpressionScope |
Field Summary | |
---|---|
private boolean |
_isIncrementalTransformation
|
private boolean |
_isInTransformation
|
private java.util.List<NamedObj> |
_negatedObjects
|
private java.util.List<NamedObj> |
_optionalObjects
|
private java.util.List<NamedObj> |
_preservedObjects
|
private java.util.List<NamedObj> |
_removedObjects
|
Fields inherited from class ptolemy.actor.ptalon.AbstractPtalonEvaluator |
---|
_actor, _currentIfTree, _imports, _scope, _transparentRelations |
Constructor Summary | |
---|---|
TransformationEvaluator(PtalonActor actor)
Construct transformation evaluator. |
Method Summary | |
---|---|
private NamedObj |
_getObject(java.lang.String name)
|
protected void |
_processAttributes(NamedObj object)
Process an attribute. |
private void |
_removeAttributes(NamedObj object,
java.lang.Class<?>[] attributeClasses)
|
void |
enterTransformation(boolean incremental)
Enter the transformation. |
void |
exitTransformation()
Exit the transformation. |
void |
negateObject(java.lang.String name)
Negate an object. |
void |
optionalObject(java.lang.String name)
Mark a NamedObj as optional. |
void |
preserveObject(java.lang.String name)
Preserve an object. |
void |
removeObject(java.lang.String name)
Remove an object. |
void |
startAtTop()
Prepare the compiler to start at the outermost scope of the Ptalon program during run time. |
Methods inherited from class ptolemy.actor.ptalon.PtalonEvaluator |
---|
addActor, addParameterAssign, addPortAssign, addPortAssign, addSymbol, addUnknownLeftSide, enterActorDeclaration, exitActorDeclaration, isActorReady, popActorDeclaration, pushActorDeclaration, setActorParameter, setActorSymbol, setDanglingPortsOkay |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean _isInTransformation
private boolean _isIncrementalTransformation
private java.util.List<NamedObj> _negatedObjects
private java.util.List<NamedObj> _optionalObjects
private java.util.List<NamedObj> _preservedObjects
private java.util.List<NamedObj> _removedObjects
Constructor Detail |
---|
public TransformationEvaluator(PtalonActor actor)
actor
- the Ptalon actorMethod Detail |
---|
public void enterTransformation(boolean incremental) throws PtalonRuntimeException
enterTransformation
in class AbstractPtalonEvaluator
incremental
- True if this is an incremental transformation.
PtalonRuntimeException
- Not thrown in this baseclass.public void exitTransformation() throws PtalonRuntimeException
exitTransformation
in class AbstractPtalonEvaluator
PtalonRuntimeException
- Not thrown in this baseclass.public void negateObject(java.lang.String name) throws PtalonRuntimeException
NegationAttribute
.
negateObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be negated.
PtalonRuntimeException
- If we are in a transformation
or if the object has already been negated.public void optionalObject(java.lang.String name) throws PtalonRuntimeException
OptionAttribute
.
optionalObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be marked optional.
PtalonRuntimeException
- If we are in a transformation or if the object has
already been marked optionalpublic void preserveObject(java.lang.String name) throws PtalonRuntimeException
OptionAttribute
.
preserveObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be preserved
PtalonRuntimeException
- If we are in a transformation or if the object has
already been preserved.public void removeObject(java.lang.String name) throws PtalonRuntimeException
removeObject
in class AbstractPtalonEvaluator
name
- The name of the NamedObj to be removed.
PtalonRuntimeException
- If we are in a transformation or if the object has
already been marked as removed.public void startAtTop()
startAtTop
in class PtalonEvaluator
protected void _processAttributes(NamedObj object) throws PtalonRuntimeException
_processAttributes
in class AbstractPtalonEvaluator
object
- The NamedObj to be processed.
PtalonRuntimeException
- If thrown while processing
the attribute.private NamedObj _getObject(java.lang.String name) throws PtalonScopeException, PtalonRuntimeException
PtalonScopeException
PtalonRuntimeException
private void _removeAttributes(NamedObj object, java.lang.Class<?>[] attributeClasses) throws IllegalActionException, NameDuplicationException
IllegalActionException
NameDuplicationException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |