Skip to content

Commit

Permalink
Add comments and move DeltaBasedResource and corresponding factory
Browse files Browse the repository at this point in the history
  • Loading branch information
TomWerm committed Aug 8, 2023
1 parent 6f33866 commit 93eba6e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ import tools.vitruv.change.composite.description.VitruviusChangeResolver

import static edu.kit.ipd.sdq.commons.util.org.eclipse.emf.ecore.resource.ResourceSetUtil.withGlobalFactories

/**
* This class provides functionality to save and load a resource in a model delta representation.
* It uses the {@link DefaultStateBasedChangeResolutionStrategy} to save a state-based resource as a sequence of
* {@link EChange}s. The saved delta sequence can be loaded again, and the resulting changes can be
* applied to create the state-based resource again.
**/
class DeltaBasedResource extends ResourceImpl {

new(URI uri) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ package tools.vitruv.change.changederivation
import org.eclipse.emf.common.util.URI
import org.eclipse.emf.ecore.resource.Resource

/**
* Factory to provide {@link DeltaBasedResource}s.
*/
class DeltaBasedResourceFactory implements Resource.Factory {
override Resource createResource(URI uri) {
return new DeltaBasedResource(uri)
Expand Down

0 comments on commit 93eba6e

Please sign in to comment.