Interface ConflictModelInterface
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ConflictModel
Model of conflicts. The model contains all conflicts and provides them to the
user interface.
- Version:
- 11.2.1
- Author:
- jmback
-
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.
-
Method Details
-
getNumUnresolved
Integer getNumUnresolved(FunctionalVariationPointChangeVectors changed) throws M2MException, RemoteException Get number of conflicts of the same conflict type as the next unresolved conflict.- Parameters:
changed- changes done- Returns:
- number of further conflicts of the same conflict type
- Throws:
M2MExceptionRemoteException
-
getUnresolved
Conflict getUnresolved(FVPMode iFVPMode, FunctionalVariationPointChangeVectors changed) throws M2MException, RemoteException Get first unresolved conflict.- 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
-
add
Add a conflict to the conflict model.- Parameters:
iConflict- new conflict
-
get
Get the conflict of the given type and with the involved source elements.- Parameters:
iType- type of conflictsource- source elements involved in conflict- Returns:
- return the conflict, if one exists, else null
-
getType
Get a new conflict type instance of the defining class.- Parameters:
iCls- Class of conflict type- Returns:
- Instance conflict type
-
clean
void clean()Clean the conflict model and remove all conflicts.
-