package lt.ktu.gmj.tasks;

import lt.ktu.gmj.Domain;

class WalrasDomain extends Domain 
{
	static final String[] dimensions = {
		"p1 (1-st server charges for 1-st resource)",
		"p2 (2-nd server charges for 2-nd resource)",
		"y1 (1-st server charge for the service)",
		"y2 (2-nd server charge for the service)"
	};

	public String[] dimensions() { return dimensions; }

	WalrasDomain() 
	{
	    min[0] = 0.0;
	    max[0] = 1000.0; // p1
	    min[1] = 0.0;
	    max[1] = 1000.0; // p2
	    min[2] = 0.0;
	    max[2] = 25.0; //y1
	    min[3] = 0.0;
	    max[3] = 25.0; //y2
	    defaultPoint.x[0] = (min[0] + max[0]) / 2;
	    defaultPoint.x[1] = (min[1] + max[1]) / 2;
	    defaultPoint.x[2] = (min[2] + max[2]) / 2;
	    defaultPoint.x[3] = (min[3] + max[3]) / 2;
	}
};