Skip to content

Commit

Permalink
updated feedback types
Browse files Browse the repository at this point in the history
  • Loading branch information
anacleto85 committed Sep 13, 2023
1 parent af3acdf commit 8192a4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>it.cnr.istc.pst</groupId>
<artifactId>platinum</artifactId>
<version>1.4.2</version>
<version>1.4.3</version>
<packaging>jar</packaging>

<name>PLATINUm</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,11 @@ public void feedback(PlatformFeedback feedback) {
}
break;

case INTERRUPTED: {
// handle failure
this.failure(feedback.getCmd());
}

case UNKNOWN : {
// runtime exception
throw new RuntimeException("Received UNKNOWN feedback type:\n- cmd: " + feedback.getCmd());
Expand All @@ -808,9 +813,10 @@ public void task(AgentTaskDescription task) {
@Override
public void observation(PlatformObservation<? extends Object> obs) {

/*
* TODO Auto-generated method stub
/**
* TODO
*/
throw new RuntimeException("[Executive] Implement observation() method...");
}

/**
Expand Down Expand Up @@ -884,7 +890,7 @@ private void failure(PlatformCommand cmd) {
this.currentTick,
node,
ExecutionFeedbackType.TOKEN_EXECUTION_FAILURE);

// forward feedback to the monitor
this.monitor.addExecutionFeedback(feedback);
// remove operation ID from index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,6 @@ public void retract(ParameterConstraint constraint)
}
}

/*
* TODO: VERIFICARE SE PARAMETRI "ISOLATI" VANNO RIMOSSI
*/
}

/**
Expand Down

0 comments on commit 8192a4f

Please sign in to comment.