public static ModelDiff createModelDiff ( OpenEngSBModel updated , String completeModelId , EngineeringDatabaseService edbService , EDBConverter edbConverter ) { EDBObject queryResult = edbService . getObject ( completeModelId ) ; OpenEngSBModel old = edbConverter . convertEDBObjectToModel ( updated . getClass ( ) , queryResult ) ; ModelDiff diff = new ModelDiff ( old , updated ) ; calculateDifferences ( diff ) ; return diff ; }
Creates an instance of the ModelDiff class based on the given model . It loads the old status of the model and calculates the differences of this two models .