public void setBeliefValue ( String agent_name , final String belief_name , final Object new_value , Connector connector ) { ( ( IExternalAccess ) connector . getAgentsExternalAccess ( agent_name ) ) . scheduleStep ( new IComponentStep < Integer > ( ) { public IFuture < Integer > execute ( IInternalAccess ia ) { IBDIInternalAccess bia = ( IBDIInternalAccess ) ia ; bia . getBeliefbase ( ) . getBelief ( belief_name ) . setFact ( new_value ) ; return null ; } } ) . get ( new ThreadSuspendable ( ) ) ; }
This method changes the value of an agent s belief through its external access