public abstract class NGSmain
	{
	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 double ddata3[] = new double[2001];
	public static String sylabl1;
	public static String sylabl2;
	public static String sylabl3;

	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 slabel, 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 = slabel;
		}

	public static synchronized void loadddata2(String slabel, 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 = slabel;
		}

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

		for(i=j=0; i<nddata; i++,j+=2) {
			ddata3[j] = (double)x[i];
			ddata3[j+1] = (double)y[i];
			}
		sylabl3 = slabel;
		}

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