-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replac ModelProviderAgent with ArCoTLModelProviderAgent and add HoldB…
…ackElementsExtractor
- Loading branch information
Showing
13 changed files
with
207 additions
and
126 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...common/src/main/java/edu/kit/kastel/mcse/ardoco/core/api/models/arcotl/HoldBackModel.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package edu.kit.kastel.mcse.ardoco.core.api.models.arcotl; | ||
|
||
import edu.kit.kastel.mcse.ardoco.core.api.models.Entity; | ||
|
||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
public class HoldBackModel extends Model { | ||
|
||
private final List<? extends Entity> content; | ||
private final List<? extends Entity> endpoints; | ||
|
||
public HoldBackModel(List<? extends Entity> content, List<? extends Entity> endpoints) { | ||
this.content = content; | ||
this.endpoints = endpoints; | ||
} | ||
|
||
@Override | ||
public List<? extends Entity> getContent() { | ||
return this.content; | ||
} | ||
|
||
@Override | ||
public List<? extends Entity> getEndpoints() { | ||
return this.endpoints; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) | ||
return true; | ||
if (o == null || getClass() != o.getClass()) | ||
return false; | ||
if (!super.equals(o)) | ||
return false; | ||
HoldBackModel that = (HoldBackModel) o; | ||
return Objects.equals(content, that.content) && Objects.equals(endpoints, that.endpoints); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(super.hashCode(), content, endpoints); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.