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 .