public abstract class QGmain
	{
	private static int ticket = 0;
	private static int nddata = 0;
	public static double ddata1[] = new double[2001];
	public static double ddata2[] = new double[2001];
	public static String sylabl1;
	public static String sylabl2;

	public static synchronized void setTicket(int iflag)
		{
		ticket = iflag;
		}

	public static void setnddata(int iflag)
		{
		nddata = iflag;
		}

	public static int getnddata()
		{
		return(nddata);
		}

	public static synchronized void loadddata1(String slabel1, float x[], float y[])
		{
		int i, j;

		for(i=j=0; i<nddata; i++,j+=2) {
			ddata1[j] = (double)x[i];
			ddata1[j+1] = (double)y[i];
			}
		sylabl1 = slabel1;
		}

	public static synchronized void loadddata2(String slabel2, float x[], float y[])
		{
		int i, j;

		for(i=j=0; i<nddata; i++,j+=2) {
			ddata2[j] = (double)x[i];
			ddata2[j+1] = (double)y[i];
			}
		sylabl2 = slabel2;
		}

	public static synchronized int getTicket()
		{
		return ticket;
		}
	}