-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from lip6/master
merging main code
- Loading branch information
Showing
33 changed files
with
1,607 additions
and
359 deletions.
There are no files selected for viewing
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
41 changes: 41 additions & 0 deletions
41
...move.gal.structural/src/fr/lip6/move/gal/mcc/properties/ConcurrentHashDoneProperties.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,41 @@ | ||
package fr.lip6.move.gal.mcc.properties; | ||
|
||
import java.util.Map; | ||
import java.util.Map.Entry; | ||
import java.util.Set; | ||
import java.util.concurrent.ConcurrentHashMap; | ||
|
||
public class ConcurrentHashDoneProperties implements DoneProperties { | ||
private Map<String,Boolean> map = new ConcurrentHashMap<>(); | ||
|
||
@Override | ||
public boolean containsKey(Object arg0) { | ||
return map.containsKey(arg0); | ||
} | ||
|
||
@Override | ||
public Set<Entry<String, Boolean>> entrySet() { | ||
return map.entrySet(); | ||
} | ||
|
||
@Override | ||
public Boolean put(String prop, Boolean value, String techniques) { | ||
return map.put(prop, value); | ||
} | ||
|
||
@Override | ||
public Boolean put(String prop, Integer value, String techniques) { | ||
return map.put(prop, true); | ||
} | ||
|
||
@Override | ||
public Set<String> keySet() { | ||
return map.keySet(); | ||
} | ||
|
||
@Override | ||
public int size() { | ||
return map.size(); | ||
} | ||
|
||
} |
22 changes: 22 additions & 0 deletions
22
fr.lip6.move.gal.structural/src/fr/lip6/move/gal/mcc/properties/DoneProperties.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,22 @@ | ||
package fr.lip6.move.gal.mcc.properties; | ||
|
||
import java.util.Map.Entry; | ||
import java.util.Set; | ||
|
||
public interface DoneProperties { | ||
|
||
int size(); | ||
|
||
// A boolean result | ||
Boolean put(String prop, Boolean value, String techniques); | ||
// A numeric result | ||
Boolean put(String prop, Integer value, String techniques); | ||
|
||
|
||
Set<Entry<String, Boolean>> entrySet(); | ||
|
||
boolean containsKey(Object arg0); | ||
|
||
Set<String> keySet(); | ||
|
||
} |
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.