org.eclipse.ocl.examples.debug.evaluator
Class OCLVMEvaluator

java.lang.Object
  extended by org.eclipse.ocl.examples.debug.evaluator.OCLVMEvaluator
All Implemented Interfaces:
IVMEvaluator

public class OCLVMEvaluator
extends java.lang.Object
implements IVMEvaluator

A OCLVMEvaluator supports loading a transformation as source then loading models, performing a transformation and then saving the models.


Field Summary
protected  OCLVMEnvironment env
           
protected  OCLVMEnvironmentFactory envFactory
           
protected  ExpressionInOCL expressionInOCL
           
protected  MetaModelManager metaModelManager
           
protected  IVMModelManager modelManager
           
 
Constructor Summary
OCLVMEvaluator(OCLVMEnvironmentFactory envFactory, Constraint constraint, org.eclipse.emf.ecore.EObject context)
           
OCLVMEvaluator(OCLVMEnvironmentFactory envFactory, ExpressionInOCL expressionInOCL, org.eclipse.emf.ecore.EObject context)
           
OCLVMEvaluator(OCLVMEnvironmentFactory envFactory, org.eclipse.emf.common.util.URI oclURI, org.eclipse.emf.common.util.URI contextURI)
           
 
Method Summary
 void dispose()
           
 java.lang.Object execute()
           
 ExpressionInOCL getDebuggable()
           
 OCLVMEnvironment getEnvironment()
           
 OCLVMEnvironmentFactory getEnvironmentFactory()
           
 ExpressionInOCL getExpressionInOCL()
           
 MetaModelManager getMetaModelManager()
           
 IVMModelManager getModelManager()
           
static org.eclipse.emf.ecore.EObject loadContext(MetaModelManager metaModelManager, org.eclipse.emf.common.util.URI contextURI)
           
static ExpressionInOCL loadExpression(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.common.util.URI constraintURI)
           
static ExpressionInOCL loadExpression(MetaModelManager metaModelManager, org.eclipse.emf.common.util.URI constraintURI, boolean keepDebug)
           
 void saveModels()
           
 void setSuspendOnStartUp(boolean suspendOnStartup)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metaModelManager

@NonNull
protected final MetaModelManager metaModelManager

expressionInOCL

@NonNull
protected final ExpressionInOCL expressionInOCL

envFactory

@NonNull
protected final OCLVMEnvironmentFactory envFactory

env

@NonNull
protected final OCLVMEnvironment env

modelManager

@NonNull
protected final IVMModelManager modelManager
Constructor Detail

OCLVMEvaluator

public OCLVMEvaluator(@NonNull
                      OCLVMEnvironmentFactory envFactory,
                      @NonNull
                      org.eclipse.emf.common.util.URI oclURI,
                      @Nullable
                      org.eclipse.emf.common.util.URI contextURI)
               throws java.io.IOException
Throws:
java.io.IOException

OCLVMEvaluator

public OCLVMEvaluator(@NonNull
                      OCLVMEnvironmentFactory envFactory,
                      @NonNull
                      Constraint constraint,
                      @NonNull
                      org.eclipse.emf.ecore.EObject context)
               throws java.io.IOException
Throws:
java.io.IOException

OCLVMEvaluator

public OCLVMEvaluator(@NonNull
                      OCLVMEnvironmentFactory envFactory,
                      @NonNull
                      ExpressionInOCL expressionInOCL,
                      @Nullable
                      org.eclipse.emf.ecore.EObject context)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

loadContext

@NonNull
public static org.eclipse.emf.ecore.EObject loadContext(@NonNull
                                                                MetaModelManager metaModelManager,
                                                                @NonNull
                                                                org.eclipse.emf.common.util.URI contextURI)
                                                 throws java.io.IOException
Throws:
java.io.IOException

loadExpression

@NonNull
public static ExpressionInOCL loadExpression(@NonNull
                                                     MetaModelManager metaModelManager,
                                                     @NonNull
                                                     org.eclipse.emf.common.util.URI constraintURI,
                                                     boolean keepDebug)
                                      throws java.io.IOException
Throws:
java.io.IOException

loadExpression

@NonNull
public static ExpressionInOCL loadExpression(org.eclipse.emf.ecore.EObject eObject,
                                                     org.eclipse.emf.common.util.URI constraintURI)
                                      throws java.io.IOException
Throws:
java.io.IOException

dispose

public void dispose()

execute

public java.lang.Object execute()
Specified by:
execute in interface IVMEvaluator

getDebuggable

@NonNull
public ExpressionInOCL getDebuggable()
Specified by:
getDebuggable in interface IVMEvaluator

getEnvironment

@NonNull
public final OCLVMEnvironment getEnvironment()

getEnvironmentFactory

@NonNull
public final OCLVMEnvironmentFactory getEnvironmentFactory()

getMetaModelManager

@NonNull
public final MetaModelManager getMetaModelManager()
Specified by:
getMetaModelManager in interface IVMEvaluator

getModelManager

@NonNull
public final IVMModelManager getModelManager()

getExpressionInOCL

@NonNull
public ExpressionInOCL getExpressionInOCL()

saveModels

public void saveModels()
Specified by:
saveModels in interface IVMEvaluator

setSuspendOnStartUp

public void setSuspendOnStartUp(boolean suspendOnStartup)
Specified by:
setSuspendOnStartUp in interface IVMEvaluator