Class SimpleTransform
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.function.SimpleTransform
- All Implemented Interfaces:
SolutionIF,ConfigurableItemIF,FunctionalVariationPointIF,IdentifierAble,Serializable
Simple transform to be interpreted at run-time.
- Version:
- 10.1.1
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(FVPMode iMode, MappingElementIF sourceElement, MappingElementIF targetElement, FunctionalVariationPointChangeVectors changed) Execute this functional variation point from source to target in the given modevoidexecute(FVPMode iFVPMode, MappingElementList source, MappingElementList target, FunctionalVariationPointChangeVectors changed) Execute a solution for a list of sources and targets in the given mode.Get the list of all acceptable parameter names.getName()Get the name.getNew(MappingElementIF source) Get new value of property.getOld(MappingElementIF target) Get old value of property of target.Description of the result of the solution.getTargetValue(Conflict conflict) Value of the result of the solution.voidsetConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) Set the configuration context of this configurable item.toString()Methods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setId, setParentMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface de.mid.innovator.m2msdk.model.transformation.interfaces.ConfigurableItemIF
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getItem, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
SimpleTransform
public SimpleTransform()
-
-
Method Details
-
toString
- Overrides:
toStringin classConfigurableItem
-
getNew
Description copied from interface:FunctionalVariationPointIFGet new value of property.- Specified by:
getNewin interfaceFunctionalVariationPointIF- Parameters:
source- Model element in source model causing the modification- Returns:
- value after modification
- Throws:
M2MException- generic exceptionRemoteExceptionRemoteException- exception from remote execution
-
getOld
Description copied from interface:FunctionalVariationPointIFGet old value of property of target.- Specified by:
getOldin interfaceFunctionalVariationPointIF- Parameters:
target- Model element in target model to be modified.- Returns:
- value before modification
- Throws:
M2MException- generic exceptionRemoteException- exception from remote executionRemoteException
-
getTargetDescription
Description copied from interface:SolutionIFDescription of the result of the solution. This maybe the name of the modified property.- Specified by:
getTargetDescriptionin interfaceSolutionIF- Returns:
- Description of the target.
-
setConfigurationContext
public void setConfigurationContext(SessionInterface iSession, MetaModel sourceMM, MetaModel targetMM, ConfigurationItemIF iItem) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFSet the configuration context of this configurable item. The configurable item is configured according the context.- Specified by:
setConfigurationContextin interfaceConfigurableItemIF- Overrides:
setConfigurationContextin classConfigurableItem- Parameters:
iSession- sessionsourceMM- source meta modeltargetMM- target meta modeliItem- Configuration item- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
evaluate
public void evaluate(FVPMode iMode, MappingElementIF sourceElement, MappingElementIF targetElement, FunctionalVariationPointChangeVectors changed) throws M2MException, RemoteException Description copied from interface:FunctionalVariationPointIFExecute this functional variation point from source to target in the given mode- Specified by:
evaluatein interfaceFunctionalVariationPointIF- Parameters:
iMode- the mode of executionsourceElement- the source model elementtargetElement- the target model elementchanged- change vector modified only if there are changes- Throws:
M2MException- generic exceptionRemoteException- exception from remote execution
-
getName
Description copied from interface:ConfigurableItemIFGet the name.- Specified by:
getNamein interfaceConfigurableItemIF- Overrides:
getNamein classConfigurableItem- Returns:
- name as given by user in model transformation configuration
-
getTargetValue
Description copied from interface:SolutionIFValue of the result of the solution. This maybe the value of the modified property.- Specified by:
getTargetValuein interfaceSolutionIF- Parameters:
conflict- Conflict for which the value of the target is evaluated- Returns:
- Value of the target.
- Throws:
M2MExceptionRemoteException
-
execute
public void execute(FVPMode iFVPMode, MappingElementList source, MappingElementList target, FunctionalVariationPointChangeVectors changed) throws M2MException, RemoteException Description copied from interface:SolutionIFExecute a solution for a list of sources and targets in the given mode. This does not necessarily mean, that all sources are read and all targets are modified!- Specified by:
executein interfaceSolutionIF- Parameters:
iFVPMode- mode of executionsource- source elementstarget- target elementschanged- protocol changes- Throws:
M2MException- an exception occurredRemoteException
-
getKnownParameters
public ParameterTemplates getKnownParameters(MappingElementIF me, ConfigurationItemIF iItem) throws M2MException, RemoteException Description copied from interface:ConfigurableItemIFGet the list of all acceptable parameter names.- Specified by:
getKnownParametersin interfaceConfigurableItemIF- Overrides:
getKnownParametersin classConfigurableItem- Parameters:
me- mapping element, maybe nulliItem- configuration item, maybe null- Returns:
- list of parameter names
- Throws:
M2MException- generic exceptionRemoteException- error in communicationRemoteException- exception from remote execution
-