de.cau.cs.kieler.core.model.effects
Class TransformationEffect
java.lang.Object
de.cau.cs.kieler.core.kivi.AbstractEffect
de.cau.cs.kieler.core.model.effects.TransformationEffect
- All Implemented Interfaces:
- IEffect
- Direct Known Subclasses:
- XtendTransformationEffect
public class TransformationEffect
- extends AbstractEffect
A KiVi effect that executes a specific transformation.
- Rating

- (2011-02-14) review by msp, haf
TransformationEffect
public TransformationEffect()
- default constructor.
TransformationEffect
public TransformationEffect(ITransformationContext context,
TransformationDescriptor descriptor)
- Parameters:
context
- ITransformationContext
containing all necessary information in order to
execute the transformation.descriptor
- The transformation's TransformationDescriptor
TransformationEffect
public TransformationEffect(ITransformationContext context,
TransformationDescriptor descriptor,
boolean monitored)
- Parameters:
context
- ITransformationContext
containing all necessary information in order to
execute the transformation.descriptor
- The transformation's TransformationDescriptor
.monitored
- Determines whether the execution should be processed as a monitored operation.
execute
public void execute()
- Execute the effect.
getResult
public Object getResult()
- Returns:
- the result of the executed transformation.
setContext
public void setContext(ITransformationContext context)
- Parameters:
context
- the context to set
setDescriptor
public void setDescriptor(TransformationDescriptor descriptor)
- Parameters:
descriptor
- the descriptor to set