package biduledres;

public class AreteSpatiale implements SerialisableXML {
    private SommetSpatial sommetSpatial1;
    private SommetSpatial sommetSpatial2;

    public AreteSpatiale(SommetSpatial sommetSpatial1, SommetSpatial sommetSpatial2) {
        this.sommetSpatial1 = sommetSpatial1;
        this.sommetSpatial2 = sommetSpatial2;
    }
    
    public String toXML(int tab) {
        return Util.printTab(tab, "<ArreteSpatiale>") +
        sommetSpatial1.toXML(tab + 1) +
        sommetSpatial2.toXML(tab + 1) +
        Util.printTab(tab, "</ArreteSpatiale>");
    }
    
    public SommetSpatial getSommetSpatial1() {
        return sommetSpatial1;
    }
    
    public SommetSpatial getSommetSpatial2() {
        return sommetSpatial2;
    }
}