Ejemplo n.º 1
0
 /**
  * the agent can submit its assignment so that when the algorithm is finish running (happened when
  * all agents call finish) this will be the assignment to be accumulated - if you want to
  * re-assign a new value you don't have to call unSubmitCurrentAssignment, you can just call this
  * function again with the new value
  *
  * @param currentAssignment the assignment to submit
  */
 protected void assign(int currentAssignment) {
   controller.assign(getId(), currentAssignment);
 }