summaryrefslogtreecommitdiff
path: root/sem_4/java/eclipse-workspace/Laponie/src/Objpostal.java
blob: 384438f9b657295e33c5b69bda3618e03366c7f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

public abstract class Objpostal {
	private String origine;
	private String destination;
	private int codepost;
	private double poids;
	private double vol;
	private int tauxrecommand;
	private double tauxremboursement;
	protected void setTauxRemboursement (double taux ) {
		tauxremboursement = taux;
	}
	protected double getTauxRemboursement () {
		return tauxremboursement;
	}
	
	public int tauxrecommand () {
		return this.tauxrecommand;
	}

	protected String getOrigine() {
		return origine;
	}

	protected void setOrigine(String origine) {
		this.origine = origine;
	}

	protected String getDestination() {
		return destination;
	}

	protected void setDestination(String destination) {
		this.destination = destination;
	}

	protected int getCodepost() {
		return codepost;
	}

	protected void setCodepost(int codepost) {
		this.codepost = codepost;
	}

	protected double getPoids() {
		return poids;
	}

	protected void setPoids(double poids) {
		this.poids = poids;
	}

	protected double getVol() {
		return vol;
	}

	protected void setVol(double vol) {
		this.vol = vol;
	}

	protected int getTauxrecommand() {
		return tauxrecommand;
	}

	protected void setTauxrecommand(int tauxrecommand) {
		this.tauxrecommand = tauxrecommand;
	}
	public Objpostal (String ext_origin, String ext_dest, int ext_codepost, double ext_poid, double ext_volume, int ext_tauxrec) {
		this.setOrigine(ext_origin);
		this.setDestination(ext_dest);
		this.setCodepost(ext_codepost);
		this.setPoids(ext_poid);
		this.setVol(ext_volume);
		this.setTauxrecommand(ext_tauxrec);
	}
}