Statistiques
| Révision:

fr_b02 / petri / src / arcElement / Arc.java @ 4

Historique | Voir | Annoter | Télécharger (493 octets)

1 4 a19coudr
package arcElement;
2 2 a19coudr
3 3 a19coudr
import element.Place;
4 4 a19coudr
import junit.framework.TestCase;
5 3 a19coudr
6 4 a19coudr
public abstract class Arc extends TestCase implements ArcInterface  {
7 2 a19coudr
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
}