private void post ( Stack255 stack , Goal goal ) { synchronized ( stack ) { logger . debug ( "{} posting goal {}" , Log . logPrefix ( getId ( ) ) , goal . getClass ( ) . getSimpleName ( ) ) ; stack . push ( goal ) ; Main . setAgentIdle ( getId ( ) , false ) ; } Main . flagMessageTo ( Main . poolid ( getId ( ) ) ) ; }
Push the given goal to the given stack .