private void setDomain(CPA cpa){
		for(int i=0; i<cpa.length() ; i++){
			Assignment ass= cpa.getAssignment(i);
			if(ass!=null){
				int agentID = ass.getID();
				int assValue = ass.getValue();
				if(constrained_agents(agentID , this.ID)){
					int[][] values = constraints[agentID][this.ID];
					System.out.println("#### the value is    "  +values[4][4] );
					for(int j=0; j<Domain.length; j++){
						if(values[j][assValue]==1){	//values are constrained
							Domain[j]=0;
						}
					}
				}
			}
			
			else{
				break;
			}
			
		}
		
		
	}