
import java.io.BufferedOutputStream;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Andréa
 */
public class Triplet extends Observable {

    BufferedOutputStream a;


    private Integer[] values = new Integer[]{0,0,0};

    public Triplet(){}

    void setA( int pa) {
        values[0] = pa;
        notifyObservers(FieldName.A, pa);
    }

    void setB( int pb) {
        values[1] = pb;
        notifyObservers(FieldName.B, pb);
    }

    void setC( int pc) {
        values[2] = pc;
        notifyObservers(FieldName.C, pc);
    }

    int getA() {
        return values[0];
    }

    int getB() {
        return values[1];
    }

    int getC() {
        return values[2];
    }

    public enum FieldName{
        A,B,C
    }
}
