Class AddToStore
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
de.mid.innovator.m2msdk.model.transformation.function.AddToStore
- All Implemented Interfaces:
SolutionIF,ConfigurableItemIF,FunctionalVariationPointIF,IdentifierAble,Serializable
Add element to store
- Version:
- 11.1.2
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(FVPMode mode, MappingElementIF sourceElement, MappingElementIF targetElement, FunctionalVariationPointChangeVectors changed) Execute this functional variation point from source to target in the given modevoidexecute(FVPMode mode, 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.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.Methods inherited from class de.mid.innovator.m2msdk.model.transformation.ConfigurableItem
checkConstraints, checkConstraints, getBaseItem, getConfigurableItems, getConfigurationTag, getId, getItem, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setId, setParent, toStringMethods 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, getName, getParentItem, getParentItem, setBaseItem, setConfigurationTag, setParentMethods inherited from interface de.mid.innovator.m2msdk.util.IdentifierAble
getId, setId
-
Constructor Details
-
AddToStore
public AddToStore()
-
-
Method Details
-
execute
public void execute(FVPMode mode, MappingElementList source, MappingElementList target, FunctionalVariationPointChangeVectors changed) throws M2MException 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:
mode- mode of executionsource- source elementstarget- target elementschanged- protocol changes- Throws:
M2MException- an exception occurred
-
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 exception
-
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 exception
-
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.
-
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.
-
evaluate
public void evaluate(FVPMode mode, MappingElementIF sourceElement, MappingElementIF targetElement, FunctionalVariationPointChangeVectors changed) throws RemoteException, M2MException Description copied from interface:FunctionalVariationPointIFExecute this functional variation point from source to target in the given mode- Specified by:
evaluatein interfaceFunctionalVariationPointIF- Parameters:
mode- the mode of executionsourceElement- the source model elementtargetElement- the target model elementchanged- change vector modified only if there are changes- Throws:
RemoteException- exception from remote executionM2MException- generic exception
-
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
-
getKnownParameters
public ParameterTemplates getKnownParameters(MappingElementIF me, ConfigurationItemIF item) 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 nullitem- configuration item, maybe null- Returns:
- list of parameter names
- Throws:
M2MException- generic exceptionRemoteException- error in communicationRemoteException- exception from remote execution
-