// Path: Framework-JVM/BackEnd/SurrogateJVM/src/main/java/edu/ut/mobile/network/CloudRemotable.java
// public abstract class CloudRemotable implements Serializable  {
//     private static final long serialVersionUID = 3;
//     transient protected CloudController cloudController = new CloudController();
// 
//     protected CloudRemotable() {
//     }
// 
//     public CloudRemotable(CloudController cc) {
//         cloudController = cc;
//     }
// 
//     public CloudController getCloudController() {
//         return cloudController;
//     }
// 
//     public void setCloudController(CloudController cloudController) {
//         this.cloudController = cloudController;
//     }
// 
// }


import java.util.Vector;
import edu.ut.mobile.network.CloudRemotable;
import java.lang.reflect.Method;
package cs.mc.ut.ee.logic;








public class NQueens extends CloudRemotable{

    static final String TAG = NQueens.class.getSimpleName();

    int x;

    public NQueens(int N) {         
    	x = N; 
    } 

    public boolean isConsistent(int[] q, int n) {
        for (int i = 0; i < n; i++) {
            if (q[i] == q[n])             return false; 
            if ((q[i] - q[n]) == (n - i)) return false; 
            if ((q[n] - q[i]) == (n - i)) return false; 
        }
        return true;
    }


    public void localenumerateQueens() {
        int[] a = new int[x];
        enumerate(a, 0);
    }

    public void enumerate(int[] q, int n) {
// Path: Framework-JVM/BackEnd/SurrogateJVM/src/main/java/edu/ut/mobile/network/CloudRemotable.java
// public abstract class CloudRemotable implements Serializable  {
//     private static final long serialVersionUID = 3;
//     transient protected CloudController cloudController = new CloudController();
// 
//     protected CloudRemotable() {
//     }
// 
//     public CloudRemotable(CloudController cc) {
//         cloudController = cc;
//     }
// 
//     public CloudController getCloudController() {
//         return cloudController;
//     }
// 
//     public void setCloudController(CloudController cloudController) {
//         this.cloudController = cloudController;
//     }
// 
// }


// Path: TracesSimulator/Loader/Simulator/src/main/java/cs/mc/ut/ee/logic/NQueens.java
import java.util.Vector;
import edu.ut.mobile.network.CloudRemotable;
import java.lang.reflect.Method;

package cs.mc.ut.ee.logic;








public class NQueens extends CloudRemotable{

    static final String TAG = NQueens.class.getSimpleName();

    int x;

    public NQueens(int N) {         
    	x = N; 
    } 

    public boolean isConsistent(int[] q, int n) {
        for (int i = 0; i < n; i++) {
            if (q[i] == q[n])             return false; 
            if ((q[i] - q[n]) == (n - i)) return false; 
            if ((q[n] - q[i]) == (n - i)) return false; 
        }
        return true;
    }


    public void localenumerateQueens() {
        int[] a = new int[x];
        enumerate(a, 0);
    }

    public void enumerate(int[] q, int n) {
        int N = q.length;