Simulator/src/model/agent/humanAgent/aatom/strategicLevel/belief/BeliefModule.java
/**
	 * Updates the belief if it's different from the current belief.
	 * 
	 * @param newBelief
	 *            The new belief.
	 */
Updates the belief if it's different from the current belief.

@param newBelief
The new belief.
Updates the belief if it ' s different from the current belief . @param newBelief The new belief .
@SuppressWarnings("unused")
	private void updateBelief(Belief newBelief) {
		Belief current = getCurrentBelief();
		if (current.getLocation() == null)
			return;
		boolean location = current.getLocation().equals(newBelief.getLocation());
		boolean asp = isSameActivityStatePairVector(current, newBelief);
		boolean planning = true;
		int index = 0;
		for (Activity act : current.getPlanning()) {
			if (!newBelief.getPlanning().get(index).equals(act)) {
				planning = false;
				break;
			}
			index++;
		}
		if (!(planning && asp && location))
			beliefs.add(newBelief);
	}
@ SuppressWarnings ( "unused" ) private void updateBelief ( Belief newBelief ) { Belief current = getCurrentBelief ( ) ; if ( current . getLocation ( ) == null ) return ; boolean location = current . getLocation ( ) . equals ( newBelief . getLocation ( ) ) ; boolean asp = isSameActivityStatePairVector ( current , newBelief ) ; boolean planning = true ; int index = 0 ; for ( Activity act : current . getPlanning ( ) ) { if ( ! newBelief . getPlanning ( ) . get ( index ) . equals ( act ) ) { planning = false ; break ; } index ++ ; } if ( ! ( planning && asp && location ) ) beliefs . add ( newBelief ) ; }
Updates the belief if it's different from the current belief.
Updates the belief if it ' s different from the current belief .
// location check // activity state pairs // planning check