// 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:   Knapsack.java

package lt.ktu.gmj.tasks;

import lt.ktu.gmj.propertySheet.InvalidPropertyException;
import lt.ktu.gmj.propertySheet.SimplePropertyProvider;

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

class KnapWeightProvider extends SimplePropertyProvider
{

    public Knapsack knap;

    public KnapWeightProvider(Knapsack knap)
    {
	this.knap = knap;
    }

    public Object get()
    {
        return new Double(knap.Capacity());
    }

    public void set(Object value)
        throws InvalidPropertyException
    {
        knap.Capacity( ((Double)value).doubleValue() );
    }
}
