fr_b02 / petri / src / arc / Arc.java @ 3
Historique | Voir | Annoter | Télécharger (434 octets)
1 |
package arc; |
---|---|
2 |
|
3 |
import element.Place; |
4 |
|
5 |
public abstract class Arc implements ArcInterface { |
6 |
|
7 |
private Place place;
|
8 |
|
9 |
public Arc(Place place) {
|
10 |
this.place=place;
|
11 |
} |
12 |
|
13 |
public Place getPlace() {
|
14 |
return this.place; |
15 |
} |
16 |
public boolean equals(Object o) { |
17 |
if((o instanceof Arc) &&(System.identityHashCode(((Arc)o))==System.identityHashCode(this))) { |
18 |
return true; |
19 |
} |
20 |
else {
|
21 |
return false; |
22 |
} |
23 |
|
24 |
} |
25 |
|
26 |
} |