Class ConflictModel
java.lang.Object
de.mid.innovator.m2msdk.model.transformation.conflict.ConflictModel
- All Implemented Interfaces:
ConflictModelInterface,Serializable
Model of conflicts. The model contains all conflicts and provides them to the
user interface.
- Version:
- 11.1.3
- Author:
- jmback
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a conflict to the conflict model.voidclean()Clean the conflict model and remove all conflicts.get(ConflictType iType, MappingElementList source) Get the conflict of the given type and with the involved source elements.Get number of conflicts of the same conflict type as the next unresolved conflict.Get a new conflict type instance of the defining class.getUnresolved(FVPMode iFVPMode, FunctionalVariationPointChangeVectors changed) Get first unresolved conflict.
-
Constructor Details
-
ConflictModel
public ConflictModel()
-
-
Method Details
-
getType
Description copied from interface:ConflictModelInterfaceGet a new conflict type instance of the defining class.- Specified by:
getTypein interfaceConflictModelInterface- Parameters:
iCls- Class of conflict type- Returns:
- Instance conflict type
-
get
Description copied from interface:ConflictModelInterfaceGet the conflict of the given type and with the involved source elements.- Specified by:
getin interfaceConflictModelInterface- Parameters:
iType- type of conflictsource- source elements involved in conflict- Returns:
- return the conflict, if one exists, else null
-
add
Description copied from interface:ConflictModelInterfaceAdd a conflict to the conflict model.- Specified by:
addin interfaceConflictModelInterface- Parameters:
iConflict- new conflict
-
getNumUnresolved
public Integer getNumUnresolved(FunctionalVariationPointChangeVectors changed) throws M2MException, RemoteException Description copied from interface:ConflictModelInterfaceGet number of conflicts of the same conflict type as the next unresolved conflict.- Specified by:
getNumUnresolvedin interfaceConflictModelInterface- Parameters:
changed- changes done- Returns:
- number of further conflicts of the same conflict type
- Throws:
M2MExceptionRemoteException
-
getUnresolved
public Conflict getUnresolved(FVPMode iFVPMode, FunctionalVariationPointChangeVectors changed) throws M2MException, RemoteException Description copied from interface:ConflictModelInterfaceGet first unresolved conflict.- Specified by:
getUnresolvedin interfaceConflictModelInterface- Parameters:
iFVPMode- tells whether the conflict resolution should be checked or updatedchanged- changes done- Returns:
- next unresolved conflict, if there is none, return null
- Throws:
M2MExceptionRemoteException
-
clean
public void clean()Description copied from interface:ConflictModelInterfaceClean the conflict model and remove all conflicts.- Specified by:
cleanin interfaceConflictModelInterface
-