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