package levik.weblet.lh;

import java.util.*;

public class FeelingSet {
    // Format: (M)M-DD-YYYY-HH-MM (HH: 24h format)
    private static final long serialVersionUID = 72320001528L;

    protected Object key;
    protected Vector loves;
    protected Vector hates;
    protected int loveNum;
    protected int hateNum;
    protected boolean changed;

    public FeelingSet(Object key, Vector loves, Vector hates) {
	this.key=key;
	this.loves=loves;
	this.hates=hates;
	loveNum = 0;
	hateNum = 0;
	changed = false;
    }

    public boolean wasChanged() { return changed; }

    public void setChanged(boolean changed) {
	this.changed=changed;
    }

    public int getLoveNum() { return loveNum; }
    public int getHateNum() { return hateNum; }
    public int getTotalNum() { return hateNum+loveNum; }

    public void setLoveNum(int loveNum) {
	this.loveNum=loveNum;
    }

    public void setHateNum(int hateNum) {
	this.hateNum=hateNum;
    }

    public void incLoveNum() { loveNum++; }
    public void incHateNum() { hateNum++; }
    
    public Object getKey() {
	return key;
    }

    public Vector getLoves() {
	return loves;
    }

    public Vector getHates() {
	return hates;
    }
}
