Simulator/src/model/agent/humanAgent/aatom/strategicLevel/belief/BeliefModule.java
/**
	 * Determines if two beliefs have the same activity state pair vector.
	 * 
	 * @param first
	 *            First belief.
	 * @param second
	 *            Second belief.
	 * @return True if they do, false otherwise.
	 */
Determines if two beliefs have the same activity state pair vector.

@param first
First belief.
@param second
Second belief.
@return True if they do, false otherwise.
Determines if two beliefs have the same activity state pair vector . @param first First belief . @param second Second belief . @return True if they do false otherwise .
private boolean isSameActivityStatePairVector(Belief first, Belief second) {
		for (ActivityStatePair asp : first.getActivities()) {
			boolean same = false;
			for (ActivityStatePair asp2 : second.getActivities()) {
				if (asp.getActivity().equals(asp2.getActivity())
						&& asp.getActivityState().equals(asp2.getActivityState())) {
					same = true;
				}
			}
			if (!same)
				return false;
		}
		return true;
	}
private boolean isSameActivityStatePairVector ( Belief first , Belief second ) { for ( ActivityStatePair asp : first . getActivities ( ) ) { boolean same = false ; for ( ActivityStatePair asp2 : second . getActivities ( ) ) { if ( asp . getActivity ( ) . equals ( asp2 . getActivity ( ) ) && asp . getActivityState ( ) . equals ( asp2 . getActivityState ( ) ) ) { same = true ; } } if ( ! same ) return false ; } return true ; }
Determines if two beliefs have the same activity state pair vector.
Determines if two beliefs have the same activity state pair vector .