public boolean equalsPredicate(Predicate p){
		if(p.getName().equals(this.name)){ // checks the name
			// Checks each variable
			int[] hasV = this.hasVariables(p.getVariables());
			if(hasV[0] == -1){
				return false;
			} else if(hasV[0] == -2){
				return false;
			} else {
				boolean equal = true;
				int i = 0;
				while(i < hasV.length && equal){
					// If one of the pairs of variables is different or contains a DefaultVariable,
					// then we return false.
					if(hasV[i] == 0 || hasV[i] == 2){
						equal = false;
					}
					i++;
				}
				return equal;
			}
		}
		
		return false;
	}