// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   Cut.java

package lt.ktu.gmj.tasks;

import lt.ktu.gmj.*;
import lt.ktu.gmj.propertySheet.PropertyManager;

// Referenced classes of package lt.ktu.gmj.tasks:
//			CutDomain

public class Cut
	implements Task
{

	private CutDomain domain;
	public double multiplier;
	public static Cut stCut = null;

	public void customize(PropertyManager propertymanager1)
	{
	}

	public Domain domain()
	{
		return domain;
	}

	public IResult f(Point point)
	{
		double d = 0.0D;
		for(int i = 0; i < point.x.length; i++)
			d += Math.sin(point.x[i]) * multiplier;

		return new SimpleResult(d / (double)point.x.length);
	}

	public static Cut getCut()
	{
		System.runFinalization();
		return stCut;
	}

	public Cut()
	{
		domain = new CutDomain();
		multiplier = 1.0D;
		stCut = this;
	}

}
