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