package com.dlsc.flexgantt.showcase.demo.resources;

import javax.swing.Icon;

import com.dlsc.flexgantt.icons.IconId;
import com.dlsc.flexgantt.icons.IconRegistry;

public class Resource {
    public enum Status {
        DOWN, AVAILABLE, BUSY
    }

    private String name = "Untitled";
    private double capacity = 100;
    private String location = "Plant 1";
    private Status status = Status.AVAILABLE;
    private Icon icon = IconRegistry.getIcon(IconId.CONSTRAINED);
    private double averageLoad = 0.5;

    /**
     * @return the load
     */
    public double getAverageLoad() {
        return averageLoad;
    }

    /**
     * @param load
     *            the load to set
     */
    public void setAverageLoad(double load) {
        this.averageLoad = load;
    }

    /**
     * @return the capacity
     */
    public double getCapacity() {
        return capacity;
    }

    /**
     * @param capacity
     *            the capacity to set
     */
    public void setCapacity(double capacity) {
        this.capacity = capacity;
    }

    /**
     * @return the location
     */
    public String getLocation() {
        return location;
    }

    /**
     * @param location
     *            the location to set
     */
    public void setLocation(String location) {
        this.location = location;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     *            the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the status
     */
    public Status getStatus() {
        return status;
    }

    /**
     * @param status
     *            the status to set
     */
    public void setStatus(Status status) {
        this.status = status;
    }

    /**
     * @return the icon
     */
    public Icon getIcon() {
        return icon;
    }

    /**
     * @param icon
     *            the icon to set
     */
    public void setIcon(Icon icon) {
        this.icon = icon;
    }

}
