Class TransformationEnvironment
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.TransformationEnvironment
- All Implemented Interfaces:
TransformationEnvironmentIF,Serializable
Environment of transformation.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMappingModel(MappingModelRole modelRole) Get the model for the mapping role.Get the relation model.Get the model transformation.voidlogCreateMessage(MappingElementIF sourceElement, MappingElementList created) Log a created model element.voidlogFlush(boolean bForce) Flush log messages to log model.voidLog modified model elements.voidlogWeaveMessage(MappingElementIF sourceElement, MappingElementIF weaveElement) Log a weaved model element.voidlogWouldCreateMessage(MappingElementIF sourceElement, MappingAnchor anchors, MappingElementIF targetDummy) Log a potential creation of a model element.voidLog a potential modification of model elements.voidlogWouldWeaveMessage(MappingElementIF sourceElement, MappingElementIF candidate) Log a potential weave for a mapping element and the candidates to weave with.voidsetMappingModel(MappingModelRole modelRole, MappingModel model) Set the model for the role.voidsetTransformation(ModelTransformationIF modelTransformation) Set the model transformation.
-
Constructor Details
-
TransformationEnvironment
public TransformationEnvironment() -
TransformationEnvironment
-
-
Method Details
-
getRelationModel
Description copied from interface:TransformationEnvironmentIFGet the relation model.- Specified by:
getRelationModelin interfaceTransformationEnvironmentIF- Returns:
- relation model
-
getMappingModel
Description copied from interface:TransformationEnvironmentIFGet the model for the mapping role.- Specified by:
getMappingModelin interfaceTransformationEnvironmentIF- Parameters:
modelRole- mapping role- Returns:
- model for this role
-
setMappingModel
Description copied from interface:TransformationEnvironmentIFSet the model for the role.- Specified by:
setMappingModelin interfaceTransformationEnvironmentIF- Parameters:
modelRole- role of model in the transformationmodel- transformation model
-
logWeaveMessage
public void logWeaveMessage(MappingElementIF sourceElement, MappingElementIF weaveElement) throws M2MException, RemoteException Description copied from interface:TransformationEnvironmentIFLog a weaved model element.- Specified by:
logWeaveMessagein interfaceTransformationEnvironmentIF- Parameters:
sourceElement- Model element in source modelweaveElement- Weave element- Throws:
M2MExceptionRemoteException
-
logWouldWeaveMessage
public void logWouldWeaveMessage(MappingElementIF sourceElement, MappingElementIF candidate) throws M2MException, RemoteException Description copied from interface:TransformationEnvironmentIFLog a potential weave for a mapping element and the candidates to weave with.- Specified by:
logWouldWeaveMessagein interfaceTransformationEnvironmentIF- Parameters:
sourceElement- mapping elementcandidate- candidate to weave with candidates for weaving- Throws:
M2MExceptionRemoteException
-
logCreateMessage
public void logCreateMessage(MappingElementIF sourceElement, MappingElementList created) throws M2MException, RemoteException Description copied from interface:TransformationEnvironmentIFLog a created model element.- Specified by:
logCreateMessagein interfaceTransformationEnvironmentIF- Parameters:
sourceElement- Model element in source model.created- List of created model elements.- Throws:
M2MExceptionRemoteException
-
logWouldCreateMessage
public void logWouldCreateMessage(MappingElementIF sourceElement, MappingAnchor anchors, MappingElementIF targetDummy) throws M2MException, RemoteException Description copied from interface:TransformationEnvironmentIFLog a potential creation of a model element.- Specified by:
logWouldCreateMessagein interfaceTransformationEnvironmentIF- Parameters:
sourceElement- mapping element in source modelanchors- anchor for the mappingtargetDummy- dummy model element in target model- Throws:
M2MExceptionRemoteException
-
logModifiedMessage
public void logModifiedMessage(FunctionalVariationPointChangeVectors modified) throws M2MException, RemoteException Description copied from interface:TransformationEnvironmentIFLog modified model elements.- Specified by:
logModifiedMessagein interfaceTransformationEnvironmentIF- Parameters:
modified- Modifications at the modified elements- Throws:
M2MExceptionRemoteException
-
logWouldModifyMessage
public void logWouldModifyMessage(FunctionalVariationPointChangeVectors modified) throws M2MException, RemoteException Description copied from interface:TransformationEnvironmentIFLog a potential modification of model elements.- Specified by:
logWouldModifyMessagein interfaceTransformationEnvironmentIF- Parameters:
modified- Modifications to do- Throws:
M2MExceptionRemoteException
-
logFlush
Description copied from interface:TransformationEnvironmentIFFlush log messages to log model. Flush only if last flush has been a while ago- Specified by:
logFlushin interfaceTransformationEnvironmentIF- Parameters:
bForce- flush anyway- Throws:
RemoteException
-
setTransformation
Description copied from interface:TransformationEnvironmentIFSet the model transformation.- Specified by:
setTransformationin interfaceTransformationEnvironmentIF- Parameters:
modelTransformation- model transformation
-
getTransformation
Description copied from interface:TransformationEnvironmentIFGet the model transformation.- Specified by:
getTransformationin interfaceTransformationEnvironmentIF- Returns:
- model transformation
-