jill/src/main/java/io/github/agentsoz/jill/lang/Agent.java
public boolean send(String name, Goal msg) {
    AObject obj = agents.find(name);
    if (obj == null) {
      logger.warn("{} attempted to send a message to unknown agent '{}'", Log.logPrefix(getId()),
          name);
      return false;
    }
    ((Agent) obj).post(msg);
    return true;
  }
public boolean send(String name, Goal msg) {
    AObject obj = agents.find(name);
    if (obj == null) {
      logger.warn("{} attempted to send a message to unknown agent '{}'", Log.logPrefix(getId()),
          name);
      return false;
    }
    ((Agent) obj).post(msg);
    return true;
  }
public boolean send ( String name , Goal msg ) { AObject obj = agents . find ( name ) ; if ( obj == null ) { logger . warn ( "{} attempted to send a message to unknown agent '{}'" , Log . logPrefix ( getId ( ) ) , name ) ; return false ; } ( ( Agent ) obj ) . post ( msg ) ; return true ; }
Send a message to this agent.

@param name the agent to send the message to
@param msg the message to send
@return true if the message was sent successfully, false otherwise
Send a message to this agent .