Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rgudwin committed Jul 11, 2023
1 parent 06ab2da commit c811632
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ dependencies {
api 'org.antlr:antlr4-runtime:4.5.3' // Used in OwrlBaseListener
api 'com.github.masecla22:java-express:0.2.2'
implementation 'ch.qos.logback:logback-classic:1.3.6'
//testImplementation group: 'junit', name: 'junit', version: '4.13.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
//testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public List<Percept> searchRelevantPercepts(AffordanceType aff, List<Percept> pe
* Preprocess and init the computation of the cartesian product.
* @param aff
* @param relevantPercepts
* @return a list of map<String,Percept>
* @return a list of {@code Map<String,Percept>}
*/
public List<Map<String, Percept>> getPerceptsCombinations(AffordanceType aff, Map<String, List<Percept>> relevantPercepts){

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/br/unicamp/cst/core/entities/Codelet.java
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,7 @@ public synchronized void setIsMemoryObserver(boolean isMemoryObserver) {
this.isMemoryObserver = isMemoryObserver;
}

@SuppressWarnings("empty-statement")
public synchronized void setPublishSubscribe(boolean enable) {
if (enable) {
setIsMemoryObserver(true);
Expand All @@ -812,8 +813,8 @@ public synchronized void setPublishSubscribe(boolean enable) {
m.removeMemoryObserver(this);
}
setIsMemoryObserver(false);
//run();
start();
try { Thread.sleep(300); } catch(InterruptedException e) {};
run();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ public void proc() {
m.insertCodelet(c);
c.setPublishSubscribe(true);
m.start();
try { Thread.sleep(500); } catch(InterruptedException e) {}
//setI in Memory Container and verify if Codelet was notified
long ts = output.getTimestamp();
input.setI(0);
Expand Down

0 comments on commit c811632

Please sign in to comment.