examples/src/main/java/io/github/agentsoz/jill/example/tokenpassing/ReceiveToken3.java
@Override
  public boolean context() {
    Agent agent = getAgent();
    int myid = agent.getId();
    int goalid = ((Token3) getGoal()).getAgent();
    try {
      return (myid == goalid) && agent.eval("neighbour.name = *");
    } catch (BeliefBaseException e) {
      Log.error(e.getMessage());
    }
    return false;
  }
@Override
  public boolean context() {
    Agent agent = getAgent();
    int myid = agent.getId();
    int goalid = ((Token3) getGoal()).getAgent();
    try {
      return (myid == goalid) && agent.eval("neighbour.name = *");
    } catch (BeliefBaseException e) {
      Log.error(e.getMessage());
    }
    return false;
  }
@ Override public boolean context ( ) { Agent agent = getAgent ( ) ; int myid = agent . getId ( ) ; int goalid = ( ( Token3 ) getGoal ( ) ) . getAgent ( ) ; try { return ( myid == goalid ) && agent . eval ( "neighbour.name = *" ) ; } catch ( BeliefBaseException e ) { Log . error ( e . getMessage ( ) ) ; } return false ; }
{@inheritDoc}.
{